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 (b5d095)
by butschster
13:32
created
src/Display/Column/Control.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     protected function isEditable()
65 65
     {
66 66
         return
67
-            ! $this->isTrashed()
67
+            !$this->isTrashed()
68 68
             &&
69 69
             $this->getModelConfiguration()->isEditable(
70 70
                 $this->getModel()
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     protected function isDeletable()
89 89
     {
90 90
         return
91
-            ! $this->isTrashed()
91
+            !$this->isTrashed()
92 92
             &&
93 93
             $this->getModelConfiguration()->isDeletable(
94 94
                 $this->getModel()
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.
src/Display/Column/Url.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     /**
8 8
      * @var array
9 9
      */
10
-    protected $linkAttributes = [];
10
+    protected $linkAttributes = [ ];
11 11
 
12 12
     /**
13 13
      * @return array
Please login to merge, or discard this patch.
src/Display/Column/Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     public function toArray()
47 47
     {
48 48
         $value = $this->getModelValue();
49
-        if (! empty($value) && (strpos($value, '://') === false)) {
49
+        if (!empty($value) && (strpos($value, '://') === false)) {
50 50
             $value = asset($value);
51 51
         }
52 52
 
Please login to merge, or discard this patch.
src/Display/Column/Filter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     {
69 69
         $value = $this->getModelValue($this->getModel(), $this->getField());
70 70
 
71
-        return app('sleeping_owl')->getModel($this->getRelatedModel())->getDisplayUrl([$this->getName() => $value]);
71
+        return app('sleeping_owl')->getModel($this->getRelatedModel())->getDisplayUrl([ $this->getName() => $value ]);
72 72
     }
73 73
 
74 74
     /**
Please login to merge, or discard this patch.
src/Display/Column/NamedColumn.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,11 +87,11 @@
 block discarded – undo
87 87
 
88 88
         if ($instance instanceof Collection) {
89 89
             $instance = $instance->pluck($part);
90
-        } elseif (! is_null($instance)) {
90
+        } elseif (!is_null($instance)) {
91 91
             $instance = $instance->getAttribute($part);
92 92
         }
93 93
 
94
-        if (! empty($parts) && ! is_null($instance)) {
94
+        if (!empty($parts) && !is_null($instance)) {
95 95
             return $this->getValueFromObject($instance, implode('.', $parts));
96 96
         }
97 97
 
Please login to merge, or discard this patch.
src/Display/Extension/Columns.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function set($columns)
102 102
     {
103
-        if (! is_array($columns)) {
103
+        if (!is_array($columns)) {
104 104
             $columns = func_get_args();
105 105
         }
106 106
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             $this->push($this->getControlColumn());
163 163
         }
164 164
 
165
-        $this->all()->each(function (ColumnInterface $column) {
165
+        $this->all()->each(function(ColumnInterface $column) {
166 166
             $column->initialize();
167 167
         });
168 168
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     public function render()
176 176
     {
177 177
         $params = $this->toArray();
178
-        $params['collection'] = $this->getDisplay()->getCollection();
178
+        $params[ 'collection' ] = $this->getDisplay()->getCollection();
179 179
 
180 180
         return app('sleeping_owl.template')->view($this->getView(), $params)->render();
181 181
     }
Please login to merge, or discard this patch.