| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 33 | 1 | final public function get(array $appConfig): array |
|
| 34 | 1 | { |
|
| 35 | 1 | $defaults = $this->getSettings(); |
|
| 36 | 1 | ||
| 37 | $pathToDbFile = $defaults[static::KEY_PATH] ?? null; |
||
| 38 | assert( |
||
| 39 | 1 | ($pathToDbFile === null || file_exists($pathToDbFile) === true), |
|
| 40 | "Invalid database file `$pathToDbFile`." |
||
| 41 | ); |
||
| 42 | |||
| 43 | return $defaults; |
||
| 44 | } |
||
| 45 | 1 | ||
| 54 |