| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function getBody(): StreamInterface |
||
| 35 | { |
||
| 36 | if (isset($this->start)) { |
||
| 37 | $fp = fopen($this->template, 'r'); |
||
| 38 | fseek($fp, $this->start); |
||
|
|
|||
| 39 | $stream = Utils::streamFor($fp); |
||
| 40 | return Utils::streamFor($stream->getContents()); |
||
| 41 | } |
||
| 42 | return Utils::streamFor(fopen($this->template, 'r')); |
||
| 43 | } |
||
| 45 |