Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
25 | 3 | private function getArguments(array $config, $value) |
|
26 | { |
||
27 | 3 | $isService = 0 === strpos($value, '@'); |
|
28 | 3 | if ($isService) { |
|
29 | 2 | return str_replace('@', '', $value); |
|
30 | } |
||
31 | 3 | $index = str_replace(['%config%', '%config.', '%'], '', $value); |
|
32 | 3 | if (array_key_exists($index, $config)) { |
|
33 | 2 | return $config[$index]; |
|
34 | } |
||
35 | |||
36 | 1 | return $value; |
|
37 | } |
||
39 |