Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
28 | 3 | public function fread() { |
|
29 | 3 | if ($this->currentPosition >= \strlen($this->content)) { |
|
30 | 3 | return false; |
|
31 | } |
||
32 | 3 | $chunk = \substr($this->content, $this->currentPosition, $this->chunkSize); |
|
33 | 3 | $this->currentPosition = $this->currentPosition + $this->chunkSize; |
|
34 | |||
35 | 3 | return $chunk; |
|
36 | } |
||
37 | } |
||
38 |