Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 2 | public function get(array $path, bool $errorOnFail = false): string |
|
29 | { |
||
30 | try { |
||
31 | 2 | return $this->toString(Stuff::arrayToPath($path), $this->lib->readFile($this->getPath($path))); |
|
32 | 2 | } catch (FilesException $ex) { |
|
33 | 2 | if (!$errorOnFail) { |
|
34 | 2 | return ''; |
|
35 | } |
||
36 | 1 | throw $ex; |
|
37 | } |
||
79 |