Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — v4dot1 ( f5ef1d...e6b5d2 )
by Cristian
20:40 queued 13:09
created
src/app/Library/CrudPanel/Traits/Columns.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function makeFirstColumn()
114 114
     {
115
-        if (! $this->columns()) {
115
+        if (!$this->columns()) {
116 116
             return false;
117 117
         }
118 118
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public function removeColumns($columns)
159 159
     {
160
-        if (! empty($columns)) {
160
+        if (!empty($columns)) {
161 161
             foreach ($columns as $columnKey) {
162 162
                 $this->removeColumn($columnKey);
163 163
             }
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     {
237 237
         $columns = $this->columns();
238 238
 
239
-        return collect($columns)->pluck('entity')->reject(function ($value, $key) {
239
+        return collect($columns)->pluck('entity')->reject(function($value, $key) {
240 240
             return $value == null;
241 241
         })->toArray();
242 242
     }
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/ColumnsProtectedMethods.php 1 patch
Spacing   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         // make sure the column has a priority in terms of visibility
52 52
         // if no priority has been defined, use the order in the array plus one
53
-        if (! array_key_exists('priority', $column)) {
53
+        if (!array_key_exists('priority', $column)) {
54 54
             $position_in_columns_array = (int) array_search($column['key'], array_keys($this->columns()));
55 55
             $allColumns[$column['key']]['priority'] = $position_in_columns_array + 1;
56 56
         }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             $column = ['name' => $column];
72 72
         }
73 73
 
74
-        if (is_array($column) && ! isset($column['name'])) {
74
+        if (is_array($column) && !isset($column['name'])) {
75 75
             $column['name'] = 'anonymous_column_'.Str::random(5);
76 76
         }
77 77
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     protected function makeSureColumnHasLabel($column)
89 89
     {
90
-        if (! isset($column['label'])) {
90
+        if (!isset($column['label'])) {
91 91
             $column['label'] = mb_ucfirst($this->makeLabel($column['name']));
92 92
         }
93 93
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     protected function makeSureColumnHasType($column)
104 104
     {
105
-        if (! isset($column['type'])) {
105
+        if (!isset($column['type'])) {
106 106
             $column['type'] = 'text';
107 107
         }
108 108
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     protected function makeSureColumnHasKey($column)
121 121
     {
122
-        if (! isset($column['key'])) {
122
+        if (!isset($column['key'])) {
123 123
             $column['key'] = str_replace('.', '__', $column['name']);
124 124
         }
125 125
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         // if this is a relation type field and no corresponding model was specified,
139 139
         // get it from the relation method defined in the main model
140
-        if (isset($column['entity']) && ! isset($column['model'])) {
140
+        if (isset($column['entity']) && !isset($column['model'])) {
141 141
             $column['model'] = $this->getRelationModel($column['entity']);
142 142
         }
143 143
 
@@ -158,8 +158,7 @@  discard block
 block discarded – undo
158 158
         $columnsArray = $this->columns();
159 159
 
160 160
         if (array_key_exists($targetColumnName, $columnsArray)) {
161
-            $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) :
162
-                array_search($targetColumnName, array_keys($columnsArray)) + 1;
161
+            $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) : array_search($targetColumnName, array_keys($columnsArray)) + 1;
163 162
 
164 163
             $element = array_pop($columnsArray);
165 164
             $beginningPart = array_slice($columnsArray, 0, $targetColumnPosition, true);
Please login to merge, or discard this patch.
src/app/Models/Traits/CrudTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             // check for NOT NULL
127 127
             $notNull = $column->getNotnull();
128 128
             // return the value of nullable (aka the inverse of NOT NULL)
129
-            return ! $notNull;
129
+            return !$notNull;
130 130
         } catch (\Exception $e) {
131 131
             return true;
132 132
         }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     public function addFakes($columns = ['extras'])
147 147
     {
148 148
         foreach ($columns as $key => $column) {
149
-            if (! isset($this->attributes[$column])) {
149
+            if (!isset($this->attributes[$column])) {
150 150
                 continue;
151 151
             }
152 152
 
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      */
196 196
     public function shouldDecodeFake($column)
197 197
     {
198
-        return ! in_array($column, array_keys($this->casts));
198
+        return !in_array($column, array_keys($this->casts));
199 199
     }
200 200
 
201 201
     /**
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      */
208 208
     public function shouldEncodeFake($column)
209 209
     {
210
-        return ! in_array($column, array_keys($this->casts));
210
+        return !in_array($column, array_keys($this->casts));
211 211
     }
212 212
 
213 213
     /*
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
      */
279 279
     public function uploadMultipleFilesToDisk($value, $attribute_name, $disk, $destination_path)
280 280
     {
281
-        if (! is_array($this->{$attribute_name})) {
281
+        if (!is_array($this->{$attribute_name})) {
282 282
             $attribute_value = json_decode($this->{$attribute_name}, true) ?? [];
283 283
         } else {
284 284
             $attribute_value = $this->{$attribute_name};
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
         if ($files_to_clear) {
291 291
             foreach ($files_to_clear as $key => $filename) {
292 292
                 \Storage::disk($disk)->delete($filename);
293
-                $attribute_value = array_where($attribute_value, function ($value, $key) use ($filename) {
293
+                $attribute_value = array_where($attribute_value, function($value, $key) use ($filename) {
294 294
                     return $value != $filename;
295 295
                 });
296 296
             }
Please login to merge, or discard this patch.