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
Branch development (184ec4)
by butschster
06:08
created
src/Display/Column/Control.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -64,20 +64,20 @@  discard block
 block discarded – undo
64 64
     {
65 65
         parent::initialize();
66 66
 
67
-        $this->buttons->put('edit', $button = new ControlLink(function (Model $model) {
67
+        $this->buttons->put('edit', $button = new ControlLink(function(Model $model) {
68 68
             return $this->getModelConfiguration()->getEditUrl($model->getKey());
69 69
         }, trans('sleeping_owl::lang.table.edit'), 100));
70 70
         $button->hideText();
71
-        $button->setCondition(function () {
71
+        $button->setCondition(function() {
72 72
             return $this->isEditable();
73 73
         });
74 74
         $button->setIcon('fa fa-pencil');
75 75
         $button->setHtmlAttribute('class', 'btn-primary');
76 76
 
77
-        $this->buttons->put('delete', $button = new ControlButton(function (Model $model) {
77
+        $this->buttons->put('delete', $button = new ControlButton(function(Model $model) {
78 78
             return $this->getModelConfiguration()->getDeleteUrl($model->getKey());
79 79
         }, trans('sleeping_owl::lang.table.delete'), 200));
80
-        $button->setCondition(function () {
80
+        $button->setCondition(function() {
81 81
             return $this->isDeletable();
82 82
         });
83 83
 
@@ -86,10 +86,10 @@  discard block
 block discarded – undo
86 86
         $button->setIcon('fa fa-trash');
87 87
         $button->setHtmlAttribute('class', 'btn-danger btn-delete');
88 88
 
89
-        $this->buttons->put('destroy', $button = new ControlButton(function (Model $model) {
89
+        $this->buttons->put('destroy', $button = new ControlButton(function(Model $model) {
90 90
             return $this->getModelConfiguration()->getDestroyUrl($model->getKey());
91 91
         }, trans('sleeping_owl::lang.table.destroy'), 300));
92
-        $button->setCondition(function () {
92
+        $button->setCondition(function() {
93 93
             return $this->isDestroyable();
94 94
         });
95 95
 
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
         $button->setIcon('fa fa-trash');
99 99
         $button->setHtmlAttribute('class', 'btn-danger btn-destroy');
100 100
 
101
-        $this->buttons->put('restore', $button = new ControlButton(function (Model $model) {
101
+        $this->buttons->put('restore', $button = new ControlButton(function(Model $model) {
102 102
             return $this->getModelConfiguration()->getRestoreUrl($model->getKey());
103 103
         }, trans('sleeping_owl::lang.table.restore'), 400));
104
-        $button->setCondition(function () {
104
+        $button->setCondition(function() {
105 105
             return $this->isRestorable();
106 106
         });
107 107
         $button->hideText();
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         return
190 190
             $this->editable
191 191
             &&
192
-            ! $this->isTrashed()
192
+            !$this->isTrashed()
193 193
             &&
194 194
             $this->getModelConfiguration()->isEditable(
195 195
                 $this->getModel()
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         return
207 207
             $this->deletable
208 208
             &&
209
-            ! $this->isTrashed()
209
+            !$this->isTrashed()
210 210
             &&
211 211
             $this->getModelConfiguration()->isDeletable(
212 212
                 $this->getModel()
@@ -266,13 +266,13 @@  discard block
 block discarded – undo
266 266
     {
267 267
         return parent::toArray() + [
268 268
             'buttons' => $this->buttons
269
-                ->each(function (ControlButtonInterface $button) {
269
+                ->each(function(ControlButtonInterface $button) {
270 270
                     $button->setModel($this->getModel());
271 271
                 })
272
-                ->filter(function (ControlButtonInterface $button) {
272
+                ->filter(function(ControlButtonInterface $button) {
273 273
                     return $button->isActive();
274 274
                 })
275
-                ->sortBy(function (ControlButtonInterface $button) {
275
+                ->sortBy(function(ControlButtonInterface $button) {
276 276
                     return $button->getPosition();
277 277
                 }),
278 278
         ];
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
     }
123 123
 
124 124
     /**
125
-     * @param ControlButtonInterface $button
125
+     * @param ControlButtonInterface $buttons
126 126
      *
127 127
      * @return $this
128 128
      */
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/Console/Commands/InstallCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
31 31
             Installation\CreateSectionServiceProvider::class,
32 32
             Installation\CreatePublicDirectory::class,
33 33
         ])
34
-            ->map(function ($installer) {
34
+            ->map(function($installer) {
35 35
                 return new $installer($this, $this->config);
36 36
             })
37
-            ->filter(function ($installer) {
38
-                return $this->option('force') ? true : ! $installer->installed();
39
-            })->each(function ($installer) {
37
+            ->filter(function($installer) {
38
+                return $this->option('force') ? true : !$installer->installed();
39
+            })->each(function($installer) {
40 40
                 $installer->install();
41 41
                 $installer->showInfo();
42 42
             });
Please login to merge, or discard this patch.
resources/views/default/display/extensions/columns.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
             @foreach ($columns as $column)
23 23
                 <?php
24 24
                 $column->setModel($model);
25
-                if($column instanceof \SleepingOwl\Admin\Display\Column\Control) {
25
+                if ($column instanceof \SleepingOwl\Admin\Display\Column\Control) {
26 26
                     $column->initialize();
27 27
                 }
28 28
                 ?>
Please login to merge, or discard this patch.
src/Display/DisplayTabbed.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     }
66 66
 
67 67
     /**
68
-     * @return TabInterface[]|DisplayTabsCollection
68
+     * @return \SleepingOwl\Admin\Form\FormElementsCollection
69 69
      */
70 70
     public function getTabs()
71 71
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $this->initializeElements();
44 44
 
45
-        $activeTabs = $this->getTabs()->filter(function (TabInterface $tab) {
45
+        $activeTabs = $this->getTabs()->filter(function(TabInterface $tab) {
46 46
             return $tab->isActive();
47 47
         })->count();
48 48
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function setModelClass($class)
72 72
     {
73
-        $this->getTabs()->each(function (TabInterface $tab) use ($class) {
73
+        $this->getTabs()->each(function(TabInterface $tab) use ($class) {
74 74
             if ($tab instanceof DisplayInterface) {
75 75
                 $tab->setModelClass($class);
76 76
             }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function setAction($action)
156 156
     {
157
-        $this->getTabs()->each(function (TabInterface $tab) use ($action) {
157
+        $this->getTabs()->each(function(TabInterface $tab) use ($action) {
158 158
             if ($tab instanceof FormInterface) {
159 159
                 $tab->setAction($action);
160 160
             }
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function setId($id)
172 172
     {
173
-        $this->getTabs()->each(function (TabInterface $tab) use ($id) {
173
+        $this->getTabs()->each(function(TabInterface $tab) use ($id) {
174 174
             if ($tab instanceof FormInterface) {
175 175
                 $tab->setId($id);
176 176
             }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      */
188 188
     public function validateForm(\Illuminate\Http\Request $request, ModelConfigurationInterface $model = null)
189 189
     {
190
-        $this->getTabs()->each(function ($tab) use ($request, $model) {
190
+        $this->getTabs()->each(function($tab) use ($request, $model) {
191 191
             if ($tab instanceof FormInterface) {
192 192
                 $tab->validateForm($request, $model);
193 193
             }
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function saveForm(\Illuminate\Http\Request $request, ModelConfigurationInterface $model = null)
204 204
     {
205
-        $this->getTabs()->each(function (TabInterface $tab) use ($request, $model) {
205
+        $this->getTabs()->each(function(TabInterface $tab) use ($request, $model) {
206 206
             if ($tab instanceof FormInterface) {
207 207
                 $tab->saveForm($request, $model);
208 208
             }
Please login to merge, or discard this patch.
src/Form/FormElementsCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function onlyActive()
14 14
     {
15
-        return $this->filter(function ($element) {
15
+        return $this->filter(function($element) {
16 16
             if ($element instanceof FormElementInterface) {
17
-                return ! $element->isReadonly();
17
+                return !$element->isReadonly();
18 18
             }
19 19
 
20 20
             return true;
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function onlyVisible()
28 28
     {
29
-        return $this->filter(function ($element) {
29
+        return $this->filter(function($element) {
30 30
             if ($element instanceof FormElementInterface) {
31 31
                 return $element->isVisible();
32 32
             }
Please login to merge, or discard this patch.
src/Display/DisplayTabsCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function onlyActive()
15 15
     {
16
-        return $this->filter(function (TabInterface $tab) {
16
+        return $this->filter(function(TabInterface $tab) {
17 17
             $element = $tab->getContent();
18 18
 
19 19
             if ($element instanceof FormElementInterface) {
20
-                return ! $element->isReadonly();
20
+                return !$element->isReadonly();
21 21
             }
22 22
 
23 23
             return true;
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function onlyVisible()
31 31
     {
32
-        return $this->filter(function (TabInterface $tab) {
32
+        return $this->filter(function(TabInterface $tab) {
33 33
             return $tab->isVisible();
34 34
         });
35 35
     }
Please login to merge, or discard this patch.
resources/assets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('resources_url')) {
3
+if (!function_exists('resources_url')) {
4 4
     function resources_url($path)
5 5
     {
6 6
         return '/packages/sleepingowl/default/'.$path;
Please login to merge, or discard this patch.
src/AliasBinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      */
92 92
     public function __call($name, $arguments)
93 93
     {
94
-        if (! $this->hasAlias($name)) {
94
+        if (!$this->hasAlias($name)) {
95 95
             throw new BadMethodCallException($name);
96 96
         }
97 97
 
Please login to merge, or discard this patch.