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 — always-use-the-selectRaw-expre... ( d7f3ff )
by Pedro
19:32
created
src/app/Library/CrudPanel/Traits/Query.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function customOrderBy($column, $columnDirection = 'asc')
101 101
     {
102
-        if (! isset($column['orderLogic'])) {
102
+        if (!isset($column['orderLogic'])) {
103 103
             return $this->query;
104 104
         }
105 105
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function getTotalQueryCount()
191 191
     {
192
-        if (! $this->getOperationSetting('showEntryCount')) {
192
+        if (!$this->getOperationSetting('showEntryCount')) {
193 193
             return 0;
194 194
         }
195 195
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     private function getCountFromQuery(Builder $query)
230 230
     {
231
-        if (! $this->driverIsSql()) {
231
+        if (!$this->driverIsSql()) {
232 232
             return $query->count();
233 233
         }
234 234
 
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
         // so we just store them and re-use them in the sub-query too.
247 247
         $expressionColumns = [];
248 248
 
249
-        foreach($crudQuery->columns as $column) {
250
-            if(!is_string($column) && is_a($column, 'Illuminate\Database\Query\Expression')) {
249
+        foreach ($crudQuery->columns as $column) {
250
+            if (!is_string($column) && is_a($column, 'Illuminate\Database\Query\Expression')) {
251 251
                 $expressionColumns[] = $column;
252 252
             }
253 253
         }
@@ -261,11 +261,11 @@  discard block
 block discarded – undo
261 261
         $subQuery->select($modelTable.'.'.$this->model->getKeyName());
262 262
 
263 263
         // in case there are raw expressions we need to add them too.
264
-        foreach($expressionColumns as $expression) {
264
+        foreach ($expressionColumns as $expression) {
265 265
             $subQuery->selectRaw($expression);
266 266
         }
267 267
         
268
-        $outerQuery = $outerQuery->fromSub($subQuery, str_replace('.','_',$modelTable).'_aggregator');
268
+        $outerQuery = $outerQuery->fromSub($subQuery, str_replace('.', '_', $modelTable).'_aggregator');
269 269
 
270 270
         return $outerQuery->cursor()->first()->total_rows;
271 271
     }
Please login to merge, or discard this patch.