Conditions | 5 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 16 |
Ratio | 100 % |
Tests | 10 |
CRAP Score | 5 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | 2 | if (!is_string($concrete)) { |
|
47 | 1 | continue; |
|
48 | } |
||
49 | |||
50 | 2 | $this->configureOne($alias, $concrete); |
|
51 | 3 | } |
|
52 | 3 | } |
|
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | 5 | public function configureOne($alias, $concrete) |
|
58 | { |
||
59 | 5 | if (!is_string($alias) || !is_string($concrete)) { |
|
60 | 3 | throw new InvalidConfigException('Alias and concrete should be strings'); |
|
61 | } |
||
62 | |||
66 |