Completed
Push — master ( 22fb31...11f743 )
by Adam
02:50
created
src/File.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
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);
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         }
43 43
 
44 44
         curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
45
-        curl_setopt($ch, CURLOPT_TI/MEOUT, 5);
45
+        curl_setopt($ch, CURLOPT_TI / MEOUT, 5);
46 46
         curl_exec($ch);
47 47
         if (curl_errno($ch)) {   // should be 0
48 48
             curl_close($ch);
Please login to merge, or discard this patch.