Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
29 | public function readFile(string $path): string |
||
30 | { |
||
31 | try { |
||
32 | return $this->fileSystem->readFile($path); |
||
33 | } catch (FileSystemInvalidPathException $e) { |
||
34 | throw new InvalidPathException('', 0, $e); |
||
35 | } catch (FileSystemFileNotFoundException $e) { |
||
36 | throw new FileNotFoundException('', 0, $e); |
||
37 | } |
||
38 | } |
||
39 | |||
45 |