Completed
Push — master ( 01f863...e04cdd )
by Arjay
11:27
created
src/Processors/DataProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
     {
238 238
         $arrayDot = array_filter(array_dot($row));
239 239
         foreach ($arrayDot as $key => $value) {
240
-            if (! in_array($key, $this->rawColumns)) {
240
+            if (!in_array($key, $this->rawColumns)) {
241 241
                 $arrayDot[$key] = e($value);
242 242
             }
243 243
         }
Please login to merge, or discard this patch.
src/Engines/BaseEngine.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      */
315 315
     public function getQueryBuilder($instance = null)
316 316
     {
317
-        if (! $instance) {
317
+        if (!$instance) {
318 318
             $instance = $this->query;
319 319
         }
320 320
 
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
             $this->totalRecords = $this->totalCount();
509 509
 
510 510
             if ($this->totalRecords) {
511
-                $this->orderRecords(! $orderFirst);
511
+                $this->orderRecords(!$orderFirst);
512 512
                 $this->filterRecords();
513 513
                 $this->orderRecords($orderFirst);
514 514
                 $this->paginate();
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
      */
542 542
     protected function orderRecords($skip)
543 543
     {
544
-        if (! $skip) {
544
+        if (!$skip) {
545 545
             $this->ordering();
546 546
         }
547 547
     }
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
      */
573 573
     protected function paginate()
574 574
     {
575
-        if ($this->request->isPaginationable() && ! $this->skipPaging) {
575
+        if ($this->request->isPaginationable() && !$this->skipPaging) {
576 576
             $this->paging();
577 577
         }
578 578
     }
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
      */
873 873
     public function pushToBlacklist($column)
874 874
     {
875
-        if (! $this->isBlacklisted($column)) {
875
+        if (!$this->isBlacklisted($column)) {
876 876
             array_push($this->columnDef['blacklist'], $column);
877 877
         }
878 878
 
@@ -1051,7 +1051,7 @@  discard block
 block discarded – undo
1051 1051
     {
1052 1052
         $matches = explode(' as ', Str::lower($str));
1053 1053
 
1054
-        if (! empty($matches)) {
1054
+        if (!empty($matches)) {
1055 1055
             if ($wantsAlias) {
1056 1056
                 return array_pop($matches);
1057 1057
             } else {
Please login to merge, or discard this patch.
src/Engines/QueryBuilderEngine.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         $myQuery = clone $this->query;
100 100
         // if its a normal query ( no union, having and distinct word )
101 101
         // replace the select with static text to improve performance
102
-        if (! Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct', 'order by', 'group by'])) {
102
+        if (!Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct', 'order by', 'group by'])) {
103 103
             $row_count = $this->wrap('row_count');
104 104
             $myQuery->select($this->connection->raw("'1' as {$row_count}"));
105 105
         }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 
166 166
                 foreach ($this->request->searchableColumnIndex() as $index) {
167 167
                     $columnName = $this->getColumnName($index);
168
-                    if ($this->isBlacklisted($columnName) && ! $this->hasCustomFilter($columnName)) {
168
+                    if ($this->isBlacklisted($columnName) && !$this->hasCustomFilter($columnName)) {
169 169
                         continue;
170 170
                     }
171 171
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                         $columnDef = $this->columnDef['filter'][$columnName];
175 175
                         // check if global search should be applied for the specific column
176 176
                         $applyGlobalSearch = count($columnDef['parameters']) == 0 || end($columnDef['parameters']) !== false;
177
-                        if (! $applyGlobalSearch) {
177
+                        if (!$applyGlobalSearch) {
178 178
                             continue;
179 179
                         }
180 180
 
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
                 $q = $query;
428 428
             }
429 429
 
430
-            if (! $q->from instanceof Expression) {
430
+            if (!$q->from instanceof Expression) {
431 431
                 // Get table from query and add it.
432 432
                 $column = $q->from . '.' . $column;
433 433
             }
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
         $columns = $this->request->columns();
487 487
 
488 488
         foreach ($columns as $index => $column) {
489
-            if (! $this->request->isColumnSearchable($index)) {
489
+            if (!$this->request->isColumnSearchable($index)) {
490 490
                 continue;
491 491
             }
492 492
 
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
             $joins[] = $join->table;
621 621
         }
622 622
 
623
-        if (! in_array($table, $joins)) {
623
+        if (!in_array($table, $joins)) {
624 624
             $this->getQueryBuilder()->leftJoin($table, $foreign, '=', $other);
625 625
         }
626 626
     }
@@ -651,13 +651,13 @@  discard block
 block discarded – undo
651 651
     protected function regexColumnSearch($column, $keyword)
652 652
     {
653 653
         if ($this->isOracleSql()) {
654
-            $sql = ! $this->isCaseInsensitive() ? 'REGEXP_LIKE( ' . $column . ' , ? )' : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )';
654
+            $sql = !$this->isCaseInsensitive() ? 'REGEXP_LIKE( ' . $column . ' , ? )' : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )';
655 655
             $this->query->whereRaw($sql, [$keyword]);
656 656
         } elseif ($this->database == 'pgsql') {
657
-            $sql = ! $this->isCaseInsensitive() ? $column . ' ~ ?' : $column . ' ~* ? ';
657
+            $sql = !$this->isCaseInsensitive() ? $column . ' ~ ?' : $column . ' ~* ? ';
658 658
             $this->query->whereRaw($sql, [$keyword]);
659 659
         } else {
660
-            $sql = ! $this->isCaseInsensitive() ? $column . ' REGEXP ?' : 'LOWER(' . $column . ') REGEXP ?';
660
+            $sql = !$this->isCaseInsensitive() ? $column . ' REGEXP ?' : 'LOWER(' . $column . ') REGEXP ?';
661 661
             $this->query->whereRaw($sql, [Str::lower($keyword)]);
662 662
         }
663 663
     }
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
         foreach ($this->request->orderableColumns() as $orderable) {
679 679
             $column = $this->getColumnName($orderable['column'], true);
680 680
 
681
-            if ($this->isBlacklisted($column) && ! $this->hasCustomOrder($column)) {
681
+            if ($this->isBlacklisted($column) && !$this->hasCustomOrder($column)) {
682 682
                 continue;
683 683
             }
684 684
 
@@ -709,7 +709,7 @@  discard block
 block discarded – undo
709 709
                         $isMorphToMany = false;
710 710
                         foreach (explode('.', $relation) as $eachRelation) {
711 711
                             $relationship = $lastQuery->getRelation($eachRelation);
712
-                            if (! ($relationship instanceof MorphToMany)) {
712
+                            if (!($relationship instanceof MorphToMany)) {
713 713
                                 $isMorphToMany = true;
714 714
                             }
715 715
                             $lastQuery = $relationship;
Please login to merge, or discard this patch.
src/Engines/CollectionEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 
190 190
                 foreach ($this->request->searchableColumnIndex() as $index) {
191 191
                     $column = $this->getColumnName($index);
192
-                    if (! $value = Arr::get($data, $column)) {
192
+                    if (!$value = Arr::get($data, $column)) {
193 193
                         continue;
194 194
                     }
195 195
                     
Please login to merge, or discard this patch.