| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function process(File $file, Report $report) { |
||
| 38 | $collection = \Funivan\PhpTokenizer\Collection::createFromString($file->getContent()->get()); |
||
| 39 | $tokens = $this->getInvalidTokens($collection); |
||
| 40 | |||
| 41 | foreach ($tokens as $token) { |
||
| 42 | $report->addMessage($file, $this, 'Expect one empty line before class end', $token->getLine()); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | } |