Passed
Push — master ( fcf88c...f4dd36 )
by Tomasz
04:40
created
core/UserAPI.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $installerProperties['mime'] = $cache['mime'];
87 87
         } else {
88 88
             $myInstaller = $this->generateNewInstaller($device, $profile, $generatedFor, $token, $password);
89
-            if ($myInstaller['link'] != 0 ) {
89
+            if ($myInstaller['link'] != 0) {
90 90
                 $installerProperties['mime'] = $myInstaller['mime'];
91 91
             }
92 92
             $installerProperties['link'] = $myInstaller['link'];
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
             if (isset($deviceProperties['options']['hidden']) && $deviceProperties['options']['hidden'] && $showHidden == 0) {
180 180
                 continue;
181 181
             }
182
-            $count ++;
182
+            $count++;
183 183
 
184 184
             $deviceProperties['device'] = $device;
185 185
 
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
     }
567 567
 
568 568
 
569
-    public function sendLogo($identifier, $type, $width = 0, $height = 0){
569
+    public function sendLogo($identifier, $type, $width = 0, $height = 0) {
570 570
         if ($type === "federation") {
571 571
             $logo = $this->getFedLogo($identifier, $width, $height);
572 572
         }
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
             return ['status' => 'error', 'error' => 'Function for GEOIPv1 called, but config says this is not the version to use!'];
585 585
         }
586 586
         //$host = $_SERVER['REMOTE_ADDR'];
587
-        $host = input_filter(INPUT_SERVER,'REMOTE_ADDR',FILTER_VALIDATE_IP);
587
+        $host = input_filter(INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP);
588 588
         $record = geoip_record_by_name($host);
589 589
         if ($record === FALSE) {
590 590
             return ['status' => 'error', 'error' => 'Problem listing countries'];
@@ -746,12 +746,12 @@  discard block
 block discarded – undo
746 746
                     $this->loggerInstance->debug(4, "Browser_id: $dev_id\n");
747 747
                     return(['device' => $dev_id, 'display' => $device['display'], 'group' => $device['group']]);
748 748
                 } else {
749
-                    $this->loggerInstance->debug(2, "Unrecognised system: " . filter_input(INPUT_SERVER,'HTTP_USER_AGENT', FILTER_SANITIZE_STRING) . "\n");
749
+                    $this->loggerInstance->debug(2, "Unrecognised system: " . filter_input(INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_SANITIZE_STRING) . "\n");
750 750
                     return(false);
751 751
                 }
752 752
             }
753 753
         }
754
-        $this->loggerInstance->debug(2, "Unrecognised system: " . filter_input(INPUT_SERVER,'HTTP_USER_AGENT', FILTER_SANITIZE_STRING) . "\n");
754
+        $this->loggerInstance->debug(2, "Unrecognised system: " . filter_input(INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_SANITIZE_STRING) . "\n");
755 755
         return(false);
756 756
     }
757 757
 
Please login to merge, or discard this patch.