Conditions | 3 |
Paths | 3 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
57 | 3 | private function parseServices(array $array) |
|
58 | { |
||
59 | 3 | foreach ($array as $name => $service) { |
|
60 | 2 | if (!is_string($name)) { |
|
61 | 1 | throw new ParseException(sprintf('Invalid service definition name: %s', var_export($name, true))); |
|
62 | } |
||
63 | 1 | $this->services[$name] = $this->parseNamedService($name, $service); |
|
64 | } |
||
78 |