| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 35 | 12 | public function __invoke(Traversable $files): Traversable |
|
| 36 | { |
||
| 37 | 12 | foreach ($files as $file) { |
|
| 38 | 11 | $stmts = $this->parser->parse(file_get_contents($file), $this->errorHandler); |
|
| 39 | |||
| 40 | 10 | if ($stmts === null) { |
|
| 41 | 1 | throw new RuntimeException(sprintf("Parsing the file [%s] resulted in an error.", $file)); |
|
| 42 | } |
||
| 43 | |||
| 44 | 9 | yield $stmts; |
|
| 45 | } |
||
| 48 |