Skip to content

Commit

Permalink
fix PHP codesniffer
Browse files Browse the repository at this point in the history
  • Loading branch information
hirak committed May 4, 2019
1 parent e854770 commit aac0474
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/CurlMulti.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/CurlMultiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit aac0474

Please sign in to comment.