Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3.0987 |
Changes | 0 |
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 | 2 | } |
|
55 | 2 | } |
|
56 | |||
57 | 8 | return $files; |
|
58 | } |
||
59 | } |
||
60 |