Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
43 | 5 | protected function saveFile(string $path, array $lines): void |
|
44 | { |
||
45 | 5 | $content = implode(IFile::CRLF, array_map([$this, 'implosion'], $lines)) . IFile::CRLF; |
|
46 | 5 | $result = @file_put_contents($path, $content); |
|
47 | 5 | if (false === $result) { |
|
48 | 1 | throw new AuthException($this->getLang()->kauPassFileNotSave($path)); |
|
49 | } |
||
54 |