Passed
Push — master ( 236a2f...2fc7fc )
by Michael
02:18
created
helper/util.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public function sendResponse($code, $msg)
87 87
     {
88 88
         header('Content-Type: application/json');
89
-        if ((int)$code === 204) {
89
+        if ((int) $code === 204) {
90 90
             http_status(200);
91 91
         } else {
92 92
             http_status($code);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function isValidTimeStamp($timestamp)
109 109
     {
110
-        return ((string)(int)$timestamp === (string)$timestamp);
110
+        return ((string) (int) $timestamp === (string) $timestamp);
111 111
     }
112 112
 
113 113
 }
Please login to merge, or discard this patch.
helper/data.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 
395 395
         $sqlTables = 'SELECT tbl, MAX(ts) AS ts FROM schemas GROUP BY tbl;';
396 396
         $res = $sqlite->query($sqlTables);
397
-        $tables = array_reduce($sqlite->res2arr($res), function ($carry, $element) {
397
+        $tables = array_reduce($sqlite->res2arr($res), function($carry, $element) {
398 398
             $carry[$element['tbl']] = $element['ts'];
399 399
             return $carry;
400 400
         }, []);
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
         $config = new dokuwiki\plugin\struct\meta\ConfigParser($configLines);
422 422
         $search = new dokuwiki\plugin\struct\meta\SearchConfig($config->getConfig());
423 423
         $results = $search->execute();
424
-        $pages = array_map(function ($result) {
424
+        $pages = array_map(function($result) {
425 425
             return ['page' => $result[0]->getRawValue(), 'rev' => 0];
426 426
         }, $results);
427 427
         return $pages;
Please login to merge, or discard this patch.
classes/Issue.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             $components = array_filter(array_map('trim', explode(',', $components)));
297 297
         }
298 298
         if (!empty($components[0]['name'])) {
299
-            $components = array_map(function ($component) {
299
+            $components = array_map(function($component) {
300 300
                 return $component['name'];
301 301
             }, $components);
302 302
         }
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
             $versions = array_map('trim', explode(',', $versions));
384 384
         }
385 385
         if (!empty($versions[0]['name'])) {
386
-            $versions = array_map(function ($version) {
386
+            $versions = array_map(function($version) {
387 387
                 return $version['name'];
388 388
             }, $versions);
389 389
         }
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
         if (!$util->isValidTimeStamp($updated)) {
412 412
             $updated = strtotime($updated);
413 413
         }
414
-        $this->updated = (int)$updated;
414
+        $this->updated = (int) $updated;
415 415
         return $this;
416 416
     }
417 417
 
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
     private function calculateColor($color)
707 707
     {
708 708
         /** @noinspection PrintfScanfArgumentsInspection */
709
-        list($r, $g, $b) = array_map(function ($color8bit) {
709
+        list($r, $g, $b) = array_map(function($color8bit) {
710 710
             $c = $color8bit / 255;
711 711
             if ($c <= 0.03928) {
712 712
                 $cl = $c / 12.92;
Please login to merge, or discard this patch.
services/GitLab.service.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     {
203 203
         $groups = $this->makeSingleGitLabGetRequest('/groups');
204 204
 
205
-        return array_map(function ($group) {
205
+        return array_map(function($group) {
206 206
             return $group['full_path'];
207 207
         }, $groups);
208 208
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
             try {
226 226
                 $repoHooks = $this->makeSingleGitLabGetRequest("/projects/$organisation%2F{$project['path']}/hooks?per_page=100");
227 227
             } catch (HTTPRequestException $e) {
228
-                $repo->error = (int)$e->getCode();
228
+                $repo->error = (int) $e->getCode();
229 229
             }
230 230
 
231 231
             $repoHooks = array_filter($repoHooks, [$this, 'isOurIssueHook']);
Please login to merge, or discard this patch.