Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function __construct(string $filePath = '') |
||
12 | { |
||
13 | if (!file_exists($filePath)) { |
||
14 | $filePath = getcwd() . '/typoscript-lint.yml'; |
||
15 | if (!file_exists($filePath)) { |
||
16 | throw new FailedReadConfigurationException($filePath . ' does not exist!'); |
||
17 | } |
||
18 | } |
||
19 | |||
20 | parent::__construct($this->readConfiguration($filePath)); |
||
21 | } |
||
37 |