From 54d562b63622dcf915a2907904a1589f94dbbea4 Mon Sep 17 00:00:00 2001 From: Jacek Foremski Date: Wed, 11 Jul 2018 12:17:06 +0200 Subject: [PATCH] Fix typo in the constant name (#59) --- bundle/Command/ConvertXmlTextToRichTextCommand.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bundle/Command/ConvertXmlTextToRichTextCommand.php b/bundle/Command/ConvertXmlTextToRichTextCommand.php index 7cc3346d..81f8428f 100644 --- a/bundle/Command/ConvertXmlTextToRichTextCommand.php +++ b/bundle/Command/ConvertXmlTextToRichTextCommand.php @@ -21,7 +21,7 @@ class ConvertXmlTextToRichTextCommand extends ContainerAwareCommand { - const MAX_OJBECTS_PER_CHILD = 1000; + const MAX_OBJECTS_PER_CHILD = 1000; /** * @var \Doctrine\DBAL\Connection */ @@ -220,7 +220,7 @@ protected function fixEmbeddedImages($dryRun, $contentId, OutputInterface $outpu $offset = 0; $totalCount = 0; do { - $limit = self::MAX_OJBECTS_PER_CHILD; + $limit = self::MAX_OBJECTS_PER_CHILD; $statement = $this->getFieldRows('ezrichtext', $contentId, $offset, $limit); while ($row = $statement->fetch(PDO::FETCH_ASSOC)) { @@ -266,8 +266,8 @@ protected function fixEmbeddedImages($dryRun, $contentId, OutputInterface $outpu ); } } - $offset += self::MAX_OJBECTS_PER_CHILD; - } while ($offset + self::MAX_OJBECTS_PER_CHILD <= $count); + $offset += self::MAX_OBJECTS_PER_CHILD; + } while ($offset + self::MAX_OBJECTS_PER_CHILD <= $count); $output->writeln("Updated ezembed tags in $totalCount field(s)"); } @@ -540,7 +540,7 @@ protected function processFields($dryRun, $checkDuplicateIds, $checkIdValues, Ou $fork = $this->maxConcurrency > 1; do { - $limit = self::MAX_OJBECTS_PER_CHILD; + $limit = self::MAX_OBJECTS_PER_CHILD; if ($fork) { $this->waitForAvailableProcessSlot($output); $process = $this->createChildProcess($dryRun, $checkDuplicateIds, $checkIdValues, $offset, $limit, $output); @@ -548,8 +548,8 @@ protected function processFields($dryRun, $checkDuplicateIds, $checkIdValues, Ou } else { $this->convertFields($dryRun, null, $checkDuplicateIds, $checkIdValues, $offset, $limit); } - $offset += self::MAX_OJBECTS_PER_CHILD; - } while ($offset + self::MAX_OJBECTS_PER_CHILD <= $count); + $offset += self::MAX_OBJECTS_PER_CHILD; + } while ($offset + self::MAX_OBJECTS_PER_CHILD <= $count); while (count($this->processes) > 0) { $this->waitForChild($output);