@@ -157,8 +157,9 @@ discard block |
||
157 | 157 | if (!feof($stream)){ |
158 | 158 | $pos=ftell($stream); |
159 | 159 | $row = fgets($stream); |
160 | - if(!$auto_advance) |
|
161 | - fseek($stream,$pos); |
|
160 | + if(!$auto_advance) { |
|
161 | + fseek($stream,$pos); |
|
162 | + } |
|
162 | 163 | } |
163 | 164 | return trim($row,"\r\n"); |
164 | 165 | } |
@@ -208,8 +209,9 @@ discard block |
||
208 | 209 | } |
209 | 210 | } |
210 | 211 | //remove last newline ( part of boundary) |
211 | - if(end($contents) =="") |
|
212 | - array_pop($contents); |
|
212 | + if(end($contents) =="") { |
|
213 | + array_pop($contents); |
|
214 | + } |
|
213 | 215 | return $this->contentDecoder->decode(implode(PHP_EOL, $contents), $encoding); |
214 | 216 | } |
215 | 217 |