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
Push — master ( a9bc98...b864c9 )
by butschster
10:50
created
src/Display/DisplayTable.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * @var array
33 33
      */
34
-    protected $parameters = [];
34
+    protected $parameters = [ ];
35 35
 
36 36
     /**
37 37
      * @var int|null
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         parent::initialize();
73 73
 
74 74
         if ($this->getModelConfiguration()->isRestorableModel()) {
75
-            $this->setApply(function ($q) {
75
+            $this->setApply(function($q) {
76 76
                 return $q->withTrashed();
77 77
             });
78 78
         }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function setParameter($key, $value)
134 134
     {
135
-        $this->parameters[$key] = $value;
135
+        $this->parameters[ $key ] = $value;
136 136
 
137 137
         return $this;
138 138
     }
@@ -178,19 +178,19 @@  discard block
 block discarded – undo
178 178
 
179 179
         $params = parent::toArray();
180 180
 
181
-        $params['creatable'] = $model->isCreatable();
182
-        $params['createUrl'] = $model->getCreateUrl($this->getParameters() + Request::all());
183
-        $params['collection'] = $this->getCollection();
181
+        $params[ 'creatable' ] = $model->isCreatable();
182
+        $params[ 'createUrl' ] = $model->getCreateUrl($this->getParameters() + Request::all());
183
+        $params[ 'collection' ] = $this->getCollection();
184 184
 
185
-        $params['extensions'] = $this->getExtensions()
186
-            ->filter(function (DisplayExtensionInterface $ext) {
185
+        $params[ 'extensions' ] = $this->getExtensions()
186
+            ->filter(function(DisplayExtensionInterface $ext) {
187 187
                 return $ext instanceof Renderable;
188 188
             })
189
-            ->sortBy(function (DisplayExtensionInterface $extension) {
189
+            ->sortBy(function(DisplayExtensionInterface $extension) {
190 190
                 return $extension->getOrder();
191 191
             });
192 192
 
193
-        $params['newEntryButtonText'] = $this->getNewEntryButtonText();
193
+        $params[ 'newEntryButtonText' ] = $this->getNewEntryButtonText();
194 194
 
195 195
         return $params;
196 196
     }
@@ -201,11 +201,11 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function getCollection()
203 203
     {
204
-        if (! $this->isInitialized()) {
204
+        if (!$this->isInitialized()) {
205 205
             throw new \Exception('Display is not initialized');
206 206
         }
207 207
 
208
-        if (! is_null($this->collection)) {
208
+        if (!is_null($this->collection)) {
209 209
             return $this->collection;
210 210
         }
211 211
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
         $this->applyOrders($query);
216 216
 
217 217
         return $this->collection = $this->usePagination()
218
-            ? $query->paginate($this->paginate, ['*'], $this->pageName)->appends(request()->except($this->pageName))
218
+            ? $query->paginate($this->paginate, [ '*' ], $this->pageName)->appends(request()->except($this->pageName))
219 219
             : $query->get();
220 220
     }
221 221
 
@@ -226,19 +226,19 @@  discard block
 block discarded – undo
226 226
      */
227 227
     protected function applyOrders(Builder $query)
228 228
     {
229
-        $orders = Request::input('order', []);
229
+        $orders = Request::input('order', [ ]);
230 230
 
231 231
         $columns = $this->getColumns()->all();
232 232
 
233
-        if (! is_int(key($orders))) {
234
-            $orders = [$orders];
233
+        if (!is_int(key($orders))) {
234
+            $orders = [ $orders ];
235 235
         }
236 236
 
237 237
         foreach ($orders as $order) {
238 238
             $columnIndex = array_get($order, 'column');
239 239
             $direction = array_get($order, 'dir', 'asc');
240 240
 
241
-            if (! $columnIndex && $columnIndex !== '0') {
241
+            if (!$columnIndex && $columnIndex !== '0') {
242 242
                 continue;
243 243
             }
244 244
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      */
256 256
     protected function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
257 257
     {
258
-        $this->extensions->each(function (DisplayExtensionInterface $extension) use ($query) {
258
+        $this->extensions->each(function(DisplayExtensionInterface $extension) use ($query) {
259 259
             $extension->modifyQuery($query);
260 260
         });
261 261
     }
Please login to merge, or discard this patch.
src/Navigation/Badge.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     {
12 12
         $value = $this->getValue();
13 13
 
14
-        if (! $this->hasClassProperty('label-', 'bg-')) {
14
+        if (!$this->hasClassProperty('label-', 'bg-')) {
15 15
             $this->setHtmlAttribute('class', 'label-primary');
16 16
         }
17 17
 
Please login to merge, or discard this patch.
src/Navigation/Page.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function getModelConfiguration()
33 33
     {
34
-        if (! $this->hasModel()) {
34
+        if (!$this->hasModel()) {
35 35
             return;
36 36
         }
37 37
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function hasModel()
45 45
     {
46
-        return ! is_null($this->model) and class_exists($this->model);
46
+        return !is_null($this->model) and class_exists($this->model);
47 47
     }
48 48
 
49 49
     /**
@@ -87,9 +87,9 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function getAccessLogic()
89 89
     {
90
-        if (! is_callable($this->accessLogic)) {
90
+        if (!is_callable($this->accessLogic)) {
91 91
             if ($this->hasModel()) {
92
-                return function () {
92
+                return function() {
93 93
                     return $this->getModelConfiguration()->isDisplayable();
94 94
                 };
95 95
             }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $data = $this->toArray();
109 109
 
110
-        if (! is_null($view)) {
110
+        if (!is_null($view)) {
111 111
             return view($view, $data)->render();
112 112
         }
113 113
 
Please login to merge, or discard this patch.
src/Widgets/Messages/MessageStack.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
         $type = strtolower(substr($name, 3));
32 32
 
33 33
         if (starts_with($name, 'add') && array_key_exists($type, $this->types)) {
34
-            if (isset($arguments[0])) {
35
-                return call_user_func("{$this->types[$type]}::addMessage", $arguments[0]);
34
+            if (isset($arguments[ 0 ])) {
35
+                return call_user_func("{$this->types[ $type ]}::addMessage", $arguments[ 0 ]);
36 36
             }
37 37
 
38 38
             throw new InvalidArgumentException("Method [{$name}] expected parameter");
Please login to merge, or discard this patch.
src/Widgets/WidgetsRegistry.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,22 +54,22 @@
 block discarded – undo
54 54
         }
55 55
 
56 56
         $groupedBlocks = $this->widgets
57
-            ->map(function ($class) {
57
+            ->map(function($class) {
58 58
                 return $this->makeWidget($class);
59 59
             })
60
-            ->filter(function (WidgetInterface $block) {
60
+            ->filter(function(WidgetInterface $block) {
61 61
                 return $block->active();
62 62
             })
63
-            ->groupBy(function (WidgetInterface $block) {
63
+            ->groupBy(function(WidgetInterface $block) {
64 64
                 return $block->template();
65 65
             });
66 66
 
67 67
         foreach ($groupedBlocks as $template => $widgets) {
68
-            $factory->composer($template, function (View $view) use ($widgets) {
68
+            $factory->composer($template, function(View $view) use ($widgets) {
69 69
                 $factory = $view->getFactory();
70 70
 
71 71
                 /** @var Collection|WidgetInterface[] $widgets */
72
-                $widgets = $widgets->sortBy(function (WidgetInterface $block) {
72
+                $widgets = $widgets->sortBy(function(WidgetInterface $block) {
73 73
                     return $block->position();
74 74
                 });
75 75
 
Please login to merge, or discard this patch.
src/Model/ModelConfiguration.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * @var array
71 71
      */
72
-    protected $redirect = ['edit' => 'edit', 'create' => 'edit'];
72
+    protected $redirect = [ 'edit' => 'edit', 'create' => 'edit' ];
73 73
 
74 74
     /**
75 75
      * @var Closure|null
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
      */
369 369
     public function isCreatable()
370 370
     {
371
-        if (! is_callable($this->getCreate())) {
371
+        if (!is_callable($this->getCreate())) {
372 372
             return false;
373 373
         }
374 374
 
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
      */
393 393
     public function isEditable(Model $model)
394 394
     {
395
-        if (! is_callable($this->getEdit())) {
395
+        if (!is_callable($this->getEdit())) {
396 396
             return false;
397 397
         }
398 398
 
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
      */
503 503
     public function fireDisplay()
504 504
     {
505
-        if (! is_callable($this->display)) {
505
+        if (!is_callable($this->display)) {
506 506
             return;
507 507
         }
508 508
 
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
      */
521 521
     public function fireCreate()
522 522
     {
523
-        if (! is_callable($this->create)) {
523
+        if (!is_callable($this->create)) {
524 524
             return;
525 525
         }
526 526
 
@@ -547,11 +547,11 @@  discard block
 block discarded – undo
547 547
      */
548 548
     public function fireEdit($id)
549 549
     {
550
-        if (! is_callable($this->edit)) {
550
+        if (!is_callable($this->edit)) {
551 551
             return;
552 552
         }
553 553
 
554
-        $form = app()->call($this->edit, ['id' => $id]);
554
+        $form = app()->call($this->edit, [ 'id' => $id ]);
555 555
         if ($form instanceof DisplayInterface) {
556 556
             $form->setModelClass($this->getClass());
557 557
         }
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
     public function fireDelete($id)
577 577
     {
578 578
         if (is_callable($this->getDelete())) {
579
-            return app()->call($this->getDelete(), [$id]);
579
+            return app()->call($this->getDelete(), [ $id ]);
580 580
         }
581 581
     }
582 582
 
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
     public function fireDestroy($id)
589 589
     {
590 590
         if (is_callable($this->getDestroy())) {
591
-            return app()->call($this->getDestroy(), [$id]);
591
+            return app()->call($this->getDestroy(), [ $id ]);
592 592
         }
593 593
     }
594 594
 
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
     public function fireRestore($id)
601 601
     {
602 602
         if (is_callable($this->getRestore())) {
603
-            return app()->call($this->getRestore(), [$id]);
603
+            return app()->call($this->getRestore(), [ $id ]);
604 604
         }
605 605
 
606 606
         return $this->getRestore();
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
         $repository = $this->getRepository();
745 745
         $item = $repository->find($id);
746 746
 
747
-        if (is_null($item) || ! $this->isEditable($item)) {
747
+        if (is_null($item) || !$this->isEditable($item)) {
748 748
             abort(404);
749 749
         }
750 750
 
Please login to merge, or discard this patch.
src/Model/SectionModelConfiguration.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     /**
13 13
      * @var array
14 14
      */
15
-    protected $redirect = ['edit' => 'edit', 'create' => 'edit'];
15
+    protected $redirect = [ 'edit' => 'edit', 'create' => 'edit' ];
16 16
 
17 17
     /**
18 18
      * @param string $redirect
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function fireDisplay()
56 56
     {
57
-        if (! method_exists($this, 'onDisplay')) {
57
+        if (!method_exists($this, 'onDisplay')) {
58 58
             return;
59 59
         }
60 60
 
61
-        $display = app()->call([$this, 'onDisplay']);
61
+        $display = app()->call([ $this, 'onDisplay' ]);
62 62
 
63 63
         if ($display instanceof DisplayInterface) {
64 64
             $display->setModelClass($this->getClass());
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function fireCreate()
75 75
     {
76
-        if (! method_exists($this, 'onCreate')) {
76
+        if (!method_exists($this, 'onCreate')) {
77 77
             return;
78 78
         }
79 79
 
80
-        $form = app()->call([$this, 'onCreate']);
80
+        $form = app()->call([ $this, 'onCreate' ]);
81 81
         if ($form instanceof DisplayInterface) {
82 82
             $form->setModelClass($this->getClass());
83 83
         }
@@ -100,11 +100,11 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function fireEdit($id)
102 102
     {
103
-        if (! method_exists($this, 'onEdit')) {
103
+        if (!method_exists($this, 'onEdit')) {
104 104
             return;
105 105
         }
106 106
 
107
-        $form = app()->call([$this, 'onEdit'], ['id' => $id]);
107
+        $form = app()->call([ $this, 'onEdit' ], [ 'id' => $id ]);
108 108
         if ($form instanceof DisplayInterface) {
109 109
             $form->setModelClass($this->getClass());
110 110
         }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     public function fireDelete($id)
130 130
     {
131 131
         if (method_exists($this, 'onDelete')) {
132
-            return app()->call([$this, 'onDelete'], ['id' => $id]);
132
+            return app()->call([ $this, 'onDelete' ], [ 'id' => $id ]);
133 133
         }
134 134
     }
135 135
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     public function fireDestroy($id)
142 142
     {
143 143
         if (method_exists($this, 'onDestroy')) {
144
-            return app()->call([$this, 'onDestroy'], ['id' => $id]);
144
+            return app()->call([ $this, 'onDestroy' ], [ 'id' => $id ]);
145 145
         }
146 146
     }
147 147
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     public function fireRestore($id)
154 154
     {
155 155
         if (method_exists($this, 'onRestore')) {
156
-            return app()->call([$this, 'onRestore'], ['id' => $id]);
156
+            return app()->call([ $this, 'onRestore' ], [ 'id' => $id ]);
157 157
         }
158 158
     }
159 159
 }
Please login to merge, or discard this patch.
src/Console/Installation/Command.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,16 +28,16 @@
 block discarded – undo
28 28
      */
29 29
     public function fire(Filesystem $files)
30 30
     {
31
-        if (! defined('SLEEPINGOWL_STUB_PATH')) {
31
+        if (!defined('SLEEPINGOWL_STUB_PATH')) {
32 32
             define('SLEEPINGOWL_STUB_PATH', __DIR__.'/stubs');
33 33
         }
34 34
 
35
-        if (! $this->confirmToProceed('SleepingOwl Admin')) {
35
+        if (!$this->confirmToProceed('SleepingOwl Admin')) {
36 36
             return;
37 37
         }
38 38
 
39
-        $this->call('vendor:publish', ['--tag' => 'config']);
40
-        $this->config = new Repository($this->laravel['config']->get('sleeping_owl'));
39
+        $this->call('vendor:publish', [ '--tag' => 'config' ]);
40
+        $this->config = new Repository($this->laravel[ 'config' ]->get('sleeping_owl'));
41 41
 
42 42
         $this->files = $files;
43 43
 
Please login to merge, or discard this patch.
src/Console/Installation/PublishAssets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
      */
17 17
     public function install()
18 18
     {
19
-        $this->command->call('vendor:publish', ['--tag' => 'assets', '--force']);
19
+        $this->command->call('vendor:publish', [ '--tag' => 'assets', '--force' ]);
20 20
     }
21 21
 }
Please login to merge, or discard this patch.