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 ( a9bc98...b864c9 )
by butschster
10:50
created
src/Providers/AdminSectionsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     /**
10 10
      * @var array
11 11
      */
12
-    protected $sections = [];
12
+    protected $sections = [ ];
13 13
 
14 14
     /**
15 15
      * Register the service provider.
Please login to merge, or discard this patch.
src/Providers/AliasesServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             'select' => \SleepingOwl\Admin\Display\Column\Filter\Select::class,
28 28
         ]);
29 29
 
30
-        $this->app->singleton('sleeping_owl.column_filter', function () use ($alias) {
30
+        $this->app->singleton('sleeping_owl.column_filter', function() use ($alias) {
31 31
             return $alias;
32 32
         });
33 33
     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             'tree'            => \SleepingOwl\Admin\Display\DisplayTree::class,
44 44
         ]);
45 45
 
46
-        $this->app->singleton('sleeping_owl.display', function () use ($alias) {
46
+        $this->app->singleton('sleeping_owl.display', function() use ($alias) {
47 47
             return $alias;
48 48
         });
49 49
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             'treeControl' => \SleepingOwl\Admin\Display\Column\TreeControl::class,
69 69
         ]);
70 70
 
71
-        $this->app->singleton('sleeping_owl.table.column', function () use ($alias) {
71
+        $this->app->singleton('sleeping_owl.table.column', function() use ($alias) {
72 72
             return $alias;
73 73
         });
74 74
     }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             'checkbox'    => \SleepingOwl\Admin\Display\Column\Editable\Checkbox::class,
80 80
         ]);
81 81
 
82
-        $this->app->singleton('sleeping_owl.table.column.editable', function () use ($alias) {
82
+        $this->app->singleton('sleeping_owl.table.column.editable', function() use ($alias) {
83 83
             return $alias;
84 84
         });
85 85
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             'html'        => \SleepingOwl\Admin\Form\Element\Html::class,
112 112
         ]);
113 113
 
114
-        $this->app->singleton('sleeping_owl.form.element', function () use ($alias) {
114
+        $this->app->singleton('sleeping_owl.form.element', function() use ($alias) {
115 115
             return $alias;
116 116
         });
117 117
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             'panel'  => \SleepingOwl\Admin\Form\FormPanel::class,
125 125
         ]);
126 126
 
127
-        $this->app->singleton('sleeping_owl.form', function () use ($alias) {
127
+        $this->app->singleton('sleeping_owl.form', function() use ($alias) {
128 128
             return $alias;
129 129
         });
130 130
     }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             'related' => \SleepingOwl\Admin\Display\Filter\FilterRelated::class,
139 139
         ]);
140 140
 
141
-        $this->app->singleton('sleeping_owl.display.filter', function () use ($alias) {
141
+        $this->app->singleton('sleeping_owl.display.filter', function() use ($alias) {
142 142
             return $alias;
143 143
         });
144 144
     }
Please login to merge, or discard this patch.
src/AliasBinder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * @var array
11 11
      */
12
-    protected static $routes = [];
12
+    protected static $routes = [ ];
13 13
 
14 14
     /**
15 15
      * @return array
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * @var array
24 24
      */
25
-    protected $aliases = [];
25
+    protected $aliases = [ ];
26 26
 
27 27
     /**
28 28
      * Register new alias.
@@ -34,10 +34,10 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function add($alias, $class)
36 36
     {
37
-        $this->aliases[$alias] = $class;
37
+        $this->aliases[ $alias ] = $class;
38 38
 
39 39
         if (method_exists($class, 'registerRoutes')) {
40
-            self::$routes[] = [$class, 'registerRoutes'];
40
+            self::$routes[ ] = [ $class, 'registerRoutes' ];
41 41
         }
42 42
 
43 43
         return $this;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function getAlias($alias)
68 68
     {
69
-        return $this->aliases[$alias];
69
+        return $this->aliases[ $alias ];
70 70
     }
71 71
 
72 72
     /**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function __call($name, $arguments)
93 93
     {
94
-        if (! $this->hasAlias($name)) {
94
+        if (!$this->hasAlias($name)) {
95 95
             throw new BadMethodCallException($name);
96 96
         }
97 97
 
Please login to merge, or discard this patch.
src/Repository/TreeRepository.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -209,9 +209,9 @@  discard block
 block discarded – undo
209 209
     {
210 210
         $instance = $this->find($id);
211 211
         $attributes = $instance->getAttributes();
212
-        $attributes[$this->getLeftColumn($instance)] = $left;
213
-        $attributes[$this->getRightColumn($instance)] = $right;
214
-        $attributes[$this->getParentColumn($instance)] = $parentId;
212
+        $attributes[ $this->getLeftColumn($instance) ] = $left;
213
+        $attributes[ $this->getRightColumn($instance) ] = $right;
214
+        $attributes[ $this->getParentColumn($instance) ] = $parentId;
215 215
         $instance->setRawAttributes($attributes);
216 216
         $instance->save();
217 217
     }
@@ -318,11 +318,11 @@  discard block
 block discarded – undo
318 318
     protected function recursiveReorder($root, $parentId, $left)
319 319
     {
320 320
         $right = $left + 1;
321
-        $children = array_get($root, 'children', []);
321
+        $children = array_get($root, 'children', [ ]);
322 322
         foreach ($children as $child) {
323
-            $right = $this->recursiveReorder($child, $root['id'], $right);
323
+            $right = $this->recursiveReorder($child, $root[ 'id' ], $right);
324 324
         }
325
-        $this->move($root['id'], $parentId, $left, $right);
325
+        $this->move($root[ 'id' ], $parentId, $left, $right);
326 326
         $left = $right + 1;
327 327
 
328 328
         return $left;
@@ -337,15 +337,15 @@  discard block
 block discarded – undo
337 337
     protected function recursiveReorderSimple($data, $parentId)
338 338
     {
339 339
         foreach ($data as $order => $item) {
340
-            $id = $item['id'];
340
+            $id = $item[ 'id' ];
341 341
 
342 342
             $instance = $this->find($id);
343 343
             $instance->{$this->getParentField()} = $parentId;
344 344
             $instance->{$this->getOrderField()} = $order;
345 345
             $instance->save();
346 346
 
347
-            if (isset($item['children'])) {
348
-                $this->recursiveReorderSimple($item['children'], $id);
347
+            if (isset($item[ 'children' ])) {
348
+                $this->recursiveReorderSimple($item[ 'children' ], $id);
349 349
             }
350 350
         }
351 351
     }
@@ -361,14 +361,14 @@  discard block
 block discarded – undo
361 361
     protected function getChildren($collection, $id)
362 362
     {
363 363
         $parentField = $this->getParentField();
364
-        $result = [];
364
+        $result = [ ];
365 365
         foreach ($collection as $instance) {
366 366
             if ($instance->$parentField != $id) {
367 367
                 continue;
368 368
             }
369 369
 
370 370
             $instance->setRelation('children', $this->getChildren($collection, $instance->getKey()));
371
-            $result[] = $instance;
371
+            $result[ ] = $instance;
372 372
         }
373 373
 
374 374
         return Collection::make($result);
Please login to merge, or discard this patch.
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      *
204 204
      * @param $id
205 205
      * @param $parentId
206
-     * @param $left
206
+     * @param integer $left
207 207
      * @param $right
208 208
      */
209 209
     protected function move($id, $parentId, $left, $right)
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      * Call several methods and get first result.
301 301
      *
302 302
      * @param $instance
303
-     * @param $methods
303
+     * @param string[] $methods
304 304
      *
305 305
      * @return mixed
306 306
      * @throws Exception
@@ -320,9 +320,9 @@  discard block
 block discarded – undo
320 320
      *
321 321
      * @param $root
322 322
      * @param $parentId
323
-     * @param $left
323
+     * @param integer $left
324 324
      *
325
-     * @return mixed
325
+     * @return integer
326 326
      */
327 327
     protected function recursiveReorder($root, $parentId, $left)
328 328
     {
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
      * Recursive reoder simple tree type.
342 342
      *
343 343
      * @param $data
344
-     * @param $parentId
344
+     * @param string|null $parentId
345 345
      */
346 346
     protected function recursiveReorderSimple(array $data, $parentId)
347 347
     {
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
      * Get children for simple tree type structure.
364 364
      *
365 365
      * @param $collection
366
-     * @param $id
366
+     * @param string|null $id
367 367
      *
368 368
      * @return Collection
369 369
      */
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
 
386 386
     /**
387 387
      * Create simple tree type structure.
388
-     * @return static
388
+     * @return Collection
389 389
      */
390 390
     protected function createSimpleTree()
391 391
     {
Please login to merge, or discard this patch.
src/Repository/BaseRepository.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * Eager loading relations.
26 26
      * @var string[]
27 27
      */
28
-    protected $with = [];
28
+    protected $with = [ ];
29 29
 
30 30
     /**
31 31
      * @param string $class
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function with($with)
74 74
     {
75
-        if (! is_array($with)) {
75
+        if (!is_array($with)) {
76 76
             $with = func_get_args();
77 77
         }
78 78
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     public function hasColumn($column)
179 179
     {
180 180
         $table = $this->getModel()->getTable();
181
-        $columns = Cache::remember('admin.columns.'.$table, 60, function () use ($table) {
181
+        $columns = Cache::remember('admin.columns.'.$table, 60, function() use ($table) {
182 182
             return Schema::getColumnListing($table);
183 183
         });
184 184
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     }
61 61
 
62 62
     /**
63
-     * @return \string[]
63
+     * @return string[]
64 64
      */
65 65
     public function getWith()
66 66
     {
Please login to merge, or discard this patch.
resources/lang/pt_BR/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,6 @@
 block discarded – undo
62 62
     |
63 63
     */
64 64
 
65
-    'attributes'              => [],
65
+    'attributes'              => [ ],
66 66
 
67 67
 ];
Please login to merge, or discard this patch.
resources/lang/en/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,6 +87,6 @@
 block discarded – undo
87 87
     |
88 88
     */
89 89
 
90
-    'attributes' => [],
90
+    'attributes' => [ ],
91 91
 
92 92
 ];
Please login to merge, or discard this patch.
resources/lang/zh-CN/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,6 +87,6 @@
 block discarded – undo
87 87
     |
88 88
     */
89 89
 
90
-    'attributes' => [],
90
+    'attributes' => [ ],
91 91
 
92 92
 ];
Please login to merge, or discard this patch.
resources/lang/ru/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,6 +87,6 @@
 block discarded – undo
87 87
     |
88 88
     */
89 89
 
90
-    'attributes' => [],
90
+    'attributes' => [ ],
91 91
 
92 92
 ];
Please login to merge, or discard this patch.