Passed
Push — master ( b567c0...c4a4cd )
by Andreas
24:57
created
lib/midcom/services/auth/main.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
             return true;
239 239
         }
240 240
         if ($user === null) {
241
-            $user =& $this->user;
241
+            $user = & $this->user;
242 242
         }
243 243
 
244 244
         if ($user == 'EVERYONE') {
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
     public function require_admin_or_ip(string $domain) : bool
436 436
     {
437 437
         $ips = midcom::get()->config->get('indexer_reindex_allowed_ips');
438
-        if (   $ips
438
+        if ($ips
439 439
             && in_array($_SERVER['REMOTE_ADDR'], $ips)) {
440 440
             if (!$this->request_sudo($domain)) {
441 441
                 throw new midcom_error('Failed to acquire SUDO rights. Aborting.');
Please login to merge, or discard this patch.