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

Passed
Push — auto-eagerload-nested-relation... ( 2446fb )
by
unknown
41:40 queued 26:41
created
src/app/Library/CrudPanel/Traits/Columns.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function makeFirstColumn()
115 115
     {
116
-        if (! $this->columns()) {
116
+        if (!$this->columns()) {
117 117
             return false;
118 118
         }
119 119
 
@@ -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
             }
@@ -253,18 +253,18 @@  discard block
 block discarded – undo
253 253
         $relations = [];
254 254
         foreach ($columns as $column) {
255 255
             // no entity, no fun!
256
-            if (! isset($column['entity']) || ! $column['entity']) {
256
+            if (!isset($column['entity']) || !$column['entity']) {
257 257
                 continue;
258 258
             }
259 259
             // if there are no subfields, eagerload the entity.
260
-            if (! isset($column['subfields'])) {
260
+            if (!isset($column['subfields'])) {
261 261
                 array_push($relations, $column['entity']);
262 262
 
263 263
                 continue;
264 264
             }
265 265
             // when there are nested relations, eagerload them too.
266 266
             foreach ($column['subfields'] as $subfield) {
267
-                if (! isset($subfield['entity']) || ! $subfield['entity'] || ($subfield['is_pivot_select'] ?? false) || ! isset($subfield['baseEntity'])) {
267
+                if (!isset($subfield['entity']) || !$subfield['entity'] || ($subfield['is_pivot_select'] ?? false) || !isset($subfield['baseEntity'])) {
268 268
                     continue;
269 269
                 }
270 270
 
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
      */
346 346
     public function hasColumnWhere($attribute, $value)
347 347
     {
348
-        $match = Arr::first($this->columns(), function ($column, $columnKey) use ($attribute, $value) {
348
+        $match = Arr::first($this->columns(), function($column, $columnKey) use ($attribute, $value) {
349 349
             return isset($column[$attribute]) && $column[$attribute] == $value;
350 350
         });
351 351
 
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      */
362 362
     public function firstColumnWhere($attribute, $value)
363 363
     {
364
-        return Arr::first($this->columns(), function ($column, $columnKey) use ($attribute, $value) {
364
+        return Arr::first($this->columns(), function($column, $columnKey) use ($attribute, $value) {
365 365
             return isset($column[$attribute]) && $column[$attribute] == $value;
366 366
         });
367 367
     }
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 
394 394
         // if there's a model defined, but no attribute
395 395
         // guess an attribute using the identifiableAttribute functionality in CrudTrait
396
-        if (isset($column['model']) && ! isset($column['attribute']) && method_exists($column['model'], 'identifiableAttribute')) {
396
+        if (isset($column['model']) && !isset($column['attribute']) && method_exists($column['model'], 'identifiableAttribute')) {
397 397
             $column['attribute'] = (new $column['model'])->identifiableAttribute();
398 398
         }
399 399
 
@@ -418,8 +418,8 @@  discard block
 block discarded – undo
418 418
      */
419 419
     public function countColumnsWithoutActions()
420 420
     {
421
-        return collect($this->columns())->filter(function ($column, $key) {
422
-            return ! isset($column['hasActions']) || $column['hasActions'] == false;
421
+        return collect($this->columns())->filter(function($column, $key) {
422
+            return !isset($column['hasActions']) || $column['hasActions'] == false;
423 423
         })->count();
424 424
     }
425 425
 
Please login to merge, or discard this patch.