From aac04741bf0057d30e93bfb9bd74fdb49efc1533 Mon Sep 17 00:00:00 2001 From: Hiraku NAKANO Date: Sat, 4 May 2019 17:05:50 +0900 Subject: [PATCH] fix PHP codesniffer --- src/CurlMulti.php | 3 ++- tests/unit/CurlMultiTest.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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"