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 (1144d9)
by butschster
09:48
created
src/Display/Filter/FilterField.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
             $relationName = implode('.', $parts);
39 39
         }
40 40
 
41
-        if (! is_null($relationName)) {
42
-            $query->whereHas($relationName, function ($q) use ($name, $value) {
41
+        if (!is_null($relationName)) {
42
+            $query->whereHas($relationName, function($q) use ($name, $value) {
43 43
                 $this->buildQuery($q, $name, $value);
44 44
             });
45 45
         } else {
Please login to merge, or discard this patch.
src/Display/Filter/FilterCustom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function __construct(Closure $callback = null)
26 26
     {
27
-        if (! is_null($callback)) {
27
+        if (!is_null($callback)) {
28 28
             $this->setCallback($callback);
29 29
         }
30 30
 
Please login to merge, or discard this patch.
src/Form/FormButtons.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -313,11 +313,11 @@  discard block
 block discarded – undo
313 313
      */
314 314
     public function isShowDeleteButton()
315 315
     {
316
-        if (is_null($this->getModel()->getKey()) || ! $this->showDeleteButton) {
316
+        if (is_null($this->getModel()->getKey()) || !$this->showDeleteButton) {
317 317
             return false;
318 318
         }
319 319
 
320
-        $this->showDeleteButton = ! $this->isTrashed() && $this->getModelConfiguration()->isDeletable($this->getModel());
320
+        $this->showDeleteButton = !$this->isTrashed() && $this->getModelConfiguration()->isDeletable($this->getModel());
321 321
 
322 322
         return $this->showDeleteButton;
323 323
     }
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      */
338 338
     public function isShowDestroyButton()
339 339
     {
340
-        if (is_null($this->getModel()->getKey()) || ! $this->showDestroyButton) {
340
+        if (is_null($this->getModel()->getKey()) || !$this->showDestroyButton) {
341 341
             return false;
342 342
         }
343 343
 
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
      */
363 363
     public function isShowRestoreButton()
364 364
     {
365
-        if (is_null($this->getModel()->getKey()) || ! $this->showRestoreButton) {
365
+        if (is_null($this->getModel()->getKey()) || !$this->showRestoreButton) {
366 366
             return false;
367 367
         }
368 368
 
Please login to merge, or discard this patch.
src/Form/Element/DateRange.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function getDefaultFrom()
29 29
     {
30
-        if (! $this->defaultFrom) {
30
+        if (!$this->defaultFrom) {
31 31
             $this->defaultFrom = Carbon::now();
32 32
         }
33 33
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function getDefaultTo()
55 55
     {
56
-        if (! $this->defaultTo) {
56
+        if (!$this->defaultTo) {
57 57
             $this->defaultTo = Carbon::now();
58 58
         }
59 59
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function setValue(Model $model, $attribute, $value)
83 83
     {
84
-        $value = ! empty($value) ? array_map(function ($date) {
84
+        $value = !empty($value) ? array_map(function($date) {
85 85
             return Carbon::createFromFormat($this->getPickerFormat(), $date);
86 86
         }, explode('::', $value)) : null;
87 87
 
Please login to merge, or discard this patch.
src/Display/Extension/Filters.php 1 patch
Spacing   +4 added lines, -4 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
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
126 126
     {
127
-        $this->getActive()->each(function (FilterInterface $filter) use ($query) {
127
+        $this->getActive()->each(function(FilterInterface $filter) use ($query) {
128 128
             $filter->apply($query);
129 129
         });
130 130
     }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function initialize()
136 136
     {
137
-        $this->filters->each(function (FilterInterface $filter) {
137
+        $this->filters->each(function(FilterInterface $filter) {
138 138
             $filter->initialize();
139 139
         });
140 140
     }
Please login to merge, or discard this patch.
src/Display/Column/NamedColumn.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function setOrderable($orderable = true)
75 75
     {
76
-        if ($orderable !== false && ! $orderable instanceof OrderByClauseInterface) {
77
-            if (! is_string($orderable) && ! $orderable instanceof Closure) {
76
+        if ($orderable !== false && !$orderable instanceof OrderByClauseInterface) {
77
+            if (!is_string($orderable) && !$orderable instanceof Closure) {
78 78
                 $orderable = $this->getName();
79 79
             }
80 80
 
@@ -118,11 +118,11 @@  discard block
 block discarded – undo
118 118
 
119 119
         if ($instance instanceof Collection) {
120 120
             $instance = $instance->pluck($part);
121
-        } elseif (! is_null($instance)) {
121
+        } elseif (!is_null($instance)) {
122 122
             $instance = $instance->getAttribute($part);
123 123
         }
124 124
 
125
-        if (! empty($parts) && ! is_null($instance)) {
125
+        if (!empty($parts) && !is_null($instance)) {
126 126
             return $this->getValueFromObject($instance, implode('.', $parts));
127 127
         }
128 128
 
Please login to merge, or discard this patch.
src/Display/Column/Control.php 1 patch
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.
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.