@@ -154,14 +154,14 @@ discard block |
||
| 154 | 154 | foreach ($results as $result) { |
| 155 | 155 | /** @var AbstractNamedDBElement $result */ |
| 156 | 156 | $io->writeln( |
| 157 | - 'Convert entity: '.$result->getName().' (' . get_class($result) . ': ' . $result->getID() . ')', |
|
| 157 | + 'Convert entity: '.$result->getName().' ('.get_class($result).': '.$result->getID().')', |
|
| 158 | 158 | OutputInterface::VERBOSITY_VERBOSE |
| 159 | 159 | ); |
| 160 | 160 | foreach ($properties as $property) { |
| 161 | 161 | //Retrieve bbcode from entity |
| 162 | 162 | $bbcode = $this->propertyAccessor->getValue($result, $property); |
| 163 | 163 | //Check if the current property really contains BBCode |
| 164 | - if (! preg_match(static::BBCODE_REGEX, $bbcode)) { |
|
| 164 | + if (!preg_match(static::BBCODE_REGEX, $bbcode)) { |
|
| 165 | 165 | continue; |
| 166 | 166 | } |
| 167 | 167 | $io->writeln( |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | //If we are not in dry run, save changes to DB |
| 185 | - if (! $input->getOption('dry-run')) { |
|
| 185 | + if (!$input->getOption('dry-run')) { |
|
| 186 | 186 | $this->em->flush(); |
| 187 | 187 | $io->success('Changes saved to DB successfully!'); |
| 188 | 188 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | public function getFilters() |
| 31 | 31 | { |
| 32 | 32 | return [ |
| 33 | - new TwigFilter('barcodeSVG', function (string $content, string $type = "QRCODE") { |
|
| 33 | + new TwigFilter('barcodeSVG', function(string $content, string $type = "QRCODE") { |
|
| 34 | 34 | $barcodeFactory = new Barcode(); |
| 35 | 35 | $barcode = $barcodeFactory->getBarcodeObj($type, $content); |
| 36 | 36 | return $barcode->getSvgCode(); |