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.
Completed
Branch development (b5d095)
by butschster
13:32
created
src/Display/Extension/Filters.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function set($filters)
42 42
     {
43
-        if (! is_array($filters)) {
43
+        if (!is_array($filters)) {
44 44
             $filters = func_get_args();
45 45
         }
46 46
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function getActive()
80 80
     {
81
-        return $this->filters->filter(function (FilterInterface $filter) {
81
+        return $this->filters->filter(function(FilterInterface $filter) {
82 82
             return $filter->isActive();
83 83
         });
84 84
     }
@@ -100,10 +100,10 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function getTitle()
102 102
     {
103
-        $titles = [$this->title];
103
+        $titles = [ $this->title ];
104 104
 
105
-        $this->getActive()->each(function (FilterInterface $filter) use (&$titles) {
106
-            $titles[] = $filter->getTitle();
105
+        $this->getActive()->each(function(FilterInterface $filter) use (&$titles) {
106
+            $titles[ ] = $filter->getTitle();
107 107
         });
108 108
 
109 109
         return implode(' | ', array_filter($titles));
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
129 129
     {
130
-        $this->getActive()->each(function (FilterInterface $filter) use ($query) {
130
+        $this->getActive()->each(function(FilterInterface $filter) use ($query) {
131 131
             $filter->apply($query);
132 132
         });
133 133
     }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function initialize()
139 139
     {
140
-        $this->filters->each(function (FilterInterface $filter) {
140
+        $this->filters->each(function(FilterInterface $filter) {
141 141
             $filter->initialize();
142 142
         });
143 143
     }
Please login to merge, or discard this patch.
src/Display/Extension/Actions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function set($actions)
51 51
     {
52
-        if (! is_array($actions)) {
52
+        if (!is_array($actions)) {
53 53
             $actions = func_get_args();
54 54
         }
55 55
 
@@ -145,13 +145,13 @@  discard block
 block discarded – undo
145 145
             return;
146 146
         }
147 147
 
148
-        $this->all()->each(function (ActionInterface $action) {
148
+        $this->all()->each(function(ActionInterface $action) {
149 149
             $action->initialize();
150 150
         });
151 151
 
152 152
         $this->setHtmlAttribute('data-type', 'display-actions');
153 153
 
154
-        if (! $this->hasHtmlAttribute('class')) {
154
+        if (!$this->hasHtmlAttribute('class')) {
155 155
             $this->setHtmlAttribute('class', 'panel-footer');
156 156
         }
157 157
     }
Please login to merge, or discard this patch.
src/Display/Extension/ColumnFilters.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      * @var ColumnFilterInterface[]
17 17
      */
18
-    protected $columnFilters = [];
18
+    protected $columnFilters = [ ];
19 19
 
20 20
     /**
21 21
      * @var string|\Illuminate\View\View
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function set($columnFilters)
36 36
     {
37
-        if (! is_array($columnFilters)) {
37
+        if (!is_array($columnFilters)) {
38 38
             $columnFilters = func_get_args();
39 39
         }
40 40
 
41
-        $this->columnFilters = [];
41
+        $this->columnFilters = [ ];
42 42
 
43 43
         foreach ($columnFilters as $filter) {
44 44
             $this->push($filter);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function push(ColumnFilterInterface $filter = null)
64 64
     {
65
-        $this->columnFilters[] = $filter;
65
+        $this->columnFilters[ ] = $filter;
66 66
 
67 67
         return $this;
68 68
     }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             }
156 156
         }
157 157
 
158
-        if (! $this->hasHtmlAttribute('class')) {
158
+        if (!$this->hasHtmlAttribute('class')) {
159 159
             $this->setHtmlAttribute('class', 'panel-footer');
160 160
         }
161 161
     }
Please login to merge, or discard this patch.
src/Display/Extension/Tree.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
 
153 153
     public function initialize()
154 154
     {
155
-        $this->allWithControl()->each(function (ColumnInterface $column) {
155
+        $this->allWithControl()->each(function(ColumnInterface $column) {
156 156
             $column->initialize();
157 157
         });
158 158
 
Please login to merge, or discard this patch.
src/Display/Extension/Apply.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * @var Closure[]
11 11
      */
12
-    protected $applies = [];
12
+    protected $applies = [ ];
13 13
 
14 14
     /**
15 15
      * @return Closure[]
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function set($applies)
28 28
     {
29
-        if (! is_array($applies)) {
29
+        if (!is_array($applies)) {
30 30
             $applies = func_get_args();
31 31
         }
32 32
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function push(Closure $apply)
46 46
     {
47
-        $this->applies[] = $apply;
47
+        $this->applies[ ] = $apply;
48 48
 
49 49
         return $this;
50 50
     }
Please login to merge, or discard this patch.
src/Model/SectionModelConfiguration.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function fireDisplay()
33 33
     {
34
-        if (! method_exists($this, 'onDisplay')) {
34
+        if (!method_exists($this, 'onDisplay')) {
35 35
             return;
36 36
         }
37 37
 
38
-        $display = app()->call([$this, 'onDisplay']);
38
+        $display = app()->call([ $this, 'onDisplay' ]);
39 39
 
40 40
         if ($display instanceof DisplayInterface) {
41 41
             $display->setModelClass($this->getClass());
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function fireCreate()
52 52
     {
53
-        if (! method_exists($this, 'onCreate')) {
53
+        if (!method_exists($this, 'onCreate')) {
54 54
             return;
55 55
         }
56 56
 
57
-        $create = app()->call([$this, 'onCreate']);
57
+        $create = app()->call([ $this, 'onCreate' ]);
58 58
         if ($create instanceof DisplayInterface) {
59 59
             $create->setModelClass($this->getClass());
60 60
             $create->initialize();
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function fireEdit($id)
76 76
     {
77
-        if (! method_exists($this, 'onEdit')) {
77
+        if (!method_exists($this, 'onEdit')) {
78 78
             return;
79 79
         }
80 80
 
81
-        $edit = app()->call([$this, 'onEdit'], ['id' => $id]);
81
+        $edit = app()->call([ $this, 'onEdit' ], [ 'id' => $id ]);
82 82
         if ($edit instanceof DisplayInterface) {
83 83
             $edit->setModelClass($this->getClass());
84 84
             $edit->initialize();
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     public function fireDelete($id)
113 113
     {
114 114
         if (method_exists($this, 'onDelete')) {
115
-            return app()->call([$this, 'onDelete'], ['id' => $id]);
115
+            return app()->call([ $this, 'onDelete' ], [ 'id' => $id ]);
116 116
         }
117 117
     }
118 118
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     public function fireDestroy($id)
125 125
     {
126 126
         if (method_exists($this, 'onDestroy')) {
127
-            return app()->call([$this, 'onDestroy'], ['id' => $id]);
127
+            return app()->call([ $this, 'onDestroy' ], [ 'id' => $id ]);
128 128
         }
129 129
     }
130 130
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     public function fireRestore($id)
137 137
     {
138 138
         if (method_exists($this, 'onRestore')) {
139
-            return app()->call([$this, 'onRestore'], ['id' => $id]);
139
+            return app()->call([ $this, 'onRestore' ], [ 'id' => $id ]);
140 140
         }
141 141
     }
142 142
 }
Please login to merge, or discard this patch.
src/Model/ModelConfiguration.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      */
333 333
     public function isCreatable()
334 334
     {
335
-        if (! is_callable($this->getCreate())) {
335
+        if (!is_callable($this->getCreate())) {
336 336
             return false;
337 337
         }
338 338
 
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
      */
357 357
     public function isEditable(Model $model)
358 358
     {
359
-        if (! is_callable($this->getEdit())) {
359
+        if (!is_callable($this->getEdit())) {
360 360
             return false;
361 361
         }
362 362
 
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
      */
467 467
     public function fireDisplay()
468 468
     {
469
-        if (! is_callable($this->display)) {
469
+        if (!is_callable($this->display)) {
470 470
             return;
471 471
         }
472 472
 
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
      */
485 485
     public function fireCreate()
486 486
     {
487
-        if (! is_callable($this->create)) {
487
+        if (!is_callable($this->create)) {
488 488
             return;
489 489
         }
490 490
 
@@ -507,11 +507,11 @@  discard block
 block discarded – undo
507 507
      */
508 508
     public function fireEdit($id)
509 509
     {
510
-        if (! is_callable($this->edit)) {
510
+        if (!is_callable($this->edit)) {
511 511
             return;
512 512
         }
513 513
 
514
-        $edit = app()->call($this->edit, ['id' => $id]);
514
+        $edit = app()->call($this->edit, [ 'id' => $id ]);
515 515
         if ($edit instanceof DisplayInterface) {
516 516
             $edit->setModelClass($this->getClass());
517 517
             $edit->initialize();
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
     public function fireDelete($id)
546 546
     {
547 547
         if (is_callable($this->getDelete())) {
548
-            return app()->call($this->getDelete(), [$id]);
548
+            return app()->call($this->getDelete(), [ $id ]);
549 549
         }
550 550
     }
551 551
 
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
     public function fireDestroy($id)
558 558
     {
559 559
         if (is_callable($this->getDestroy())) {
560
-            return app()->call($this->getDestroy(), [$id]);
560
+            return app()->call($this->getDestroy(), [ $id ]);
561 561
         }
562 562
     }
563 563
 
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
     public function fireRestore($id)
570 570
     {
571 571
         if (is_callable($this->getRestore())) {
572
-            return app()->call($this->getRestore(), [$id]);
572
+            return app()->call($this->getRestore(), [ $id ]);
573 573
         }
574 574
 
575 575
         return $this->getRestore();
Please login to merge, or discard this patch.
src/Model/ModelConfigurationManager.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
         $this->class = $class;
104 104
         $this->model = app($class);
105 105
 
106
-        $this->repository = app(RepositoryInterface::class, [$class]);
106
+        $this->repository = app(RepositoryInterface::class, [ $class ]);
107 107
 
108
-        if (! $this->alias) {
108
+        if (!$this->alias) {
109 109
             $this->setDefaultAlias();
110 110
         }
111 111
     }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     public function getCreateTitle()
182 182
     {
183
-        return trans('sleeping_owl::lang.model.create', ['title' => $this->getTitle()]);
183
+        return trans('sleeping_owl::lang.model.create', [ 'title' => $this->getTitle() ]);
184 184
     }
185 185
 
186 186
     /**
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public function getEditTitle()
190 190
     {
191
-        return trans('sleeping_owl::lang.model.edit', ['title' => $this->getTitle()]);
191
+        return trans('sleeping_owl::lang.model.edit', [ 'title' => $this->getTitle() ]);
192 192
     }
193 193
 
194 194
     /**
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      */
264 264
     public function can($action, Model $model)
265 265
     {
266
-        if (! $this->checkAccess) {
266
+        if (!$this->checkAccess) {
267 267
             return true;
268 268
         }
269 269
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      */
284 284
     public function hasCustomControllerClass()
285 285
     {
286
-        return ! is_null($controller = $this->getControllerClass()) and class_exists($controller);
286
+        return !is_null($controller = $this->getControllerClass()) and class_exists($controller);
287 287
     }
288 288
 
289 289
     /**
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      *
292 292
      * @return string
293 293
      */
294
-    public function getDisplayUrl(array $parameters = [])
294
+    public function getDisplayUrl(array $parameters = [ ])
295 295
     {
296 296
         array_unshift($parameters, $this->getAlias());
297 297
 
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      *
304 304
      * @return string
305 305
      */
306
-    public function getCreateUrl(array $parameters = [])
306
+    public function getCreateUrl(array $parameters = [ ])
307 307
     {
308 308
         array_unshift($parameters, $this->getAlias());
309 309
 
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
      */
326 326
     public function getEditUrl($id)
327 327
     {
328
-        return route('admin.model.edit', [$this->getAlias(), $id]);
328
+        return route('admin.model.edit', [ $this->getAlias(), $id ]);
329 329
     }
330 330
 
331 331
     /**
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
      */
336 336
     public function getUpdateUrl($id)
337 337
     {
338
-        return route('admin.model.update', [$this->getAlias(), $id]);
338
+        return route('admin.model.update', [ $this->getAlias(), $id ]);
339 339
     }
340 340
 
341 341
     /**
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
      */
346 346
     public function getDeleteUrl($id)
347 347
     {
348
-        return route('admin.model.delete', [$this->getAlias(), $id]);
348
+        return route('admin.model.delete', [ $this->getAlias(), $id ]);
349 349
     }
350 350
 
351 351
     /**
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
      */
356 356
     public function getDestroyUrl($id)
357 357
     {
358
-        return route('admin.model.destroy', [$this->getAlias(), $id]);
358
+        return route('admin.model.destroy', [ $this->getAlias(), $id ]);
359 359
     }
360 360
 
361 361
     /**
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
      */
366 366
     public function getRestoreUrl($id)
367 367
     {
368
-        return route('admin.model.restore', [$this->getAlias(), $id]);
368
+        return route('admin.model.restore', [ $this->getAlias(), $id ]);
369 369
     }
370 370
 
371 371
     /**
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
         $page->setPriority($priority);
421 421
 
422 422
         if ($badge) {
423
-            if (! ($badge instanceof BadgeInterface)) {
423
+            if (!($badge instanceof BadgeInterface)) {
424 424
                 $badge = new Badge($badge);
425 425
             }
426 426
 
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
      */
444 444
     public function fireEvent($event, $halt = true, Model $model = null)
445 445
     {
446
-        if (! isset(self::$dispatcher)) {
446
+        if (!isset(self::$dispatcher)) {
447 447
             return true;
448 448
         }
449 449
 
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
 
459 459
         $method = $halt ? 'until' : 'fire';
460 460
 
461
-        return self::$dispatcher->$method($event, [$this, $model]);
461
+        return self::$dispatcher->$method($event, [ $this, $model ]);
462 462
     }
463 463
 
464 464
     /**
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
         ])) {
478 478
             array_unshift($arguments, $method);
479 479
 
480
-            return call_user_func_array([$this, 'registerEvent'], $arguments);
480
+            return call_user_func_array([ $this, 'registerEvent' ], $arguments);
481 481
         }
482 482
 
483 483
         throw new BadMethodCallException($method);
Please login to merge, or discard this patch.
src/Traits/Assets.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      *
20 20
      * @return $this
21 21
      */
22
-    public function addScript($handle, $script, array $dependency = [])
22
+    public function addScript($handle, $script, array $dependency = [ ])
23 23
     {
24 24
         if (is_null($handle)) {
25 25
             $handle = $script;
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @return $this
39 39
      */
40
-    public function addStyle($handle, $style, array $attributes = [])
40
+    public function addStyle($handle, $style, array $attributes = [ ])
41 41
     {
42 42
         if (is_null($handle)) {
43 43
             $handle = $style;
Please login to merge, or discard this patch.