@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | 'rqtype' => $requestType, |
142 | 142 | 'path' => $this->path, |
143 | 143 | 'proto' => $this->protocol, |
144 | - 'query' => (strlen($this->queryString) ? '?' . $this->queryString : '') |
|
144 | + 'query' => (strlen($this->queryString) ? '?'.$this->queryString : '') |
|
145 | 145 | )); |
146 | 146 | |
147 | 147 | // Add the host part |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | $numBytes = 1; |
197 | 197 | $start = time(); |
198 | 198 | while (true) { |
199 | - if (! $this->checkConnection($start)) { |
|
199 | + if (!$this->checkConnection($start)) { |
|
200 | 200 | continue; |
201 | 201 | } |
202 | 202 | |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | $start = time(); // we have readen something => adjust timeout start point |
210 | 210 | $tmp .= $c; |
211 | 211 | |
212 | - if (! $delimiterFound) { |
|
212 | + if (!$delimiterFound) { |
|
213 | 213 | $this->handleHeader($delimiterFound, $numBytes, $tmp); |
214 | 214 | } |
215 | 215 | |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | } |
231 | 231 | |
232 | 232 | $size = $this->payload->count(); |
233 | - if($size == 0) { |
|
233 | + if ($size == 0) { |
|
234 | 234 | return; |
235 | 235 | } |
236 | 236 | // Set pointer to start |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | |
322 | 322 | $ms = $this->appendPayloadToRequest($ms); |
323 | 323 | |
324 | - if (! $this->isConnected()) { |
|
324 | + if (!$this->isConnected()) { |
|
325 | 325 | $this->connect(); |
326 | 326 | } |
327 | 327 | |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | */ |
347 | 347 | private function checkConnection($start): bool |
348 | 348 | { |
349 | - if (! $this->ready()) { |
|
349 | + if (!$this->ready()) { |
|
350 | 350 | if (time() - $start > $this->timeout) { |
351 | 351 | $this->disconnect(); |
352 | 352 | throw new HttpException("Connection timed out!"); |