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/Form/Element/View.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@  discard block
 block discarded – undo
14 14
     /**
15 15
      * @var array
16 16
      */
17
-    protected $data = [];
17
+    protected $data = [ ];
18 18
 
19 19
     /**
20 20
      * @param string $view
21 21
      * @param array $data
22 22
      * @param Closure $callback
23 23
      */
24
-    public function __construct($view, array $data = [], Closure $callback = null)
24
+    public function __construct($view, array $data = [ ], Closure $callback = null)
25 25
     {
26 26
         $this->setView($view);
27 27
         $this->setData($data);
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $this->view = $view;
48 48
 
49
-        $this->setDisplay(function ($model) {
50
-            $this->data['model'] = $model;
49
+        $this->setDisplay(function($model) {
50
+            $this->data[ 'model' ] = $model;
51 51
 
52 52
             return view($this->getView(), $this->data);
53 53
         });
Please login to merge, or discard this patch.
src/Form/Element/Checkbox.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
     public function save()
10 10
     {
11 11
         $name = $this->getName();
12
-        if (! Request::has($name)) {
13
-            Request::merge([$name => 0]);
12
+        if (!Request::has($name)) {
13
+            Request::merge([ $name => 0 ]);
14 14
         }
15 15
 
16 16
         parent::save();
Please login to merge, or discard this patch.
src/Form/Element/Wysiwyg.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * @var array
21 21
      */
22
-    protected $parameters = [];
22
+    protected $parameters = [ ];
23 23
 
24 24
     /**
25 25
      * @var bool
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function setHeight($height)
90 90
     {
91
-        $this->parameters['height'] = (int) $height;
91
+        $this->parameters[ 'height' ] = (int) $height;
92 92
 
93 93
         return $this;
94 94
     }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             $filteredValue = $value;
153 153
         }
154 154
 
155
-        if (! empty($this->filteredFieldKey)) {
155
+        if (!empty($this->filteredFieldKey)) {
156 156
             parent::setValue($model, $attribute, $value);
157 157
             parent::setValue($model, $this->filteredFieldKey, $filteredValue);
158 158
         } else {
Please login to merge, or discard this patch.
src/Form/Element/Custom.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/Element/Upload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
         if (Request::input($this->getPath().'_remove')) {
33 33
             $this->setValue($this->getModel(), $this->getAttribute(), null);
34
-        } elseif (! is_null($value)) {
34
+        } elseif (!is_null($value)) {
35 35
             $this->setValue($this->getModel(), $this->getAttribute(), $value);
36 36
         }
37 37
     }
Please login to merge, or discard this patch.
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 1 patch
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.