| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | 6 | public function process(File $file, Report $report) { |
|
| 41 | |||
| 42 | 6 | $collection = \Funivan\PhpTokenizer\Collection::createFromString($file->getContent()->get()); |
|
| 43 | 6 | $items = $this->getInvalidStartTokens($collection); |
|
| 44 | |||
| 45 | 6 | if (count($items) === 0) { |
|
| 46 | 2 | return; |
|
| 47 | } |
||
| 48 | 4 | foreach ($items as $lineTokenData) { |
|
| 49 | 4 | $report->addMessage($file, $this, 'Expect at one empty line after php open tag', $lineTokenData->getToken()->getLine()); |
|
| 50 | } |
||
| 51 | |||
| 52 | 4 | } |
|
| 53 | |||
| 54 | } |