Passed
Push — master ( a9c273...a45b4d )
by Andreas
27:21
created
lib/midcom/exec/reindex.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 $reindex_topic_uri = midcom::get()->get_page_prefix() . 'midcom-exec-midcom/reindex_singlenode.php';
48 48
 
49 49
 $options = ['timeout' => 300];
50
-if (   !empty($_SERVER['PHP_AUTH_USER'])
50
+if (!empty($_SERVER['PHP_AUTH_USER'])
51 51
     && !empty($_SERVER['PHP_AUTH_PW'])) {
52 52
     $options['auth'] = ['user' => $_SERVER['PHP_AUTH_USER'], 'password' => $_SERVER['PHP_AUTH_PW']];
53 53
 }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             } else {
66 66
                 echo "OK.\n";
67 67
             }
68
-        }, function (TransferException $e) use ($uri) {
68
+        }, function(TransferException $e) use ($uri) {
69 69
             echo "failure.\n   Background processing failed, error: {$e->getMessage()}\n";
70 70
             echo "Url: " . $uri . "\n";
71 71
         })->wait();
Please login to merge, or discard this patch.