@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | } |
253 | 253 | |
254 | 254 | // Read answer from socket in loop, or until timeout reached |
255 | - $startTime = time(); |
|
255 | + $startTime = time(); |
|
256 | 256 | while (true) { |
257 | 257 | // Exit from loop if timeout reached |
258 | 258 | if (time() > $startTime + $this->config('socket_timeout')) { |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | } |
375 | 375 | |
376 | 376 | // Save as result |
377 | - if(null != $this->parseResponse($item)) $result[] = $this->parseResponse($item)[0]; |
|
377 | + if (null != $this->parseResponse($item)) $result[] = $this->parseResponse($item)[0]; |
|
378 | 378 | } |
379 | 379 | |
380 | 380 | } else { |
@@ -374,7 +374,9 @@ |
||
374 | 374 | } |
375 | 375 | |
376 | 376 | // Save as result |
377 | - if(null != $this->parseResponse($item)) $result[] = $this->parseResponse($item)[0]; |
|
377 | + if(null != $this->parseResponse($item)) { |
|
378 | + $result[] = $this->parseResponse($item)[0]; |
|
379 | + } |
|
378 | 380 | } |
379 | 381 | |
380 | 382 | } else { |