Completed
Pull Request — master (#965)
by
unknown
03:51
created
src/N98/Magento/Command/Developer/Ide/PhpStorm/MetaCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -104,11 +104,11 @@  discard block
 block discarded – undo
104 104
                 'meta-version',
105 105
                 null,
106 106
                 InputOption::VALUE_REQUIRED,
107
-                'PhpStorm Meta version ('.self::VERSION_OLD.', '.self::VERSION_2017.')',
107
+                'PhpStorm Meta version (' . self::VERSION_OLD . ', ' . self::VERSION_2017 . ')',
108 108
                 self::VERSION_2017
109 109
             )
110 110
             ->addOption('stdout', null, InputOption::VALUE_NONE, 'Print to stdout instead of file .phpstorm.meta.php')
111
-            ->setDescription('Generates meta data file for PhpStorm auto completion (default version : '.self::VERSION_2017.')');
111
+            ->setDescription('Generates meta data file for PhpStorm auto completion (default version : ' . self::VERSION_2017 . ')');
112 112
     }
113 113
 
114 114
     /**
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
                     if (preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $class)) {
362 362
                         $map .= "            '$classPrefix' instanceof \\$class,\n";
363 363
                     } else {
364
-                        $output->writeln('<warning>Invalid class name <comment>'.$class.'</comment> ignored</warning>');
364
+                        $output->writeln('<warning>Invalid class name <comment>' . $class . '</comment> ignored</warning>');
365 365
                     }
366 366
                 }
367 367
                 $map .= "        ], \n";
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
                     if (preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $class)) {
405 405
                         $map .= "            '$classPrefix' instanceof \\$class,\n";
406 406
                     } else {
407
-                        $output->writeln('<warning>Invalid class name <comment>'.$class.'</comment> ignored</warning>');
407
+                        $output->writeln('<warning>Invalid class name <comment>' . $class . '</comment> ignored</warning>');
408 408
                     }
409 409
                 }
410 410
                 $map .= "        ], \n";
@@ -428,8 +428,8 @@  discard block
 block discarded – undo
428 428
                     }
429 429
                 }
430 430
                 $group = str_replace(array(' ', '/'), '_', $group);
431
-                if (\file_put_contents($this->_magentoRootFolder . '/.phpstorm.meta.php/magento_'.$group.'.meta.php', $map)) {
432
-                    $output->writeln('<info>File <comment>.phpstorm.meta.php/magento_'.$group.'.meta.php</comment> generated</info>');
431
+                if (\file_put_contents($this->_magentoRootFolder . '/.phpstorm.meta.php/magento_' . $group . '.meta.php', $map)) {
432
+                    $output->writeln('<info>File <comment>.phpstorm.meta.php/magento_' . $group . '.meta.php</comment> generated</info>');
433 433
                 }
434 434
             }
435 435
         }
Please login to merge, or discard this patch.