| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 51 | 4 | protected function getInvalidStartTokens(FileInfo $file) { |
|
| 52 | |||
| 53 | 4 | $collection = $file->getTokenizer()->getCollection(); |
|
| 54 | 4 | $query = new Query(); |
|
| 55 | 4 | $query->custom(function (Token $token) { |
|
| 56 | 4 | return (boolean) preg_match(LineEndingAbstract::REGEX, $token->getValue()); |
|
| 57 | 4 | }); |
|
| 58 | |||
| 59 | 4 | return $collection->find($query); |
|
| 60 | } |
||
| 61 | |||
| 62 | } |
This check marks private properties in classes that are never used. Those properties can be removed.