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