Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
28 | 10 | public function getContents($offset, $length) |
|
29 | { |
||
30 | 10 | if ($length === 0) { |
|
31 | 3 | $result = ''; |
|
32 | } else { |
||
33 | 7 | $reader = $this->chm->getReader(); |
|
34 | 7 | $reader->setPosition($this->sectionOffset + $offset); |
|
35 | 7 | $result = $reader->readString($length); |
|
36 | } |
||
37 | |||
38 | 10 | return $result; |
|
39 | } |
||
40 | } |
||
41 |