Skip to content

Commit

Permalink
Replaced '\n' with PHP_EOL constant
Browse files Browse the repository at this point in the history
  • Loading branch information
vidarl committed Oct 26, 2018
1 parent 46fb89d commit a4c4d8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions bundle/Command/ConvertXmlTextToRichTextCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ protected function configure()
'export-dir-filter',
null,
InputOption::VALUE_OPTIONAL,
"To be used together with --export-dir option. Specify what kind of problems should be exported:\n
notice: ezxmltext contains problems which the conversion tool was able to fix automatically and likly do not need manual intervention\n
warning: the conversion tool was able to convert the ezxmltext to valid richtext, but data was maybe altered/removed/added in the process. Manual supervision recommended\n
error: the ezxmltext text cannot be converted and manual changes are required.",
'To be used together with --export-dir option. Specify what kind of problems should be exported:' . PHP_EOL .
'notice: ezxmltext contains problems which the conversion tool was able to fix automatically and likly do not need manual intervention' . PHP_EOL .
'warning: the conversion tool was able to convert the ezxmltext to valid richtext, but data was maybe altered/removed/added in the process. Manual supervision recommended' . PHP_EOL .
'error: the ezxmltext text cannot be converted and manual changes are required.',
sprintf('%s,%s', LogLevel::WARNING, LogLevel::ERROR)
)
->addOption(
Expand All @@ -171,9 +171,9 @@ protected function configure()
'fix-embedded-images-only',
null,
InputOption::VALUE_NONE,
"Use this option to ensure that embedded images in a database are tagget correctly so that the editor will detect them as such.\n
This option is needed if you have an existing ezplatform database which was converted with an earlier version of\n
'ezxmltext:convert-to-richtext' which did not convert embedded images correctly."
'Use this option to ensure that embedded images in a database are tagget correctly so that the editor will detect them as such.' . PHP_EOL .
'This option is needed if you have an existing ezplatform database which was converted with an earlier version of' . PHP_EOL .
'\'ezxmltext:convert-to-richtext\' which did not convert embedded images correctly.'
)
->addOption(
'no-progress',
Expand All @@ -197,7 +197,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ($dryRun) {
$output->writeln('Running in dry-run mode. No changes will actually be written to database');
if ($this->exportDir !== '') {
$output->writeln("Note: --export-dir option provided, files will be written to $this->exportDir even in dry-run mode\n");
$output->writeln("Note: --export-dir option provided, files will be written to $this->exportDir even in dry-run mode" . PHP_EOL);
}
}

Expand All @@ -209,7 +209,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

if ($input->getOption('fix-embedded-images-only')) {
$output->writeln("Fixing embedded images only. No other changes are done to the database\n");
$output->writeln('Fixing embedded images only. No other changes are done to the database' . PHP_EOL);
$this->fixEmbeddedImages($dryRun, $testContentId, $output);

return;
Expand Down
2 changes: 1 addition & 1 deletion bundle/Command/ImportXmlCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
$dryRun = false;
if ($input->getOption('dry-run')) {
$output->writeln("Running in dry-run mode. No changes will actually be written to database\n");
$output->writeln('Running in dry-run mode. No changes will actually be written to database' . PHP_EOL);
$dryRun = true;
}

Expand Down

0 comments on commit a4c4d8a

Please sign in to comment.