@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | 'method' => $method, |
44 | 44 | 'url' => $uri, |
45 | 45 | 'data' => $payload, |
46 | - ) + $options; |
|
46 | + )+$options; |
|
47 | 47 | $this->addOptions(array($options)); |
48 | 48 | return $this; |
49 | 49 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function execute() |
82 | 82 | { |
83 | - $sleepTime = 1000;//microsecond, prevent CPU 100% |
|
83 | + $sleepTime = 1000; //microsecond, prevent CPU 100% |
|
84 | 84 | do { |
85 | 85 | curl_multi_exec(self::$multiHandler, $active); |
86 | 86 | // bug in PHP 5.3.18+ where curl_multi_select can return -1 |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | usleep($sleepTime); |
90 | 90 | } |
91 | 91 | usleep($sleepTime); |
92 | - } while ($active); |
|
92 | + }while ($active); |
|
93 | 93 | $return = array(); |
94 | 94 | foreach (self::$requestPool as $request) { |
95 | 95 | $response = $request->makeResponse(true); |