Completed
Push — master ( b4e9ab...65f893 )
by Michal
08:51
created
src/Command/Extractor/ExtractorCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $this->setName('extract')
18 18
             ->setDescription('Finds non-translated texts, replaces them with translate tokens and store these texts to storage')
19
-            ->addArgument('config', InputArgument::REQUIRED, 'Path to config file. Instance of ' . ExtractorConfig::class  . ' have to be returned')
19
+            ->addArgument('config', InputArgument::REQUIRED, 'Path to config file. Instance of '.ExtractorConfig::class.' have to be returned')
20 20
             ->addOption('params', null, InputOption::VALUE_REQUIRED, 'Params for config in format --params="a=b&c=d"');
21 21
     }
22 22
 
23 23
     protected function execute(InputInterface $input, OutputInterface $output)
24 24
     {
25 25
         if (!is_file($input->getArgument('config'))) {
26
-            throw new InvalidArgumentException('File "' . $input->getArgument('config') . '" does not exist');
26
+            throw new InvalidArgumentException('File "'.$input->getArgument('config').'" does not exist');
27 27
         }
28 28
         parse_str($input->getOption('params'), $params);
29 29
         extract($params);
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
             throw $extractorConfig;
34 34
         }
35 35
         if (!$extractorConfig instanceof ExtractorConfig) {
36
-            throw new InvalidConfigInstanceReturnedException('"' . (is_object($extractorConfig) ? get_class($extractorConfig) : $extractorConfig) . '" is not instance of ' . ExtractorConfig::class);
36
+            throw new InvalidConfigInstanceReturnedException('"'.(is_object($extractorConfig) ? get_class($extractorConfig) : $extractorConfig).'" is not instance of '.ExtractorConfig::class);
37 37
         }
38 38
 
39 39
         $result = $extractorConfig->extract();
40
-        $output->writeln('<comment>' . $result . ' tokens replaced</comment>');
40
+        $output->writeln('<comment>'.$result.' tokens replaced</comment>');
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/Command/Translator/TranslatorCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $this->setName('translate')
18 18
             ->setDescription('Creates new language version of translated texts')
19
-            ->addArgument('config', InputArgument::REQUIRED, 'Path to config file. Instance of ' . TranslatorConfig::class  . ' have to be returned')
19
+            ->addArgument('config', InputArgument::REQUIRED, 'Path to config file. Instance of '.TranslatorConfig::class.' have to be returned')
20 20
             ->addOption('params', null, InputOption::VALUE_REQUIRED, 'Params for config in format a=b&c=d');
21 21
     }
22 22
 
23 23
     protected function execute(InputInterface $input, OutputInterface $output)
24 24
     {
25 25
         if (!is_file($input->getArgument('config'))) {
26
-            throw new InvalidArgumentException('File "' . $input->getArgument('config') . '" does not exist');
26
+            throw new InvalidArgumentException('File "'.$input->getArgument('config').'" does not exist');
27 27
         }
28 28
         parse_str($input->getOption('params'), $params);
29 29
         extract($params);
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             throw $translatorConfig;
34 34
         }
35 35
         if (!$translatorConfig instanceof TranslatorConfig) {
36
-            throw new InvalidConfigInstanceReturnedException('"' . (is_object($translatorConfig) ? get_class($translatorConfig) : $translatorConfig) . '" is not instance of ' . TranslatorConfig::class);
36
+            throw new InvalidConfigInstanceReturnedException('"'.(is_object($translatorConfig) ? get_class($translatorConfig) : $translatorConfig).'" is not instance of '.TranslatorConfig::class);
37 37
         }
38 38
 
39 39
         $translatorConfig->translate();
Please login to merge, or discard this patch.