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 (886517)
by butschster
08:25
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/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/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   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         parent::initialize();
73 73
 
74 74
         if ($this->getModelConfiguration()->isRestorableModel()) {
75
-            $this->setApply(function ($q) {
75
+            $this->setApply(function($q) {
76 76
                 return $q->withTrashed();
77 77
             });
78 78
         }
@@ -183,10 +183,10 @@  discard block
 block discarded – undo
183 183
         $params['collection'] = $this->getCollection();
184 184
 
185 185
         $params['extensions'] = $this->getExtensions()
186
-            ->filter(function (DisplayExtensionInterface $ext) {
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
 
@@ -201,11 +201,11 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function getCollection()
203 203
     {
204
-        if (! $this->isInitialized()) {
204
+        if (!$this->isInitialized()) {
205 205
             throw new \Exception('Display is not initialized');
206 206
         }
207 207
 
208
-        if (! is_null($this->collection)) {
208
+        if (!is_null($this->collection)) {
209 209
             return $this->collection;
210 210
         }
211 211
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
         $columns = $this->getColumns()->all();
232 232
 
233
-        if (! is_int(key($orders))) {
233
+        if (!is_int(key($orders))) {
234 234
             $orders = [$orders];
235 235
         }
236 236
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
             $columnIndex = array_get($order, 'column');
239 239
             $direction = array_get($order, 'dir', 'asc');
240 240
 
241
-            if (! $columnIndex && $columnIndex !== '0') {
241
+            if (!$columnIndex && $columnIndex !== '0') {
242 242
                 continue;
243 243
             }
244 244
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      */
256 256
     protected function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
257 257
     {
258
-        $this->extensions->each(function (DisplayExtensionInterface $extension) use ($query) {
258
+        $this->extensions->each(function(DisplayExtensionInterface $extension) use ($query) {
259 259
             $extension->modifyQuery($query);
260 260
         });
261 261
     }
Please login to merge, or discard this patch.
src/Display/DisplayTree.php 2 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.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
     public static function registerRoutes(Router $router)
24 24
     {
25 25
         $routeName = 'admin.display.tree.reorder';
26
-        if (! $router->has($routeName)) {
27
-            $router->post('{adminModel}/reorder', ['as' => $routeName, function (ModelConfigurationInterface $model) {
26
+        if (!$router->has($routeName)) {
27
+            $router->post('{adminModel}/reorder', ['as' => $routeName, function(ModelConfigurationInterface $model) {
28 28
                 $display = $model->fireDisplay();
29 29
 
30 30
                 if ($display instanceof DisplayTabbed) {
31
-                    $display->getTabs()->each(function ($tab) {
31
+                    $display->getTabs()->each(function($tab) {
32 32
                         $content = $tab->getContent();
33 33
                         if ($content instanceof self) {
34 34
                             $content->getRepository()->reorder(
@@ -286,11 +286,11 @@  discard block
 block discarded – undo
286 286
      */
287 287
     public function getCollection()
288 288
     {
289
-        if (! $this->isInitialized()) {
289
+        if (!$this->isInitialized()) {
290 290
             throw new \Exception('Display is not initialized');
291 291
         }
292 292
 
293
-        if (! is_null($this->collection)) {
293
+        if (!is_null($this->collection)) {
294 294
             return $this->collection;
295 295
         }
296 296
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      */
311 311
     protected function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
312 312
     {
313
-        $this->extensions->each(function (DisplayExtensionInterface $extension) use ($query) {
313
+        $this->extensions->each(function(DisplayExtensionInterface $extension) use ($query) {
314 314
             $extension->modifyQuery($query);
315 315
         });
316 316
     }
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
     {
324 324
         $repository = parent::makeRepository();
325 325
 
326
-        if (! ($repository instanceof TreeRepositoryInterface)) {
326
+        if (!($repository instanceof TreeRepositoryInterface)) {
327 327
             throw new \Exception('Repository class must be instanced of [TreeRepositoryInterface]');
328 328
         }
329 329
 
Please login to merge, or discard this patch.
src/Display/Column/Filter/Text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             $parts = explode('.', $name);
67 67
             $fieldName = array_pop($parts);
68 68
             $relationName = implode('.', $parts);
69
-            $query->whereHas($relationName, function ($q) use ($search, $fieldName) {
69
+            $query->whereHas($relationName, function($q) use ($search, $fieldName) {
70 70
                 $this->buildQuery($q, $fieldName, $search);
71 71
             });
72 72
         }
Please login to merge, or discard this patch.
src/Display/Column/Custom.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function __construct($label = null, Closure $callback = null)
29 29
     {
30 30
         parent::__construct($label);
31
-        if (! is_null($callback)) {
31
+        if (!is_null($callback)) {
32 32
             $this->setCallback($callback);
33 33
         }
34 34
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     protected function getValue(Model $model)
65 65
     {
66
-        if (! is_callable($callback = $this->getCallback())) {
66
+        if (!is_callable($callback = $this->getCallback())) {
67 67
             throw new \Exception('Invalid custom column callback');
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/Display/Column/Order.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         Route::post('{adminModel}/{adminModelId}/up', [
19 19
             'as' => 'admin.model.move-up',
20
-            function ($model, $id) {
20
+            function($model, $id) {
21 21
                 $instance = $model->getRepository()->find($id);
22 22
                 $instance->moveUp();
23 23
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         Route::post('{adminModel}/{adminModelId}/down', [
29 29
             'as' => 'admin.model.move-down',
30
-            function ($model, $id) {
30
+            function($model, $id) {
31 31
                 $instance = $model->getRepository()->find($id);
32 32
                 $instance->moveDown();
33 33
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function getModel()
50 50
     {
51
-        if (! in_array(OrderableModel::class, trait_uses_recursive($class = get_class($this->model)))) {
51
+        if (!in_array(OrderableModel::class, trait_uses_recursive($class = get_class($this->model)))) {
52 52
             throw new \Exception("Model [$class] should uses trait [SleepingOwl\\Admin\\Traits\\OrderableModel]");
53 53
         }
54 54
 
Please login to merge, or discard this patch.
src/Display/Column/DateTime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@
 block discarded – undo
58 58
         $value = $this->getModelValue();
59 59
         $originalValue = $value;
60 60
 
61
-        if (! is_null($value)) {
62
-            if (! $value instanceof Carbon) {
61
+        if (!is_null($value)) {
62
+            if (!$value instanceof Carbon) {
63 63
                 $value = Carbon::parse($value);
64 64
             }
65 65
 
Please login to merge, or discard this patch.