FIX Update linting in CurlLinkChecker for PSR-2

This commit is contained in:
Robbie Averill 2018-02-22 10:58:16 +13:00
parent 2279b2c9d8
commit 717b126dda
1 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,9 @@ class CurlLinkChecker implements LinkChecker
// 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
@ -72,7 +74,7 @@ class CurlLinkChecker implements LinkChecker
$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);