diff --git a/src/CurlMulti.php b/src/CurlMulti.php index f3d4ba1..6cf3bfc 100644 --- a/src/CurlMulti.php +++ b/src/CurlMulti.php @@ -129,8 +129,9 @@ public function getFinishedResults() if ($raised = curl_multi_info_read($this->mh, $remains)) { $ch = $raised['handle']; $errno = curl_errno($ch); - if($errno == CURLE_OK && $raised['result'] != CURLE_OK) + if ($errno == CURLE_OK && $raised['result'] != CURLE_OK) { $errno = $raised['result']; + } $error = curl_error($ch); $info = curl_getinfo($ch); curl_setopt($ch, CURLOPT_FILE, $this->blackhole); //release file pointer diff --git a/tests/unit/CurlMultiTest.php b/tests/unit/CurlMultiTest.php index 38a945a..4643b25 100644 --- a/tests/unit/CurlMultiTest.php +++ b/tests/unit/CurlMultiTest.php @@ -72,7 +72,8 @@ public function testWait() $this->assertEmpty($content); } - public function testCountable() { + public function testCountable() + { $multi = new CurlMulti; // Both of the methods are using the class properties that are defined as "null" initially and if we'll // pass that state to "count()" the "Parameter must be an array or an object that implements Countable"