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 — master ( 9ac554...83e3b9 )
by Cristian
06:39
created
src/PanelTraits/Search.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function applySearchTerm($searchTerm)
21 21
     {
22
-        return $this->query->where(function ($query) use ($searchTerm) {
22
+        return $this->query->where(function($query) use ($searchTerm) {
23 23
             foreach ($this->getColumns() as $column) {
24
-                if (! isset($column['type'])) {
24
+                if (!isset($column['type'])) {
25 25
                     abort(400, 'Missing column type when trying to apply search term.');
26 26
                 }
27 27
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
                 case 'select':
62 62
                 case 'select_multiple':
63
-                    $query->orWhereHas($column['entity'], function ($q) use ($column, $searchTerm) {
63
+                    $query->orWhereHas($column['entity'], function($q) use ($column, $searchTerm) {
64 64
                         $q->where($column['attribute'], 'like', '%'.$searchTerm.'%');
65 65
                     });
66 66
                     break;
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      */
178 178
     private function renderCellView($view, $column, $entry, $rowNumber = false)
179 179
     {
180
-        if (! view()->exists($view)) {
180
+        if (!view()->exists($view)) {
181 181
             $view = 'crud::columns.text'; // fallback to text column
182 182
         }
183 183
 
Please login to merge, or discard this patch.
src/PanelTraits/Columns.php 1 patch
Spacing   +15 added lines, -16 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     public function addColumn($column)
65 65
     {
66 66
         // if a string was passed, not an array, change it to an array
67
-        if (! is_array($column)) {
67
+        if (!is_array($column)) {
68 68
             $column = ['name' => $column];
69 69
         }
70 70
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $column_with_details = $this->addDefaultLabel($column);
73 73
 
74 74
         // make sure the column has a name
75
-        if (! array_key_exists('name', $column_with_details)) {
75
+        if (!array_key_exists('name', $column_with_details)) {
76 76
             $column_with_details['name'] = 'anonymous_column_'.str_random(5);
77 77
         }
78 78
 
@@ -80,27 +80,27 @@  discard block
 block discarded – undo
80 80
         $columnExistsInDb = $this->hasColumn($this->model->getTable(), $column_with_details['name']);
81 81
 
82 82
         // make sure the column has a type
83
-        if (! array_key_exists('type', $column_with_details)) {
83
+        if (!array_key_exists('type', $column_with_details)) {
84 84
             $column_with_details['type'] = 'text';
85 85
         }
86 86
 
87 87
         // make sure the column has a key
88
-        if (! array_key_exists('key', $column_with_details)) {
88
+        if (!array_key_exists('key', $column_with_details)) {
89 89
             $column_with_details['key'] = $column_with_details['name'];
90 90
         }
91 91
 
92 92
         // make sure the column has a tableColumn boolean
93
-        if (! array_key_exists('tableColumn', $column_with_details)) {
93
+        if (!array_key_exists('tableColumn', $column_with_details)) {
94 94
             $column_with_details['tableColumn'] = $columnExistsInDb ? true : false;
95 95
         }
96 96
 
97 97
         // make sure the column has a orderable boolean
98
-        if (! array_key_exists('orderable', $column_with_details)) {
98
+        if (!array_key_exists('orderable', $column_with_details)) {
99 99
             $column_with_details['orderable'] = $columnExistsInDb ? true : false;
100 100
         }
101 101
 
102 102
         // make sure the column has a searchLogic
103
-        if (! array_key_exists('searchLogic', $column_with_details)) {
103
+        if (!array_key_exists('searchLogic', $column_with_details)) {
104 104
             $column_with_details['searchLogic'] = $columnExistsInDb ? true : false;
105 105
         }
106 106
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         // if this is a relation type field and no corresponding model was specified, get it from the relation method
110 110
         // defined in the main model
111
-        if (isset($column_with_details['entity']) && ! isset($column_with_details['model'])) {
111
+        if (isset($column_with_details['entity']) && !isset($column_with_details['model'])) {
112 112
             $column_with_details['model'] = $this->getRelationModel($column_with_details['entity']);
113 113
         }
114 114
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function makeFirstColumn()
156 156
     {
157
-        if (! $this->columns) {
157
+        if (!$this->columns) {
158 158
             return false;
159 159
         }
160 160
 
@@ -175,8 +175,7 @@  discard block
 block discarded – undo
175 175
         $targetColumnName = is_array($targetColumn) ? $targetColumn['name'] : $targetColumn;
176 176
 
177 177
         if (array_key_exists($targetColumnName, $this->columns)) {
178
-            $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($this->columns)) :
179
-                array_search($targetColumnName, array_keys($this->columns)) + 1;
178
+            $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($this->columns)) : array_search($targetColumnName, array_keys($this->columns)) + 1;
180 179
 
181 180
             $element = array_pop($this->columns);
182 181
             $beginningPart = array_slice($this->columns, 0, $targetColumnPosition, true);
@@ -210,7 +209,7 @@  discard block
 block discarded – undo
210 209
      */
211 210
     public function addDefaultLabel($array)
212 211
     {
213
-        if (! array_key_exists('label', (array) $array) && array_key_exists('name', (array) $array)) {
212
+        if (!array_key_exists('label', (array) $array) && array_key_exists('name', (array) $array)) {
214 213
             $array = array_merge(['label' => ucfirst($this->makeLabel($array['name']))], $array);
215 214
 
216 215
             return $array;
@@ -236,7 +235,7 @@  discard block
 block discarded – undo
236 235
      */
237 236
     public function removeColumns($columns)
238 237
     {
239
-        if (! empty($columns)) {
238
+        if (!empty($columns)) {
240 239
             foreach ($columns as $columnName) {
241 240
                 $this->removeColumn($columnName);
242 241
             }
@@ -257,8 +256,8 @@  discard block
 block discarded – undo
257 256
      */
258 257
     public function remove($entity, $fields)
259 258
     {
260
-        return array_values(array_filter($this->{$entity}, function ($field) use ($fields) {
261
-            return ! in_array($field['name'], (array) $fields);
259
+        return array_values(array_filter($this->{$entity}, function($field) use ($fields) {
260
+            return !in_array($field['name'], (array) $fields);
262 261
         }));
263 262
     }
264 263
 
@@ -303,7 +302,7 @@  discard block
 block discarded – undo
303 302
     {
304 303
         $columns = $this->getColumns();
305 304
 
306
-        return collect($columns)->pluck('entity')->reject(function ($value, $key) {
305
+        return collect($columns)->pluck('entity')->reject(function($value, $key) {
307 306
             return $value == null;
308 307
         })->toArray();
309 308
     }
Please login to merge, or discard this patch.