Completed
Push — master ( 22bc8c...4e6ac6 )
by Arjay
02:26
created
src/Engines/QueryBuilderEngine.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $myQuery = clone $this->query;
93 93
         // if its a normal query ( no union, having and distinct word )
94 94
         // replace the select with static text to improve performance
95
-        if (! Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct', 'order by', 'group by'])) {
95
+        if (!Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct', 'order by', 'group by'])) {
96 96
             $row_count = $this->connection->getQueryGrammar()->wrap('row_count');
97 97
             $myQuery->select($this->connection->raw("'1' as {$row_count}"));
98 98
         }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                         $columnDef = $this->columnDef['filter'][$columnName];
125 125
                         // check if global search should be applied for the specific column
126 126
                         $applyGlobalSearch = count($columnDef['parameters']) == 0 || end($columnDef['parameters']) !== false;
127
-                        if (! $applyGlobalSearch) {
127
+                        if (!$applyGlobalSearch) {
128 128
                             continue;
129 129
                         }
130 130
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
         $columns = $this->request->get('columns', []);
297 297
 
298 298
         foreach ($columns as $index => $column) {
299
-            if (! $this->request->isColumnSearchable($index)) {
299
+            if (!$this->request->isColumnSearchable($index)) {
300 300
                 continue;
301 301
             }
302 302
 
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
                 $keyword         = $this->getSearchKeyword($index);
327 327
                 $caseInsensitive = $this->isCaseInsensitive();
328 328
 
329
-                if (! $caseInsensitive) {
329
+                if (!$caseInsensitive) {
330 330
                     $column = strstr($column, '(') ? $this->connection->raw($column) : $column;
331 331
                 }
332 332
 
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
             $joins[] = $join->table;
460 460
         }
461 461
 
462
-        if (! in_array($table, $joins)) {
462
+        if (!in_array($table, $joins)) {
463 463
             $this->getQueryBuilder()
464 464
                  ->leftJoin($table, $foreign, '=', $other);
465 465
         }
Please login to merge, or discard this patch.