| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 17 | protected function getAvailableDeclarations(): iterable |
|
| 18 | { |
||
| 19 | 17 | $files = $this->getFiles(); |
|
| 20 | 17 | $declarations = []; |
|
| 21 | |||
| 22 | 17 | foreach ($files as $file) { |
|
| 23 | 17 | $reflectionFile = new ReflectionFile($file->getPathname()); |
|
| 24 | 17 | array_push($declarations, ...$reflectionFile->getDeclarations()); |
|
| 25 | } |
||
| 26 | |||
| 27 | 17 | return $declarations; |
|
| 28 | } |
||
| 30 |