Completed
Push — master ( db2ff6...dd4af6 )
by Arjay
02:30 queued 01:06
created
src/QueryDataTable.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     protected function prepareQuery()
114 114
     {
115
-        if (! $this->prepared) {
115
+        if (!$this->prepared) {
116 116
             $this->totalRecords = $this->totalCount();
117 117
 
118 118
             if ($this->totalRecords) {
@@ -203,10 +203,10 @@  discard block
 block discarded – undo
203 203
     {
204 204
         $builder = clone $this->query;
205 205
 
206
-        if (! $this->isComplexQuery($builder)) {
206
+        if (!$this->isComplexQuery($builder)) {
207 207
             $row_count = $this->wrap('row_count');
208 208
             $builder->select($this->connection->raw("'1' as {$row_count}"));
209
-            if (! $this->keepSelectBindings) {
209
+            if (!$this->keepSelectBindings) {
210 210
                 $builder->setBindings([], 'select');
211 211
             }
212 212
         }
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
         foreach ($columns as $index => $column) {
281 281
             $column = $this->getColumnName($index);
282 282
 
283
-            if (! $this->request->isColumnSearchable($index) || $this->isBlacklisted($column) && ! $this->hasFilterColumn($column)) {
283
+            if (!$this->request->isColumnSearchable($index) || $this->isBlacklisted($column) && !$this->hasFilterColumn($column)) {
284 284
                 continue;
285 285
             }
286 286
 
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
      */
358 358
     protected function getBaseQueryBuilder($instance = null)
359 359
     {
360
-        if (! $instance) {
360
+        if (!$instance) {
361 361
             $instance = $this->query;
362 362
         }
363 363
 
@@ -406,18 +406,18 @@  discard block
 block discarded – undo
406 406
     {
407 407
         switch ($this->connection->getDriverName()) {
408 408
             case 'oracle':
409
-                $sql = ! $this->config->isCaseInsensitive()
409
+                $sql = !$this->config->isCaseInsensitive()
410 410
                     ? 'REGEXP_LIKE( ' . $column . ' , ? )'
411 411
                     : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )';
412 412
                 break;
413 413
 
414 414
             case 'pgsql':
415 415
                 $column = $this->castColumn($column);
416
-                $sql    = ! $this->config->isCaseInsensitive() ? $column . ' ~ ?' : $column . ' ~* ? ';
416
+                $sql    = !$this->config->isCaseInsensitive() ? $column . ' ~ ?' : $column . ' ~* ? ';
417 417
                 break;
418 418
 
419 419
             default:
420
-                $sql = ! $this->config->isCaseInsensitive()
420
+                $sql = !$this->config->isCaseInsensitive()
421 421
                     ? $column . ' REGEXP ?'
422 422
                     : 'LOWER(' . $column . ') REGEXP ?';
423 423
                 $keyword = Str::lower($keyword);
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
     {
478 478
         if (strpos($column, '.') === false) {
479 479
             $q = $this->getBaseQueryBuilder($query);
480
-            if (! $q->from instanceof Expression) {
480
+            if (!$q->from instanceof Expression) {
481 481
                 $column = $q->from . '.' . $column;
482 482
             }
483 483
         }
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
                 return $orderable;
635 635
             })
636 636
             ->reject(function ($orderable) {
637
-                return $this->isBlacklisted($orderable['name']) && ! $this->hasOrderColumn($orderable['name']);
637
+                return $this->isBlacklisted($orderable['name']) && !$this->hasOrderColumn($orderable['name']);
638 638
             })
639 639
             ->each(function ($orderable) {
640 640
                 $column = $this->resolveRelationColumn($orderable['name']);
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
                     return $this->getColumnName($index);
703 703
                 })
704 704
                 ->reject(function ($column) {
705
-                    return $this->isBlacklisted($column) && ! $this->hasFilterColumn($column);
705
+                    return $this->isBlacklisted($column) && !$this->hasFilterColumn($column);
706 706
                 })
707 707
                 ->each(function ($column) use ($keyword, $query) {
708 708
                     if ($this->hasFilterColumn($column)) {
Please login to merge, or discard this patch.
src/EloquentDataTable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
      */
123 123
     protected function isNotEagerLoaded($relation)
124 124
     {
125
-        return ! $relation
126
-            || ! array_key_exists($relation, $this->query->getEagerLoads())
125
+        return !$relation
126
+            || !array_key_exists($relation, $this->query->getEagerLoads())
127 127
             || $relation === $this->query->getModel()->getTable();
128 128
     }
129 129
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
             $joins[] = $join->table;
197 197
         }
198 198
 
199
-        if (! in_array($table, $joins)) {
199
+        if (!in_array($table, $joins)) {
200 200
             $this->getBaseQueryBuilder()->join($table, $foreign, '=', $other, $type);
201 201
         }
202 202
     }
Please login to merge, or discard this patch.