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/Extension/ColumnFilters.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @return Collection|\SleepingOwl\Admin\Contracts\ActionInterface[]
51
+     * @return ColumnFilterInterface[]
52 52
      */
53 53
     public function all()
54 54
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function set($columnFilters)
37 37
     {
38
-        if (! is_array($columnFilters)) {
38
+        if (!is_array($columnFilters)) {
39 39
             $columnFilters = func_get_args();
40 40
         }
41 41
 
@@ -173,13 +173,13 @@  discard block
 block discarded – undo
173 173
 
174 174
         $display = $this->getDisplay();
175 175
 
176
-        if (! $display->getExtensions()->has('columns')) {
176
+        if (!$display->getExtensions()->has('columns')) {
177 177
             return;
178 178
         }
179 179
 
180 180
         $columns = $display->getColumns()->all();
181 181
 
182
-        if (! is_int(key($search))) {
182
+        if (!is_int(key($search))) {
183 183
             $search = [$search];
184 184
         }
185 185
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 
217 217
     protected function prepareView()
218 218
     {
219
-        if (! in_array($this->getPlacement(), ['table.footer', 'table.header']) && $this->view == 'display.extensions.columns_filters_table') {
219
+        if (!in_array($this->getPlacement(), ['table.footer', 'table.header']) && $this->view == 'display.extensions.columns_filters_table') {
220 220
             $this->view = 'display.extensions.columns_filters';
221 221
             $this->setHtmlAttribute('class', 'table table-default');
222 222
         }
Please login to merge, or discard this patch.
src/Display/Extension/Scopes.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * @param array|string $scopes
24 24
      *
25
-     * @return $this
25
+     * @return \SleepingOwl\Admin\Contracts\DisplayInterface
26 26
      */
27 27
     public function set($scopes)
28 28
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function push($scope)
40 40
     {
41
-        if (! is_array($scope)) {
41
+        if (!is_array($scope)) {
42 42
             $scope = func_get_args();
43 43
         }
44 44
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function modifyQuery(Builder $query)
66 66
     {
67 67
         foreach ($this->scopes as $scope) {
68
-            if (! is_null($scope)) {
68
+            if (!is_null($scope)) {
69 69
                 if (is_array($scope)) {
70 70
                     $method = array_shift($scope);
71 71
                     $params = $scope;
Please login to merge, or discard this patch.
src/Form/Columns/Column.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @return string
51
+     * @return integer
52 52
      */
53 53
     public function getSize()
54 54
     {
Please login to merge, or discard this patch.
src/Traits/OrderableModel.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     /**
47 47
      * Move model in the $destination.
48 48
      *
49
-     * @param $destination -1 (move down) or 1 (move up)
49
+     * @param integer $destination -1 (move down) or 1 (move up)
50 50
      */
51 51
     protected function move($destination)
52 52
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@
 block discarded – undo
73 73
     protected function updateOrderFieldOnDelete()
74 74
     {
75 75
         static::orderModel()
76
-              ->where($this->getOrderField(), '>', $this->getOrderValue())
77
-              ->decrement($this->getOrderField());
76
+                ->where($this->getOrderField(), '>', $this->getOrderValue())
77
+                ->decrement($this->getOrderField());
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@
 block discarded – undo
9 9
      */
10 10
     protected static function bootOrderableModel()
11 11
     {
12
-        static::creating(function ($row) {
12
+        static::creating(function($row) {
13 13
             $row->updateOrderFieldOnCreate();
14 14
         });
15 15
 
16
-        static::deleted(function ($row) {
16
+        static::deleted(function($row) {
17 17
             $row->updateOrderFieldOnDelete();
18 18
         });
19 19
     }
Please login to merge, or discard this patch.
src/Wysiwyg/Manager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     /**
81 81
      * @param string $editorId
82 82
      *
83
-     * @return bool
83
+     * @return boolean|null
84 84
      */
85 85
     public function loadEditor($editorId)
86 86
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function getEditor($editorId)
69 69
     {
70
-        return $this->getFilters()->filter(function (WysiwygEditorInterface $editor) use ($editorId) {
70
+        return $this->getFilters()->filter(function(WysiwygEditorInterface $editor) use ($editorId) {
71 71
             return $editor->getId() == $editorId;
72 72
         })->first();
73 73
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function loadEditor($editorId)
86 86
     {
87
-        if (! is_null($editor = $this->getEditor($editorId))) {
87
+        if (!is_null($editor = $this->getEditor($editorId))) {
88 88
             if ($editor->isUsed()) {
89 89
                 return true;
90 90
             }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function applyFilter($editorId, $text)
106 106
     {
107
-        if (! is_null($editor = $this->getEditor($editorId))) {
107
+        if (!is_null($editor = $this->getEditor($editorId))) {
108 108
             return $editor->applyFilter($text);
109 109
         }
110 110
 
Please login to merge, or discard this patch.
resources/views/default/form/tabbed.blade.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 			<?php $active = null; ?>
9 9
 			@foreach ($items as $label => $_tmp)
10 10
 				<?php
11
-					if (is_null($active)) {
12
-						$active = $label;
13
-					}
14
-				?>
11
+                    if (is_null($active)) {
12
+                        $active = $label;
13
+                    }
14
+                ?>
15 15
 				<li role="presentation" {!! ($active == $label) ? 'class="active"' : '' !!}><a href="#{{ md5($label) }}" aria-controls="{{ md5($label) }}" role="tab" data-toggle="tab">{{ $label }}</a></li>
16 16
 			@endforeach
17 17
 		</ul>
Please login to merge, or discard this patch.
src/Display/Filter/FilterRelated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function setModel($model)
56 56
     {
57
-        if (! class_exists($model)) {
57
+        if (!class_exists($model)) {
58 58
             throw new Exception("Class model [$model] not found");
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Display/DisplayTable.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 /**
15 15
  * Class DisplayTable.
16
-
17 16
  * @method Columns getColumns()
18 17
  * @method $this setColumns(ColumnInterface $column, ... $columns)
19 18
  *
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         parent::initialize();
71 71
 
72 72
         if ($this->getModelConfiguration()->isRestorableModel()) {
73
-            $this->setApply(function ($q) {
73
+            $this->setApply(function($q) {
74 74
                 return $q->withTrashed();
75 75
             });
76 76
         }
@@ -192,11 +192,11 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function getCollection()
194 194
     {
195
-        if (! $this->isInitialized()) {
195
+        if (!$this->isInitialized()) {
196 196
             throw new \Exception('Display is not initialized');
197 197
         }
198 198
 
199
-        if (! is_null($this->collection)) {
199
+        if (!is_null($this->collection)) {
200 200
             return $this->collection;
201 201
         }
202 202
 
Please login to merge, or discard this patch.
src/Display/DisplayTree.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,9 +89,9 @@
 block discarded – undo
89 89
         parent::initialize();
90 90
 
91 91
         $this->getRepository()
92
-             ->setParentField($this->getParentField())
93
-             ->setOrderField($this->getOrderField())
94
-             ->setRootParentId($this->getRootParentId());
92
+                ->setParentField($this->getParentField())
93
+                ->setOrderField($this->getOrderField())
94
+                ->setRootParentId($this->getRootParentId());
95 95
     }
96 96
 
97 97
     /**
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     }
290 290
 
291 291
     /**
292
-     * @param \Illuminate\Database\Eloquent\Builder|Builder $query
292
+     * @param \Illuminate\Database\Eloquent\Builder $query
293 293
      */
294 294
     protected function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
295 295
     {
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
     }
300 300
 
301 301
     /**
302
-     * @return \Illuminate\Foundation\Application|mixed
302
+     * @return TreeRepositoryInterface
303 303
      * @throws \Exception
304 304
      */
305 305
     protected function makeRepository()
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public static function registerRoutes(Router $router)
23 23
     {
24 24
         $routeName = 'admin.display.tree.reorder';
25
-        if (! $router->has($routeName)) {
25
+        if (!$router->has($routeName)) {
26 26
             $router->post('{adminModel}/reorder', ['as' => $routeName, 'uses' => 'SleepingOwl\Admin\Http\Controllers\DisplayController@treeReorder']);
27 27
         }
28 28
     }
@@ -260,11 +260,11 @@  discard block
 block discarded – undo
260 260
      */
261 261
     public function getCollection()
262 262
     {
263
-        if (! $this->isInitialized()) {
263
+        if (!$this->isInitialized()) {
264 264
             throw new \Exception('Display is not initialized');
265 265
         }
266 266
 
267
-        if (! is_null($this->collection)) {
267
+        if (!is_null($this->collection)) {
268 268
             return $this->collection;
269 269
         }
270 270
 
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     {
296 296
         $repository = parent::makeRepository();
297 297
 
298
-        if (! ($repository instanceof TreeRepositoryInterface)) {
298
+        if (!($repository instanceof TreeRepositoryInterface)) {
299 299
             throw new \Exception('Repository class must be instanced of [TreeRepositoryInterface]');
300 300
         }
301 301
 
Please login to merge, or discard this patch.