@@ -27,12 +27,12 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function isReachableUrl($followRedirects = true) |
| 29 | 29 | { |
| 30 | - if (! $ch = curl_init($this->getValue())) { |
|
| 30 | + if (!$ch = curl_init($this->getValue())) { |
|
| 31 | 31 | return false; |
| 32 | 32 | } |
| 33 | - curl_setopt($ch, CURLOPT_HEADER, true); // we want headers |
|
| 34 | - curl_setopt($ch, CURLOPT_NOBODY, true); // don't need body |
|
| 35 | - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // catch output (do NOT print!) |
|
| 33 | + curl_setopt($ch, CURLOPT_HEADER, true); // we want headers |
|
| 34 | + curl_setopt($ch, CURLOPT_NOBODY, true); // don't need body |
|
| 35 | + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // catch output (do NOT print!) |
|
| 36 | 36 | |
| 37 | 37 | if ($followRedirects) { |
| 38 | 38 | curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); |