Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function __construct(string $filePath = '') |
||
17 | { |
||
18 | if (!file_exists($filePath)) { |
||
19 | $filePath = getcwd() . '/grumphp.yml'; |
||
20 | if (!file_exists($filePath)) { |
||
21 | throw new FailedReadConfigurationException($filePath . ' does not exist!'); |
||
22 | } |
||
23 | } |
||
24 | parent::__construct($this->readConfiguration($filePath)); |
||
25 | } |
||
41 |