| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 30 | 4 | public function process(FileInfo $file, Report $report) { |
|
| 31 | 4 | $tokens = $this->getInvalidStartTokens($file); |
|
| 32 | |||
| 33 | 4 | foreach ($tokens as $token) { |
|
| 34 | 2 | $value = $token->getValue(); |
|
| 35 | 2 | $value = preg_replace(self::REGEX, "\n", $value); |
|
| 36 | 2 | $token->setValue($value); |
|
| 37 | |||
| 38 | 2 | $report->addNotice($file, $this, 'Replace invalid line ending', $token->getLine()); |
|
| 39 | 4 | } |
|
| 40 | 4 | } |
|
| 41 | |||
| 42 | } |