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