Skip to content

Commit

Permalink
FIX Update linting in CurlLinkChecker for PSR-2
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Feb 21, 2018
1 parent 2279b2c commit 717b126
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Tasks/CurlLinkChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public function checkLink($href)
// Check if we have a cached result
$cacheKey = md5($href);
$result = $this->getCache()->load($cacheKey);
if($result !== false) return $result;
if ($result !== false) {
return $result;
}
}

// Check if we have a cached result
Expand All @@ -72,7 +74,7 @@ public function checkLink($href)
$handle = curl_init($href);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
if ($this->config()->get('follow_location')) {
curl_setopt($handle, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($handle, CURLOPT_FOLLOWLOCATION, true);
}
curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($handle, CURLOPT_TIMEOUT, 10);
Expand Down

0 comments on commit 717b126

Please sign in to comment.