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