| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 17 | protected function openFile(string $path): array |
|
| 26 | { |
||
| 27 | 17 | $content = @file($path); |
|
| 28 | 17 | if (false === $content) { |
|
| 29 | 1 | throw new AuthException($this->getLang()->kauPassFileNotFound($path)); |
|
| 30 | } |
||
| 31 | 16 | return array_map([$this, 'explosion'], array_filter(array_map('trim', $content), [$this, 'filterEmptyLines'])); |
|
| 32 | } |
||
| 54 |