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 ( f91a4c...f91a4c )
by Dave
39:26 queued 34:22
created
src/Http/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 use Illuminate\Routing\Router;
4 4
 
5
-$router->group(['as' => 'admin.', 'namespace' => 'SleepingOwl\Admin\Http\Controllers'], function (Router $router) {
6
-    if (! $router->has('admin.dashboard')) {
5
+$router->group(['as' => 'admin.', 'namespace' => 'SleepingOwl\Admin\Http\Controllers'], function(Router $router) {
6
+    if (!$router->has('admin.dashboard')) {
7 7
         $router->get('', ['as' => 'dashboard', 'uses' => 'AdminController@getDashboard']);
8 8
     }
9 9
 
Please login to merge, or discard this patch.
src/Http/Controllers/DisplayController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
         $display = $model->fireDisplay();
87 87
 
88 88
         if ($display instanceof DisplayTabbed) {
89
-            $display->getTabs()->each(function (DisplayTab $tab) use ($request) {
89
+            $display->getTabs()->each(function(DisplayTab $tab) use ($request) {
90 90
                 $content = $tab->getContent();
91 91
                 if ($content instanceof DisplayTree) {
92 92
                     $content->getRepository()->reorder(
Please login to merge, or discard this patch.
src/Form/Buttons/Delete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             return false;
41 41
         }
42 42
 
43
-        $this->show = ! $this->isTrashed() && $this->getModelConfiguration()->isDeletable($this->getModel());
43
+        $this->show = !$this->isTrashed() && $this->getModelConfiguration()->isDeletable($this->getModel());
44 44
 
45 45
         return parent::canShow();
46 46
     }
Please login to merge, or discard this patch.
src/Form/Buttons/Restore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function canShow()
38 38
     {
39
-        if (is_null($this->getModel()->getKey()) || ! $this->show) {
39
+        if (is_null($this->getModel()->getKey()) || !$this->show) {
40 40
             return false;
41 41
         }
42 42
 
Please login to merge, or discard this patch.
src/Form/Element/Wysiwyg.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $config = $editor->getConfig();
63 63
         $config->set($this->parameters);
64 64
 
65
-        if (! $this->hasHtmlAttribute('id')) {
65
+        if (!$this->hasHtmlAttribute('id')) {
66 66
             $this->setHtmlAttribute('id', $this->getName());
67 67
         }
68 68
 
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
 
71 71
         $params = collect($this->parameters);
72 72
 
73
-        if (! $params->has('uploadUrl')) {
73
+        if (!$params->has('uploadUrl')) {
74 74
             $this->parameters['uploadUrl'] = route('admin.ckeditor.upload');
75 75
         }
76 76
 
77
-        if (! $params->has('filebrowserUploadUrl')) {
77
+        if (!$params->has('filebrowserUploadUrl')) {
78 78
             $this->parameters['filebrowserUploadUrl'] = route('admin.ckeditor.upload');
79 79
         }
80 80
     }
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function setModelAttribute($value)
181 181
     {
182
-        if (! empty($this->filteredFieldKey)) {
182
+        if (!empty($this->filteredFieldKey)) {
183 183
             parent::setModelAttribute($value);
184 184
 
185 185
             $this->setModelAttributeKey($this->filteredFieldKey);
Please login to merge, or discard this patch.
src/Form/Element/DateTime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     public function getValueFromModel()
80 80
     {
81 81
         $value = parent::getValueFromModel();
82
-        if (! empty($value)) {
82
+        if (!empty($value)) {
83 83
             return $this->parseValue($value);
84 84
         }
85 85
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function setModelAttribute($value)
113 113
     {
114
-        $value = ! empty($value)
114
+        $value = !empty($value)
115 115
             ? Carbon::createFromFormat($this->getPickerFormat(), $value, $this->getTimezone())
116 116
                     ->timezone(config('app.timezone'))->format($this->getFormat())
117 117
             : null;
Please login to merge, or discard this patch.
src/Form/Element/SelectAjax.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         parent::__construct($path, $label);
25 25
 
26
-        $this->setLoadOptionsQueryPreparer(function ($item, Builder $query) {
26
+        $this->setLoadOptionsQueryPreparer(function($item, Builder $query) {
27 27
             $repository = app(RepositoryInterface::class);
28 28
             $repository->setModel($this->getModelForOptions());
29 29
             $key = $repository->getModel()->getKeyName();
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $routeName = 'admin.form.element.'.static::$route;
41 41
 
42
-        if (! $router->has($routeName)) {
42
+        if (!$router->has($routeName)) {
43 43
             $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', [
44 44
                 'as'   => $routeName,
45 45
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\FormElementController@selectSearch',
Please login to merge, or discard this patch.
src/Form/Element/MultiSelect.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         array $values
196 196
     ) {
197 197
         foreach ($values as $i => $value) {
198
-            if (! array_key_exists($value, $this->getOptions()) && $this->isTaggable()) {
198
+            if (!array_key_exists($value, $this->getOptions()) && $this->isTaggable()) {
199 199
                 $model = clone $this->getModelForOptions();
200 200
                 $model->{$this->getDisplay()} = $value;
201 201
                 $model->save();
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         $items = $relation->get();
226 226
 
227 227
         foreach ($items as $item) {
228
-            if (! in_array($item->getKey(), $values)) {
228
+            if (!in_array($item->getKey(), $values)) {
229 229
                 if ($this->isDeleteRelatedItem()) {
230 230
                     $item->delete();
231 231
                 } else {
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
             $item = $model->find($value);
251 251
 
252 252
             if (is_null($item)) {
253
-                if (! $this->isTaggable()) {
253
+                if (!$this->isTaggable()) {
254 254
                     continue;
255 255
                 }
256 256
 
Please login to merge, or discard this patch.
src/Form/Element/MultiSelectAjax.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     {
35 35
         parent::__construct($path, $label);
36 36
 
37
-        $this->setLoadOptionsQueryPreparer(function ($item, Builder $query) {
37
+        $this->setLoadOptionsQueryPreparer(function($item, Builder $query) {
38 38
             $repository = app(RepositoryInterface::class);
39 39
             $repository->setModel($this->getModelForOptions());
40 40
             $key = $repository->getModel()->getKeyName();
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $routeName = 'admin.form.element.'.static::$route;
109 109
 
110
-        if (! $router->has($routeName)) {
110
+        if (!$router->has($routeName)) {
111 111
             $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', [
112 112
                 'as'   => $routeName,
113 113
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\FormElementController@multiselectSearch',
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $options = $repository->getQuery();
176 176
         $relation = $this->getModelAttributeKey();
177 177
 
178
-        if ($this->isEmptyRelation() && ! is_null($foreignKey = $this->getForeignKey())) {
178
+        if ($this->isEmptyRelation() && !is_null($foreignKey = $this->getForeignKey())) {
179 179
             $model = $this->getModel();
180 180
 
181 181
             if ($model->{$relation}() instanceof HasOneOrMany) {
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
         }
191 191
 
192 192
         // call the pre load options query preparer if has be set
193
-        if (! is_null($preparer = $this->getLoadOptionsQueryPreparer())) {
193
+        if (!is_null($preparer = $this->getLoadOptionsQueryPreparer())) {
194 194
             $options = $preparer($this, $options);
195 195
         }
196 196
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 
209 209
             // iterate for all options and redefine it as
210 210
             // list of KEY and TEXT pair
211
-            $options = array_map(function ($opt) use ($key, $makeDisplay) {
211
+            $options = array_map(function($opt) use ($key, $makeDisplay) {
212 212
                 // get the KEY and make the display text
213 213
                 return [data_get($opt, $key), $makeDisplay($opt)];
214 214
             }, $options);
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     {
236 236
         $attribute = $this->getModelAttributeKey();
237 237
 
238
-        if (! method_exists($this->getModel(), $attribute)) {
238
+        if (!method_exists($this->getModel(), $attribute)) {
239 239
             return;
240 240
         }
241 241
 
Please login to merge, or discard this patch.