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 — make-sure-no-white-spaces-on-c... ( 3d482a...5bf20c )
by Pedro
20:33 queued 05:36
created
src/app/Library/CrudPanel/Traits/ColumnsProtectedMethods.php 1 patch
Spacing   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             $column = ['name' => Str::replace(' ', '', $column)];
51 51
         }
52 52
 
53
-        if (is_array($column) && ! isset($column['name'])) {
53
+        if (is_array($column) && !isset($column['name'])) {
54 54
             $column['name'] = 'anonymous_column_'.Str::random(5);
55 55
         }
56 56
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     protected function makeSureColumnHasLabel($column)
70 70
     {
71
-        if (! isset($column['label'])) {
71
+        if (!isset($column['label'])) {
72 72
             $column['label'] = mb_ucfirst($this->makeLabel($column['name']));
73 73
         }
74 74
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     protected function makeSureColumnHasKey($column)
155 155
     {
156
-        if (! isset($column['key'])) {
156
+        if (!isset($column['key'])) {
157 157
             $column['key'] = str_replace('.', '__', $column['name']);
158 158
         }
159 159
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     protected function makeSureColumnHasWrapper($column)
173 173
     {
174
-        if (! isset($column['wrapper'])) {
174
+        if (!isset($column['wrapper'])) {
175 175
             $column['wrapper'] = [];
176 176
         }
177 177
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     {
257 257
         // if this is a relation type field and no corresponding model was specified,
258 258
         // get it from the relation method defined in the main model
259
-        if (isset($column['entity']) && $column['entity'] !== false && ! isset($column['model'])) {
259
+        if (isset($column['entity']) && $column['entity'] !== false && !isset($column['model'])) {
260 260
             $column['model'] = $this->getRelationModel($column['entity']);
261 261
         }
262 262
 
@@ -293,8 +293,7 @@  discard block
 block discarded – undo
293 293
         $columnsArray = $this->columns();
294 294
 
295 295
         if (array_key_exists($targetColumnName, $columnsArray)) {
296
-            $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) :
297
-                array_search($targetColumnName, array_keys($columnsArray)) + 1;
296
+            $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) : array_search($targetColumnName, array_keys($columnsArray)) + 1;
298 297
 
299 298
             $element = array_pop($columnsArray);
300 299
             $beginningPart = array_slice($columnsArray, 0, $targetColumnPosition, true);
@@ -316,7 +315,7 @@  discard block
 block discarded – undo
316 315
     {
317 316
         static $cache = [];
318 317
 
319
-        if (! $this->driverIsSql()) {
318
+        if (!$this->driverIsSql()) {
320 319
             return true;
321 320
         }
322 321
 
@@ -332,7 +331,7 @@  discard block
 block discarded – undo
332 331
     /**
333 332
      * Prepare the column attributes and add it to operation settings.
334 333
      */
335
-    private function prepareAttributesAndAddColumn(array|string $column): CrudColumn
334
+    private function prepareAttributesAndAddColumn(array | string $column): CrudColumn
336 335
     {
337 336
         $column = $this->makeSureColumnHasNeededAttributes($column);
338 337
         $this->addColumnToOperationSettings($column);
Please login to merge, or discard this patch.