@@ -203,7 +203,7 @@ |
||
203 | 203 | if (false === is_array($result)) { |
204 | 204 | return array_filter( |
205 | 205 | explode(',', $result), |
206 | - function ($value) { |
|
206 | + function($value) { |
|
207 | 207 | return false === empty($value); |
208 | 208 | } |
209 | 209 | ); |
@@ -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 |
@@ -78,6 +78,6 @@ |
||
78 | 78 | |
79 | 79 | $dom->save($this->outputPath); |
80 | 80 | |
81 | - $output->writeln('XML generated at '.$this->outputPath); |
|
81 | + $output->writeln('XML generated at ' . $this->outputPath); |
|
82 | 82 | } |
83 | 83 | } |
@@ -52,6 +52,6 @@ |
||
52 | 52 | $dom->save($this->outputPath); |
53 | 53 | |
54 | 54 | $output->writeln('Total of Magic Numbers ' . $total); |
55 | - $output->writeln('checkstyle XML generated at '. $this->outputPath); |
|
55 | + $output->writeln('checkstyle XML generated at ' . $this->outputPath); |
|
56 | 56 | } |
57 | 57 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $content = str_replace(["\r\n", "\r"], "\n", $content); |
22 | 22 | $lines = explode("\n", $content); |
23 | 23 | |
24 | - $lineContent = array_slice($lines, $line-1, 1); |
|
24 | + $lineContent = array_slice($lines, $line - 1, 1); |
|
25 | 25 | $lineContent = reset($lineContent); |
26 | 26 | $start = strpos($lineContent, (string) $text); |
27 | 27 |