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
Pull Request — master (#3826)
by
unknown
15:58
created
src/app/Library/CrudPanel/Traits/ColumnsProtectedMethods.php 1 patch
Spacing   +12 added lines, -13 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             $column = ['name' => $column];
50 50
         }
51 51
 
52
-        if (is_array($column) && ! isset($column['name'])) {
52
+        if (is_array($column) && !isset($column['name'])) {
53 53
             $column['name'] = 'anonymous_column_'.Str::random(5);
54 54
         }
55 55
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function makeSureColumnHasLabel($column)
67 67
     {
68
-        if (! isset($column['label'])) {
68
+        if (!isset($column['label'])) {
69 69
             $column['label'] = mb_ucfirst($this->makeLabel($column['name']));
70 70
         }
71 71
 
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $could_be_relation = isset($column['entity']) && $column['entity'] !== false;
84 84
 
85
-        if (! isset($column['type']) && $could_be_relation) {
85
+        if (!isset($column['type']) && $could_be_relation) {
86 86
             $column['type'] = 'relationship';
87 87
         }
88 88
 
89
-        if (! isset($column['type'])) {
89
+        if (!isset($column['type'])) {
90 90
             $column['type'] = 'text';
91 91
         }
92 92
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     protected function makeSureColumnHasKey($column)
105 105
     {
106
-        if (! isset($column['key'])) {
106
+        if (!isset($column['key'])) {
107 107
             $column['key'] = str_replace('.', '__', $column['name']);
108 108
         }
109 109
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     protected function makeSureColumnHasWrapper($column)
123 123
     {
124
-        if (! isset($column['wrapper'])) {
124
+        if (!isset($column['wrapper'])) {
125 125
             $column['wrapper'] = [];
126 126
         }
127 127
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             // if the first part of the string exists as method,
147 147
             // it is a relationship
148 148
             if (method_exists($this->model, $possibleMethodName)) {
149
-                if (! $this->makeSureMethodDoesNotRequireParameters($this->model, $possibleMethodName)) {
149
+                if (!$this->makeSureMethodDoesNotRequireParameters($this->model, $possibleMethodName)) {
150 150
                     $column['entity'] = false;
151 151
                 }
152 152
                 $column['entity'] = isset($column['entity']) ? $column['entity'] : $column['name'];
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
         // if there's a method on the model with this name
159 159
         if (method_exists($this->model, $column['name'])) {
160
-            if (! $this->makeSureMethodDoesNotRequireParameters($this->model, $column['name'])) {
160
+            if (!$this->makeSureMethodDoesNotRequireParameters($this->model, $column['name'])) {
161 161
                 $column['entity'] = false;
162 162
             }
163 163
             $column['entity'] = isset($column['entity']) ? $column['entity'] : $column['name'];
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             $possibleMethodName = Str::replaceLast('_id', '', $column['name']);
172 172
 
173 173
             if (method_exists($this->model, $possibleMethodName)) {
174
-                if (! $this->makeSureMethodDoesNotRequireParameters($this->model, $possibleMethodName)) {
174
+                if (!$this->makeSureMethodDoesNotRequireParameters($this->model, $possibleMethodName)) {
175 175
                     $column['entity'] = false;
176 176
                 }
177 177
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     {
214 214
         // if this is a relation type field and no corresponding model was specified,
215 215
         // get it from the relation method defined in the main model
216
-        if (isset($column['entity']) && $column['entity'] !== false && ! isset($column['model'])) {
216
+        if (isset($column['entity']) && $column['entity'] !== false && !isset($column['model'])) {
217 217
             $column['model'] = $this->getRelationModel($column['entity']);
218 218
         }
219 219
 
@@ -234,8 +234,7 @@  discard block
 block discarded – undo
234 234
         $columnsArray = $this->columns();
235 235
 
236 236
         if (array_key_exists($targetColumnName, $columnsArray)) {
237
-            $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) :
238
-                array_search($targetColumnName, array_keys($columnsArray)) + 1;
237
+            $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) : array_search($targetColumnName, array_keys($columnsArray)) + 1;
239 238
 
240 239
             $element = array_pop($columnsArray);
241 240
             $beginningPart = array_slice($columnsArray, 0, $targetColumnPosition, true);
@@ -258,7 +257,7 @@  discard block
 block discarded – undo
258 257
     {
259 258
         static $cache = [];
260 259
 
261
-        if (! $this->driverIsSql()) {
260
+        if (!$this->driverIsSql()) {
262 261
             return true;
263 262
         }
264 263
 
Please login to merge, or discard this patch.