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 ( fdafab...aa2657 )
by butschster
06:04
created
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/Http/Controllers/AdminController.php 2 patches
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -37,29 +37,29 @@  discard block
 block discarded – undo
37 37
 
38 38
         $this->navigation->setCurrentUrl($request->url());
39 39
 
40
-        Breadcrumbs::register('home', function ($breadcrumbs) {
40
+        Breadcrumbs::register('home', function($breadcrumbs) {
41 41
             $breadcrumbs->push(trans('sleeping_owl::lang.dashboard'), route('admin.dashboard'));
42 42
         });
43 43
 
44
-        $breadcrumbs = [];
44
+        $breadcrumbs = [ ];
45 45
 
46 46
         if ($currentPage = $this->navigation->getCurrentPage()) {
47 47
             foreach ($currentPage->getPathArray() as $page) {
48
-                $breadcrumbs[] = [
49
-                    'id' => $page['id'],
50
-                    'title' => $page['title'],
51
-                    'url' => $page['url'],
48
+                $breadcrumbs[ ] = [
49
+                    'id' => $page[ 'id' ],
50
+                    'title' => $page[ 'title' ],
51
+                    'url' => $page[ 'url' ],
52 52
                     'parent' => $this->parentBreadcrumb,
53 53
                 ];
54 54
 
55
-                $this->parentBreadcrumb = $page['id'];
55
+                $this->parentBreadcrumb = $page[ 'id' ];
56 56
             }
57 57
         }
58 58
 
59 59
         foreach ($breadcrumbs as  $breadcrumb) {
60
-            Breadcrumbs::register($breadcrumb['id'], function ($breadcrumbs) use ($breadcrumb) {
61
-                $breadcrumbs->parent($breadcrumb['parent']);
62
-                $breadcrumbs->push($breadcrumb['title'], $breadcrumb['url']);
60
+            Breadcrumbs::register($breadcrumb[ 'id' ], function($breadcrumbs) use ($breadcrumb) {
61
+                $breadcrumbs->parent($breadcrumb[ 'parent' ]);
62
+                $breadcrumbs->push($breadcrumb[ 'title' ], $breadcrumb[ 'url' ]);
63 63
             });
64 64
         }
65 65
     }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function getDisplay(ModelConfigurationInterface $model)
73 73
     {
74
-        if (! $model->isDisplayable()) {
74
+        if (!$model->isDisplayable()) {
75 75
             abort(404);
76 76
         }
77 77
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function getCreate(ModelConfigurationInterface $model)
87 87
     {
88
-        if (! $model->isCreatable()) {
88
+        if (!$model->isCreatable()) {
89 89
             abort(404);
90 90
         }
91 91
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function postStore(ModelConfigurationInterface $model)
105 105
     {
106
-        if (! $model->isCreatable()) {
106
+        if (!$model->isCreatable()) {
107 107
             abort(404);
108 108
         }
109 109
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         $item = $model->getRepository()->find($id);
165 165
 
166
-        if (is_null($item) || ! $model->isEditable($item)) {
166
+        if (is_null($item) || !$model->isEditable($item)) {
167 167
             abort(404);
168 168
         }
169 169
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     {
183 183
         $item = $model->getRepository()->find($id);
184 184
 
185
-        if (is_null($item) || ! $model->isEditable($item)) {
185
+        if (is_null($item) || !$model->isEditable($item)) {
186 186
             abort(404);
187 187
         }
188 188
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
         $display = $model->fireDisplay();
239 239
 
240 240
         /** @var ColumnEditableInterface|null $column */
241
-        $column = $display->getColumns()->all()->filter(function ($column) use ($field) {
241
+        $column = $display->getColumns()->all()->filter(function($column) use ($field) {
242 242
             return ($column instanceof ColumnEditableInterface) and $field == $column->getName();
243 243
         })->first();
244 244
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
         $repository = $model->getRepository();
250 250
         $item = $repository->find($id);
251 251
 
252
-        if (is_null($item) || ! $model->isEditable($item)) {
252
+        if (is_null($item) || !$model->isEditable($item)) {
253 253
             abort(404);
254 254
         }
255 255
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     {
275 275
         $item = $model->getRepository()->find($id);
276 276
 
277
-        if (is_null($item) || ! $model->isDeletable($item)) {
277
+        if (is_null($item) || !$model->isDeletable($item)) {
278 278
             abort(404);
279 279
         }
280 280
 
@@ -299,13 +299,13 @@  discard block
 block discarded – undo
299 299
      */
300 300
     public function deleteDestroy(ModelConfigurationInterface $model, $id)
301 301
     {
302
-        if (! $model->isRestorableModel()) {
302
+        if (!$model->isRestorableModel()) {
303 303
             abort(404);
304 304
         }
305 305
 
306 306
         $item = $model->getRepository()->findOnlyTrashed($id);
307 307
 
308
-        if (is_null($item) || ! $model->isRestorable($item)) {
308
+        if (is_null($item) || !$model->isRestorable($item)) {
309 309
             abort(404);
310 310
         }
311 311
 
@@ -330,13 +330,13 @@  discard block
 block discarded – undo
330 330
      */
331 331
     public function postRestore($model, $id)
332 332
     {
333
-        if (! $model->isRestorableModel()) {
333
+        if (!$model->isRestorableModel()) {
334 334
             abort(404);
335 335
         }
336 336
 
337 337
         $item = $model->getRepository()->findOnlyTrashed($id);
338 338
 
339
-        if (is_null($item) || ! $model->isRestorable($item)) {
339
+        if (is_null($item) || !$model->isRestorable($item)) {
340 340
             abort(404);
341 341
         }
342 342
 
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
     {
404 404
         $lang = trans('sleeping_owl::lang');
405 405
         if ($lang == 'sleeping_owl::lang') {
406
-            $lang = trans('sleeping_owl::lang', [], 'messages', 'en');
406
+            $lang = trans('sleeping_owl::lang', [ ], 'messages', 'en');
407 407
         }
408 408
 
409 409
         $data = [
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
     {
445 445
         if (($backUrl = Request::input('_redirectBack')) == \URL::previous()) {
446 446
             $backUrl = null;
447
-            Request::merge(['_redirectBack' => $backUrl]);
447
+            Request::merge([ '_redirectBack' => $backUrl ]);
448 448
         }
449 449
 
450 450
         return $backUrl;
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
      */
462 462
     protected function registerBreadcrumb($title, $parent)
463 463
     {
464
-        Breadcrumbs::register('render', function ($breadcrumbs) use ($title, $parent) {
464
+        Breadcrumbs::register('render', function($breadcrumbs) use ($title, $parent) {
465 465
             $breadcrumbs->parent($parent);
466 466
             $breadcrumbs->push($title);
467 467
         });
Please login to merge, or discard this patch.
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.
src/Wysiwyg/DummyFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function apply($text)
16 16
     {
17 17
         return Blade::compileString(
18
-            preg_replace(['/<(\?|\%)\=?(php)?/', '/(\%|\?)>/'], ['', ''], $text)
18
+            preg_replace([ '/<(\?|\%)\=?(php)?/', '/(\%|\?)>/' ], [ '', '' ], $text)
19 19
         );
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/Navigation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
         $this->sort();
19 19
 
20
-        if (! is_null($view)) {
20
+        if (!is_null($view)) {
21 21
             return view($view, [
22 22
                 'pages' => $this->getPages(),
23 23
             ])->render();
Please login to merge, or discard this patch.
src/Admin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * @var ModelConfigurationInterface[]
18 18
      */
19
-    protected $models = [];
19
+    protected $models = [ ];
20 20
 
21 21
     /**
22 22
      * @var TemplateInterface
@@ -26,14 +26,14 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * @var Page[]
28 28
      */
29
-    protected $menuItems = [];
29
+    protected $menuItems = [ ];
30 30
 
31 31
     /**
32 32
      * @return string[]
33 33
      */
34 34
     public function modelAliases()
35 35
     {
36
-        return array_map(function (ModelConfigurationInterface $model) {
36
+        return array_map(function(ModelConfigurationInterface $model) {
37 37
             return $model->getAlias();
38 38
         }, $this->getModels());
39 39
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             $class = get_class($class);
82 82
         }
83 83
 
84
-        if (! $this->hasModel($class)) {
84
+        if (!$this->hasModel($class)) {
85 85
             $this->registerModel($class);
86 86
         }
87 87
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function setModel($class, ModelConfigurationInterface $model)
114 114
     {
115
-        $this->models[$class] = $model;
115
+        $this->models[ $class ] = $model;
116 116
     }
117 117
 
118 118
     /**
Please login to merge, or discard this patch.
src/Display/Filter/FilterScope.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
      */
12 12
     public function apply(Builder $query)
13 13
     {
14
-        call_user_func([$query, $this->getName()], $this->getValue());
14
+        call_user_func([ $query, $this->getName() ], $this->getValue());
15 15
     }
16 16
 }
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/DisplayDatatables.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * @var array
13 13
      */
14
-    protected $order = [[0, 'asc']];
14
+    protected $order = [ [ 0, 'asc' ] ];
15 15
 
16 16
     /**
17 17
      * @var array
18 18
      */
19
-    protected $datatableAttributes = [];
19
+    protected $datatableAttributes = [ ];
20 20
 
21 21
     /**
22 22
      * @var int
@@ -39,12 +39,12 @@  discard block
 block discarded – undo
39 39
         $this->setHtmlAttribute('data-order', json_encode($this->getOrder()));
40 40
 
41 41
         $attributes = $this->getDatatableAttributes();
42
-        $attributes['pageLength'] = $this->paginate;
42
+        $attributes[ 'pageLength' ] = $this->paginate;
43 43
 
44
-        $attributes['language'] = trans('sleeping_owl::lang.table');
44
+        $attributes[ 'language' ] = trans('sleeping_owl::lang.table');
45 45
 
46 46
         foreach ($this->getColumns()->all() as $column) {
47
-            $attributes['columns'][] = [
47
+            $attributes[ 'columns' ][ ] = [
48 48
                 'orderDataType' => class_basename($column),
49 49
             ];
50 50
         }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function getDatatableAttributes()
59 59
     {
60
-        return array_merge(config('sleeping_owl.datatables', []), (array) $this->datatableAttributes);
60
+        return array_merge(config('sleeping_owl.datatables', [ ]), (array) $this->datatableAttributes);
61 61
     }
62 62
 
63 63
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function setOrder($order)
89 89
     {
90
-        if (! is_array($order)) {
90
+        if (!is_array($order)) {
91 91
             $order = func_get_args();
92 92
         }
93 93
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     {
123 123
         $params = parent::toArray();
124 124
 
125
-        $params['order'] = $this->getOrder();
125
+        $params[ 'order' ] = $this->getOrder();
126 126
 
127 127
         return $params;
128 128
     }
Please login to merge, or discard this patch.
src/Display/DisplayTable.php 3 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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@
 block discarded – undo
283 283
     }
284 284
 
285 285
     /**
286
-     * @param \Illuminate\Database\Eloquent\Builder|Builder $query
286
+     * @param \Illuminate\Database\Eloquent\Builder $query
287 287
      */
288 288
     protected function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
289 289
     {
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @var array
32 32
      */
33
-    protected $parameters = [];
33
+    protected $parameters = [ ];
34 34
 
35 35
     /**
36 36
      * @var int|null
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         parent::initialize();
72 72
 
73 73
         if ($this->getModelConfiguration()->isRestorableModel()) {
74
-            $this->setApply(function ($q) {
74
+            $this->setApply(function($q) {
75 75
                 return $q->withTrashed();
76 76
             });
77 77
         }
@@ -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
     }
@@ -211,11 +211,11 @@  discard block
 block discarded – undo
211 211
      */
212 212
     public function getCollection()
213 213
     {
214
-        if (! $this->isInitialized()) {
214
+        if (!$this->isInitialized()) {
215 215
             throw new \Exception('Display is not initialized');
216 216
         }
217 217
 
218
-        if (! is_null($this->collection)) {
218
+        if (!is_null($this->collection)) {
219 219
             return $this->collection;
220 220
         }
221 221
 
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         $this->modifyQuery($query);
225 225
 
226 226
         return $this->collection = $this->usePagination()
227
-            ? $query->paginate($this->paginate, ['*'], $this->pageName)
227
+            ? $query->paginate($this->paginate, [ '*' ], $this->pageName)
228 228
             : $query->get();
229 229
     }
230 230
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      */
234 234
     protected function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
235 235
     {
236
-        $this->extensions->each(function (DisplayExtensionInterface $extension) use ($query) {
236
+        $this->extensions->each(function(DisplayExtensionInterface $extension) use ($query) {
237 237
             $extension->modifyQuery($query);
238 238
         });
239 239
     }
Please login to merge, or discard this patch.