Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 9 | private function getArrayConfig(string $key, array $default = []): array |
|
29 | { |
||
30 | 9 | $data = $this->getConfig($key, $default); |
|
31 | |||
32 | 9 | if (\is_array($data)) { |
|
33 | 8 | return $data; |
|
34 | } |
||
35 | |||
36 | 3 | throw new \RuntimeException("db-rebuild.presets.{$this->preset}.{$key} should be an array"); |
|
37 | } |
||
70 |