| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0987 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 46 | 4 | protected function getConfigurationFiles($directoryPath) |
|
| 47 | { |
||
| 48 | 4 | $files = []; |
|
| 49 | |||
| 50 | 4 | if (is_dir($directoryPath)) { |
|
| 51 | 2 | foreach (Finder::create()->files()->in($directoryPath) as $file) { |
|
| 52 | $group = basename($file->getRealPath(), '.php'); |
||
| 53 | $files[$group] = $file->getRealPath(); |
||
| 54 | 2 | } |
|
| 55 | 2 | } |
|
| 56 | |||
| 57 | 4 | return $files; |
|
| 58 | } |
||
| 59 | } |
||
| 60 |