Conditions | 2 |
Paths | 2 |
Total Lines | 24 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function __invoke( |
||
14 | string $fileName, |
||
15 | ?bool $useIncludePath = false, |
||
16 | ?resource $context = null, |
||
17 | int $offset = 0, |
||
18 | ?int $maxLength = null |
||
19 | ) { |
||
20 | if (null === $maxLength) { |
||
21 | return file_get_contents( |
||
22 | $fileName, |
||
23 | $useIncludePath, |
||
24 | $context, |
||
25 | $offset |
||
26 | ); |
||
27 | } |
||
28 | |||
29 | return file_get_contents( |
||
30 | $fileName, |
||
31 | $useIncludePath, |
||
32 | $context, |
||
33 | $offset, |
||
34 | $maxLength |
||
35 | ); |
||
36 | } |
||
37 | } |
||
38 |