Test Setup Failed
Pull Request — master (#20)
by Jack
24:05
created
src/Command/CheckGherkinCodeStyle.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $directory = $input->getArgument('directory');
96 96
         $finder    = (new FeatureResolve($directory))->__invoke();
97 97
 
98
-        $output->writeln("\nFinding files on <info>" . $directory . "</info>\n");
98
+        $output->writeln("\nFinding files on <info>".$directory."</info>\n");
99 99
 
100 100
         /* @var $file \Symfony\Component\Finder\SplFileInfo */
101 101
         foreach ($finder as $file) {
@@ -114,14 +114,14 @@  discard block
 block discarded – undo
114 114
 
115 115
             if ($formatted !== $contentWithoutComments) {
116 116
 
117
-                if (! defined('FAILED')) {
117
+                if (!defined('FAILED')) {
118 118
                     define('FAILED', true);
119 119
                 }
120 120
 
121 121
                 $outputBuilder = new UnifiedDiffOutputBuilder("--- Original\n+++ Expected\n", false);
122 122
                 $diff = new Differ($outputBuilder);
123 123
 
124
-                $output->writeln('<error>Wrong style: ' . $file->getRealPath() . '</error>');
124
+                $output->writeln('<error>Wrong style: '.$file->getRealPath().'</error>');
125 125
                 $output->writeln($diff->diff($contentWithoutComments, $formatted));
126 126
             }
127 127
         }
@@ -144,17 +144,17 @@  discard block
 block discarded – undo
144 144
             implode(
145 145
                 array_filter(
146 146
                     array_map(
147
-                        function ($line) {
147
+                        function($line) {
148 148
                             if (0 === mb_strpos(ltrim($line), '#')) {
149 149
                                 return '';
150 150
                             }
151 151
 
152
-                            return rtrim($line) . "\n";
152
+                            return rtrim($line)."\n";
153 153
                         },
154 154
                         explode("\n", $fileContent)
155 155
                     )
156 156
                 )
157 157
             )
158
-        ) . "\n";
158
+        )."\n";
159 159
     }
160 160
 }
Please login to merge, or discard this patch.