@@ -91,7 +91,9 @@ |
||
| 91 | 91 | { |
| 92 | 92 | $res = (new Resource($uri, $mode)) |
| 93 | 93 | ->setContextResource($context); |
| 94 | - if (!$lazy) $res->connect(); |
|
| 94 | + if (!$lazy) { |
|
| 95 | + $res->connect(); |
|
| 96 | + } |
|
| 95 | 97 | return $res; |
| 96 | 98 | } |
| 97 | 99 | |
@@ -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); |