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 |
||
39 | 12 | private function getStringConfig(string $key, string $default): string |
|
40 | { |
||
41 | 12 | $data = $this->getConfig($key, $default); |
|
42 | |||
43 | 12 | if (\is_string($data)) { |
|
44 | 11 | return $data; |
|
45 | } |
||
46 | |||
47 | 1 | throw new \RuntimeException("db-rebuild.presets.{$this->preset}.{$key} should be a string"); |
|
48 | } |
||
70 |