Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public static function read(array $filePaths, bool $modeEnabled = true) |
||
43 | { |
||
44 | $output = ''; |
||
45 | |||
46 | foreach ($filePaths as $filePath) { |
||
47 | $output = file($filePath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); |
||
48 | |||
49 | if ($modeEnabled) { |
||
50 | break; |
||
51 | } |
||
52 | } |
||
53 | |||
54 | return $output; |
||
|
|||
55 | } |
||
56 | } |