@@ -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 | ); |
@@ -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 | } |