Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.2098 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
46 | 8 | protected function getConfigurationFiles($directoryPath) |
|
47 | { |
||
48 | 8 | $files = []; |
|
49 | |||
50 | 8 | 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 | } |
||
55 | } |
||
56 | |||
57 | 8 | return $files; |
|
58 | } |
||
59 | } |
||
60 |