Passed
Push — master ( 0dd26d...c6bcef )
by Nicolaas
09:19
created
src/Api/CloudFlareGeoIP.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,17 +68,17 @@  discard block
 block discarded – undo
68 68
                 Controller::curr()->getRequest()->getSession()->set('MyCloudFlareCountry', $code);
69 69
             }
70 70
         }
71
-        if (! $code) {
71
+        if (!$code) {
72 72
             if (isset($_SERVER['HTTP_CF_IPCOUNTRY']) && $_SERVER['HTTP_CF_IPCOUNTRY']) {
73 73
                 return $_SERVER['HTTP_CF_IPCOUNTRY'];
74 74
             }
75 75
             $code = Controller::curr()->getRequest()->getSession()->get('MyCloudFlareCountry');
76
-            if (! $code) {
76
+            if (!$code) {
77 77
                 $address = self::get_remote_address();
78 78
                 if (strlen($address) > 3) {
79 79
                     $code = CloudFlareGeoIP::ip2country($address, true);
80 80
                 }
81
-                if (! $code) {
81
+                if (!$code) {
82 82
                     $code = self::get_default_country_code();
83 83
                 }
84 84
                 if ('' === $code) {
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
         } elseif (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
105 105
             $ip = $_SERVER['HTTP_CF_CONNECTING_IP'];
106 106
         }
107
-        if (! $ip ||
108
-            ! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)
107
+        if (!$ip ||
108
+            !filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)
109 109
         ) {
110 110
             $ip = Controller::curr()->getRequest()->getIP();
111 111
         }
Please login to merge, or discard this patch.