Test Failed
Pull Request — master (#44)
by Maciej
05:17
created
bin/Commands/Dev/GenerateMetadataCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 {
34 34
     protected function execute(InputInterface $input, OutputInterface $output)
35 35
     {
36
-        if (! class_exists(VarExporter::class)) {
36
+        if (!class_exists(VarExporter::class)) {
37 37
             $output->writeln(
38 38
                 '<error>This command will not work if you installed project with composer install --no-dev'
39 39
             );
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
             $output->writeln($this->generate($output));
45 45
         } else {
46 46
             file_put_contents(
47
-                __DIR__ . '/../../../Config/metadata.php',
48
-                "<?php\n\nreturn " . $this->generate($output) . ";\n"
47
+                __DIR__.'/../../../Config/metadata.php',
48
+                "<?php\n\nreturn ".$this->generate($output).";\n"
49 49
             );
50 50
         }
51 51
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     protected function generate(OutputInterface $output)
65 65
     {
66
-        $dir = __DIR__ . '/../../../Language' . DIRECTORY_SEPARATOR;
66
+        $dir = __DIR__.'/../../../Language'.DIRECTORY_SEPARATOR;
67 67
         $iterator = new RecursiveIteratorIterator(
68 68
             new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS),
69 69
             RecursiveIteratorIterator::LEAVES_ONLY
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             }
89 89
         }
90 90
 
91
-        usort($result, function ($a, $b) {
91
+        usort($result, function($a, $b) {
92 92
             return $a[0] <=> $b[0];
93 93
         });
94 94
 
Please login to merge, or discard this patch.