Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | 3 | private function prefixPathsWithBasePath(string $configKey, array $config, string $basePath): array |
|
25 | { |
||
26 | return map($config[$configKey] ?? [], function (array $element) use ($basePath) { |
||
27 | 1 | if (! isset($element['path'])) { |
|
28 | 1 | return $element; |
|
29 | } |
||
30 | |||
31 | 1 | $element['path'] = $basePath . $element['path']; |
|
32 | 1 | return $element; |
|
33 | 3 | }); |
|
36 |