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 |
||
76 | 3 | private function parseServices(array $array) |
|
77 | { |
||
78 | 3 | foreach ($array as $name => $service) { |
|
79 | 2 | if (!is_string($name)) { |
|
80 | 1 | throw new ParseException(sprintf('Invalid service definition name: %s', var_export($name, true))); |
|
81 | } |
||
82 | 1 | $this->services[$name] = $this->parseNamedService($name, $service); |
|
83 | } |
||
97 |