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 — master ( 91a809...708418 )
by Cristian
14:31 queued 06:40
created
src/app/Library/CrudPanel/Traits/ColumnsProtectedMethods.php 1 patch
Spacing   +10 added lines, -11 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
         // check if it's a method on the model,
37 37
         // that means it's a relationship
38
-        if (! $columnExistsInDb && method_exists($this->model, $column['name'])) {
38
+        if (!$columnExistsInDb && method_exists($this->model, $column['name'])) {
39 39
             $relatedModel = $this->model->{$column['name']}()->getRelated();
40 40
             $column['entity'] = $column['name'];
41 41
             $column['model'] = get_class($relatedModel);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         // make sure the column has a priority in terms of visibility
60 60
         // if no priority has been defined, use the order in the array plus one
61
-        if (! array_key_exists('priority', $column)) {
61
+        if (!array_key_exists('priority', $column)) {
62 62
             $position_in_columns_array = (int) array_search($column['key'], array_keys($this->columns()));
63 63
             $allColumns[$column['key']]['priority'] = $position_in_columns_array + 1;
64 64
         }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $column = ['name' => $column];
80 80
         }
81 81
 
82
-        if (is_array($column) && ! isset($column['name'])) {
82
+        if (is_array($column) && !isset($column['name'])) {
83 83
             $column['name'] = 'anonymous_column_'.Str::random(5);
84 84
         }
85 85
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     protected function makeSureColumnHasLabel($column)
97 97
     {
98
-        if (! isset($column['label'])) {
98
+        if (!isset($column['label'])) {
99 99
             $column['label'] = mb_ucfirst($this->makeLabel($column['name']));
100 100
         }
101 101
 
@@ -112,11 +112,11 @@  discard block
 block discarded – undo
112 112
     {
113 113
         // if it's got a method on the model with the same name
114 114
         // then it should be a relationship
115
-        if (! isset($column['type']) && method_exists($this->model, $column['name'])) {
115
+        if (!isset($column['type']) && method_exists($this->model, $column['name'])) {
116 116
             $column['type'] = 'relationship';
117 117
         }
118 118
 
119
-        if (! isset($column['type'])) {
119
+        if (!isset($column['type'])) {
120 120
             $column['type'] = 'text';
121 121
         }
122 122
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     protected function makeSureColumnHasKey($column)
135 135
     {
136
-        if (! isset($column['key'])) {
136
+        if (!isset($column['key'])) {
137 137
             $column['key'] = str_replace('.', '__', $column['name']);
138 138
         }
139 139
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     protected function makeSureColumnHasWrapper($column)
153 153
     {
154
-        if (! isset($column['wrapper'])) {
154
+        if (!isset($column['wrapper'])) {
155 155
             $column['wrapper'] = [];
156 156
         }
157 157
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     {
170 170
         // if this is a relation type field and no corresponding model was specified,
171 171
         // get it from the relation method defined in the main model
172
-        if (isset($column['entity']) && ! isset($column['model'])) {
172
+        if (isset($column['entity']) && !isset($column['model'])) {
173 173
             $column['model'] = $this->getRelationModel($column['entity']);
174 174
         }
175 175
 
@@ -190,8 +190,7 @@  discard block
 block discarded – undo
190 190
         $columnsArray = $this->columns();
191 191
 
192 192
         if (array_key_exists($targetColumnName, $columnsArray)) {
193
-            $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) :
194
-                array_search($targetColumnName, array_keys($columnsArray)) + 1;
193
+            $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) : array_search($targetColumnName, array_keys($columnsArray)) + 1;
195 194
 
196 195
             $element = array_pop($columnsArray);
197 196
             $beginningPart = array_slice($columnsArray, 0, $targetColumnPosition, true);
Please login to merge, or discard this patch.