@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | $dom->save($this->outputPath); |
88 | 88 | |
89 | - $output->writeln('XML generated at '.$this->outputPath); |
|
89 | + $output->writeln('XML generated at ' . $this->outputPath); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | $content = str_replace(array("\r\n", "\r"), "\n", $content); |
103 | 103 | $lines = explode("\n", $content); |
104 | 104 | |
105 | - $lineContent = array_slice($lines, $line-1, 1); |
|
105 | + $lineContent = array_slice($lines, $line - 1, 1); |
|
106 | 106 | $lineContent = reset($lineContent); |
107 | - $start = strpos($lineContent, $text.''); |
|
107 | + $start = strpos($lineContent, $text . ''); |
|
108 | 108 | |
109 | 109 | return [ |
110 | 110 | 'snippet' => $lineContent, |
@@ -21,7 +21,7 @@ |
||
21 | 21 | return ( |
22 | 22 | $parent instanceof ArrayItem && |
23 | 23 | false === $this->ignoreArray($parent) |
24 | - ) || $parent instanceof ArrayDimFetch; |
|
24 | + ) || $parent instanceof ArrayDimFetch; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | private function ignoreArray(ArrayItem $node): bool |
@@ -19,7 +19,7 @@ |
||
19 | 19 | $parent = $node->getAttribute('parent'); |
20 | 20 | |
21 | 21 | return ( |
22 | - $parent instanceof ArrayItem && |
|
22 | + $parent instanceof ArrayItem && |
|
23 | 23 | false === $this->ignoreArray($parent) |
24 | 24 | ) || $parent instanceof ArrayDimFetch; |
25 | 25 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | ->ignoreVCS(true) |
32 | 32 | ->append( |
33 | 33 | array_map( |
34 | - function (string $file) { |
|
34 | + function(string $file) { |
|
35 | 35 | return new SplFileInfo(realpath($file), dirname($file), $file); |
36 | 36 | }, |
37 | 37 | $files |
@@ -230,7 +230,7 @@ |
||
230 | 230 | if (false === is_array($result)) { |
231 | 231 | return array_filter( |
232 | 232 | explode(',', (string) $result), |
233 | - function ($value) { |
|
233 | + function($value) { |
|
234 | 234 | return false === empty($value); |
235 | 235 | } |
236 | 236 | ); |