Passed
Push — master ( 087b68...ed6cdc )
by Nicolaas
03:14
created
src/Api/CloudFlareGeoIP.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,16 +64,16 @@  discard block
 block discarded – undo
64 64
                 Controller::curr()->getRequest()->getSession()->set('MyCloudFlareCountry', $code);
65 65
             }
66 66
         }
67
-        if (! $code) {
67
+        if (!$code) {
68 68
             if (isset($_SERVER['HTTP_CF_IPCOUNTRY']) && $_SERVER['HTTP_CF_IPCOUNTRY']) {
69 69
                 return $_SERVER['HTTP_CF_IPCOUNTRY'];
70 70
             }
71 71
             $code = Controller::curr()->getRequest()->getSession()->get('MyCloudFlareCountry');
72
-            if (! $code) {
72
+            if (!$code) {
73 73
                 if (($address = self::get_remote_address()) !== '') {
74 74
                     $code = \Sunnysideup\CloudFlare\Api\CloudFlareGeoIP::ip2country($address, true);
75 75
                 }
76
-                if (! $code) {
76
+                if (!$code) {
77 77
                     $code = self::get_default_country_code();
78 78
                 }
79 79
                 if ($code === '') {
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
         } elseif (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
99 99
             $ip = $_SERVER['HTTP_CF_CONNECTING_IP'];
100 100
         }
101
-        if (! $ip ||
102
-            ! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)
101
+        if (!$ip ||
102
+            !filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)
103 103
         ) {
104 104
             $ip = Controller::curr()->getRequest()->getIP();
105 105
         }
Please login to merge, or discard this patch.