@@ -75,8 +75,7 @@ discard block |
||
75 | 75 | if(is_string($host) && filter_var($host, FILTER_VALIDATE_URL)) |
76 | 76 | { |
77 | 77 | $this->setUrl($host); |
78 | - } |
|
79 | - elseif($host) |
|
78 | + } elseif($host) |
|
80 | 79 | { |
81 | 80 | $this->setHost($host); |
82 | 81 | } |
@@ -317,8 +316,7 @@ discard block |
||
317 | 316 | if($this->isCached($type, $file)) |
318 | 317 | { |
319 | 318 | return $this->getCachedResponse($type, $file); |
320 | - } |
|
321 | - elseif(!isset($retries[sha1($file)])) |
|
319 | + } elseif(!isset($retries[sha1($file)])) |
|
322 | 320 | { |
323 | 321 | $retries[sha1($file)] = $this->retries; |
324 | 322 | } |
@@ -405,8 +403,7 @@ discard block |
||
405 | 403 | if(is_null($this->callback)) |
406 | 404 | { |
407 | 405 | $this->response = curl_exec($curl); |
408 | - } |
|
409 | - else |
|
406 | + } else |
|
410 | 407 | { |
411 | 408 | $this->response = ''; |
412 | 409 | curl_exec($curl); |