Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | private function loadSettings(string $filePath): void |
||
49 | { |
||
50 | set_error_handler(function (int $errorNumber, string $message): bool { |
||
51 | $this->lastError = "$errorNumber: $message"; |
||
52 | return true; |
||
53 | }); |
||
54 | $parsedFile = parse_ini_file($filePath, true, INI_SCANNER_TYPED); |
||
55 | $this->data = is_array($parsedFile) ? $parsedFile : 0; |
||
56 | restore_error_handler(); |
||
57 | } |
||
59 |