| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 8 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 3 | 
| CRAP Score | 4.679 | 
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1);  | 
            ||
| 34 | 1 | public function parseFile(string $filename): array  | 
            |
| 35 |     { | 
            ||
| 36 | 1 |         if ($this->filesystem->has($filename) && $contents = $this->filesystem->read($filename)) { | 
            |
| 37 | 1 | return $this->parseString($contents);  | 
            |
| 38 | }  | 
            ||
| 39 | |||
| 40 |         throw new \RuntimeException(sprintf('Unable to parse configuration file: "%s".', $filename)); | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 66 | }  |