@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * Read in the specified amount of characters from the input source |
120 | 120 | * |
121 | 121 | * @param integer Amount of characters to read from input source |
122 | - * @return string|boolean The specified amount of characters read from input source |
|
122 | + * @return false|string The specified amount of characters read from input source |
|
123 | 123 | */ |
124 | 124 | public function read($chars) |
125 | 125 | { |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | /** |
187 | 187 | * Return the current position within the stream/readable |
188 | 188 | * |
189 | - * @return int The current position within readable |
|
189 | + * @return boolean The current position within readable |
|
190 | 190 | */ |
191 | 191 | public function tell() |
192 | 192 | { |
@@ -138,7 +138,9 @@ |
||
138 | 138 | public function readChunk($start = null, $length = null) |
139 | 139 | { |
140 | 140 | //dd($this->buffer, false); |
141 | - if ($this->buffer === false) return false; |
|
141 | + if ($this->buffer === false) { |
|
142 | + return false; |
|
143 | + } |
|
142 | 144 | $top = substr($this->buffer, 0, $start); |
143 | 145 | $data = substr($this->buffer, $start, $length); |
144 | 146 | $bottom = substr($this->buffer, $start + $length); |