| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 4 | public function process(File $file, Report $report) { |
|
| 28 | 4 | $collection = \Funivan\PhpTokenizer\Collection::createFromString($file->getContent()->get()); |
|
| 29 | 4 | $tokens = $collection->find($this->getFindQuery()); |
|
| 30 | |||
| 31 | 4 | foreach ($tokens as $token) { |
|
| 32 | 3 | $report->addMessage($file, $this, 'Expect only LF line ending', $token->getLine()); |
|
| 33 | } |
||
| 34 | |||
| 35 | 4 | } |
|
| 36 | |||
| 37 | } |