@@ -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 | |