GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 1959e6...256ef2 )
by Steeven
02:23
created
src/Http/Controllers/Restful.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -338,8 +338,8 @@  discard block
 block discarded – undo
338 338
                         $conditions = [];
339 339
 
340 340
                         foreach ($this->paramsWithRules as $param) {
341
-                            if ($get->offsetExists($param[ 'field' ])) {
342
-                                $conditions[ $param[ 'field' ] ] = $get->offsetGet($param[ 'field' ]);
341
+                            if ($get->offsetExists($param['field'])) {
342
+                                $conditions[$param['field']] = $get->offsetGet($param['field']);
343 343
                             }
344 344
                         }
345 345
 
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
             }
396 396
 
397 397
             $hasAction = false;
398
-            if($request = input()->request()) {
398
+            if ($request = input()->request()) {
399 399
                 // Start as limit
400 400
                 $this->model->qb->limit($request['start']);
401 401
 
@@ -403,8 +403,8 @@  discard block
 block discarded – undo
403 403
                 $this->model->qb->offset($request['length']);
404 404
 
405 405
                 // Set ordering
406
-                if( ! empty($request['order'])) {
407
-                    foreach($request['order'] as $dt => $order) {
406
+                if ( ! empty($request['order'])) {
407
+                    foreach ($request['order'] as $dt => $order) {
408 408
                         $field = $request['columns'][$order['column']]['data'];
409 409
                         $this->model->qb->orderBy($field, strtoupper($order['dir']));
410 410
                     }
@@ -412,30 +412,30 @@  discard block
 block discarded – undo
412 412
 
413 413
                 $this->model->visibleColumns = [];
414 414
 
415
-                foreach($request['columns'] as $dt => $column) {
416
-                    if($column['data'] === 'action') {
415
+                foreach ($request['columns'] as $dt => $column) {
416
+                    if ($column['data'] === 'action') {
417 417
                         $this->model->appendColumns[] = 'action';
418 418
 
419 419
                         continue;
420 420
                     }
421 421
 
422
-                    if($column['searchable']) {
423
-                        if($dt == 0) {
424
-                            if( ! empty($column['search']['value']) ) {
422
+                    if ($column['searchable']) {
423
+                        if ($dt == 0) {
424
+                            if ( ! empty($column['search']['value'])) {
425 425
                                 $this->model->qb->like($column['data'], $column['search']['value']);
426 426
 
427
-                                if( ! empty($request['search']['value'])) {
427
+                                if ( ! empty($request['search']['value'])) {
428 428
                                     $this->model->qb->orLike($column['data'], $request['search']['value']);
429 429
                                 }
430
-                            } elseif( ! empty($request['search']['value'])) {
430
+                            } elseif ( ! empty($request['search']['value'])) {
431 431
                                 $this->model->qb->like($column['data'], $request['search']['value']);
432 432
                             }
433 433
                         } else {
434
-                            if( ! empty($column['search']['value']) ) {
435
-                                $this->model->qb->orLike($column[ 'data' ], $column[ 'search' ][ 'value' ]);
434
+                            if ( ! empty($column['search']['value'])) {
435
+                                $this->model->qb->orLike($column['data'], $column['search']['value']);
436 436
                             }
437 437
 
438
-                            if( ! empty($request['search']['value'])) {
438
+                            if ( ! empty($request['search']['value'])) {
439 439
                                 $this->model->qb->orLike($column['data'], $request['search']['value']);
440 440
                             }
441 441
                         }
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
                 }
446 446
             }
447 447
 
448
-            $this->model->rebuildRowCallback(function ($row) {
448
+            $this->model->rebuildRowCallback(function($row) {
449 449
                 $row->DT_RowId = 'datatable-row-' . $row->id;
450 450
             });
451 451
 
@@ -489,14 +489,14 @@  discard block
 block discarded – undo
489 489
 
490 490
             if (count($this->fillableColumnsWithRules)) {
491 491
                 foreach ($this->fillableColumnsWithRules as $column) {
492
-                    if ($post->offsetExists($column[ 'field' ])) {
493
-                        $data[ $column[ 'field' ] ] = $post->offsetGet($column[ 'field' ]);
492
+                    if ($post->offsetExists($column['field'])) {
493
+                        $data[$column['field']] = $post->offsetGet($column['field']);
494 494
                     }
495 495
                 }
496 496
             } elseif (count($this->fillableColumns)) {
497 497
                 foreach ($this->fillableColumns as $column) {
498
-                    if ($post->offsetExists($column[ 'field' ])) {
499
-                        $data[ $column[ 'field' ] ] = $post->offsetGet($column[ 'field' ]);
498
+                    if ($post->offsetExists($column['field'])) {
499
+                        $data[$column['field']] = $post->offsetGet($column['field']);
500 500
                     }
501 501
                 }
502 502
             } else {
@@ -504,11 +504,11 @@  discard block
 block discarded – undo
504 504
             }
505 505
 
506 506
             if (count($data)) {
507
-                $data[ 'record_create_timestamp' ] = $data[ 'record_update_timestamp' ] = timestamp();
508
-                $data[ 'record_create_user' ] = $data[ 'record_update_user' ] = globals()->account->id;
507
+                $data['record_create_timestamp'] = $data['record_update_timestamp'] = timestamp();
508
+                $data['record_create_user'] = $data['record_update_user'] = globals()->account->id;
509 509
 
510 510
                 if ($this->model->insert($data)) {
511
-                    $data[ 'id' ] = $this->model->db->getLastInsertId();
511
+                    $data['id'] = $this->model->db->getLastInsertId();
512 512
                     $this->sendPayload([
513 513
                         'code' => 201,
514 514
                         'Successful insert request',
@@ -567,14 +567,14 @@  discard block
 block discarded – undo
567 567
 
568 568
             if (count($this->fillableColumnsWithRules)) {
569 569
                 foreach ($this->fillableColumnsWithRules as $column) {
570
-                    if ($post->offsetExists($column[ 'field' ])) {
571
-                        $data[ $column[ 'field' ] ] = $post->offsetGet($column[ 'field' ]);
570
+                    if ($post->offsetExists($column['field'])) {
571
+                        $data[$column['field']] = $post->offsetGet($column['field']);
572 572
                     }
573 573
                 }
574 574
             } elseif (count($this->fillableColumns)) {
575 575
                 foreach ($this->fillableColumns as $column) {
576
-                    if ($post->offsetExists($column[ 'field' ])) {
577
-                        $data[ $column[ 'field' ] ] = $post->offsetGet($column[ 'field' ]);
576
+                    if ($post->offsetExists($column['field'])) {
577
+                        $data[$column['field']] = $post->offsetGet($column['field']);
578 578
                     }
579 579
                 }
580 580
             } else {
@@ -582,8 +582,8 @@  discard block
 block discarded – undo
582 582
             }
583 583
 
584 584
             if (count($data)) {
585
-                $data[ 'record_update_timestamp' ] = timestamp();
586
-                $data[ 'record_update_user' ] = globals()->account->id;
585
+                $data['record_update_timestamp'] = timestamp();
586
+                $data['record_update_user'] = globals()->account->id;
587 587
 
588 588
 
589 589
                 if ($this->model->update($data, $conditions)) {
@@ -743,9 +743,9 @@  discard block
 block discarded – undo
743 743
             if (is_numeric(key($code))) {
744 744
                 $message = reset($code);
745 745
                 $code = key($code);
746
-            } elseif (isset($code[ 'code' ])) {
747
-                $code = $code[ 'code' ];
748
-                $message = $code[ 'message' ];
746
+            } elseif (isset($code['code'])) {
747
+                $code = $code['code'];
748
+                $message = $code['message'];
749 749
             }
750 750
         }
751 751
 
@@ -813,7 +813,7 @@  discard block
 block discarded – undo
813 813
                 $longPoolingCacheMetadata = $longPoolingCacheData->getMetadata();
814 814
 
815 815
                 // if no timestamp delivered via ajax or data.txt has been changed SINCE last ajax timestamp
816
-                if ($lastCallTimestamp == null || $longPoolingCacheMetadata[ 'ctime' ] > $lastCallTimestamp) {
816
+                if ($lastCallTimestamp == null || $longPoolingCacheMetadata['ctime'] > $lastCallTimestamp) {
817 817
                     output()->send([
818 818
                         'timestamp' => $longPoolingCacheMetadata,
819 819
                         'data'      => $data,
Please login to merge, or discard this patch.
src/Models/Sql/DataObjects/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      */
74 74
     public function offsetSet($offset, $row)
75 75
     {
76
-        if($model = models($this->model->getClass())) {
76
+        if ($model = models($this->model->getClass())) {
77 77
             $row = new Result\Row($row, $model);
78 78
         }
79 79
 
Please login to merge, or discard this patch.