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 — separate-responsive-controls-f... ( e21722...a08eeb )
by Pedro
22:51 queued 08:05
created
src/app/Library/CrudPanel/Traits/Search.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function applySearchTerm($searchTerm)
24 24
     {
25
-        return $this->query->where(function ($query) use ($searchTerm) {
25
+        return $this->query->where(function($query) use ($searchTerm) {
26 26
             foreach ($this->columns() as $column) {
27
-                if (! isset($column['type'])) {
27
+                if (!isset($column['type'])) {
28 28
                     abort(500, 'Missing column type when trying to apply search term.', ['developer-error-exception']);
29 29
                 }
30 30
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
                 case 'select':
86 86
                 case 'select_multiple':
87
-                    $query->orWhereHas($column['entity'], function ($q) use ($column, $searchTerm, $searchOperator) {
87
+                    $query->orWhereHas($column['entity'], function($q) use ($column, $searchTerm, $searchOperator) {
88 88
                         $q->where($this->getColumnWithTableNamePrefixed($q, $column['attribute']), $searchOperator, '%'.$searchTerm.'%');
89 89
                     });
90 90
                     break;
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                 $column_direction = (strtolower((string) $order['dir']) == 'asc' ? 'ASC' : 'DESC');
109 109
                 $column = $this->findColumnById($column_number);
110 110
 
111
-                if ($column['tableColumn'] && ! isset($column['orderLogic'])) {
111
+                if ($column['tableColumn'] && !isset($column['orderLogic'])) {
112 112
                     if (method_exists($this->model, 'translationEnabled') &&
113 113
                         $this->model->translationEnabled() &&
114 114
                         $this->model->isTranslatableAttribute($column['name']) &&
@@ -136,12 +136,12 @@  discard block
 block discarded – undo
136 136
         $key = $this->model->getKeyName();
137 137
         $groupBy = $this->query->toBase()->groups;
138 138
 
139
-        $hasOrderByPrimaryKey = collect($orderBy)->some(function ($item) use ($key, $table) {
139
+        $hasOrderByPrimaryKey = collect($orderBy)->some(function($item) use ($key, $table) {
140 140
             return (isset($item['column']) && $item['column'] === $key)
141 141
                 || (isset($item['sql']) && str_contains($item['sql'], "$table.$key"));
142 142
         });
143 143
 
144
-        if (! $hasOrderByPrimaryKey && empty($groupBy)) {
144
+        if (!$hasOrderByPrimaryKey && empty($groupBy)) {
145 145
             $this->orderByWithPrefix($key, 'DESC');
146 146
         }
147 147
     }
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
             $row_items[0] = $details_row_button.$row_items[0];
290 290
         }
291 291
 
292
-        if($this->getResponsiveTable()) {
292
+        if ($this->getResponsiveTable()) {
293 293
             $responsiveTableTrigger = '<div class="dtr-control d-inline">';
294 294
             $row_items[0] = $responsiveTableTrigger.$row_items[0];
295 295
         }
@@ -326,13 +326,13 @@  discard block
 block discarded – undo
326 326
         if (isset($column['type'])) {
327 327
             // create a list of paths to column blade views
328 328
             // including the configured view_namespaces
329
-            $columnPaths = array_map(function ($item) use ($column) {
329
+            $columnPaths = array_map(function($item) use ($column) {
330 330
                 return $item.'.'.$column['type'];
331 331
             }, ViewNamespaces::getFor('columns'));
332 332
 
333 333
             // but always fall back to the stock 'text' column
334 334
             // if a view doesn't exist
335
-            if (! in_array('crud::columns.text', $columnPaths)) {
335
+            if (!in_array('crud::columns.text', $columnPaths)) {
336 336
                 $columnPaths[] = 'crud::columns.text';
337 337
             }
338 338
 
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
      */
372 372
     private function renderCellView($view, $column, $entry, $rowNumber = false)
373 373
     {
374
-        if (! view()->exists($view)) {
374
+        if (!view()->exists($view)) {
375 375
             $view = 'crud::columns.text'; // fallback to text column
376 376
         }
377 377
 
Please login to merge, or discard this patch.