Completed
Push — master ( 5f2907...f1eea1 )
by Arjay
01:54
created
src/Processors/RowProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
      */
42 42
     public function rowValue($attribute, $template)
43 43
     {
44
-        if (! empty($template)) {
45
-            if (! is_callable($template) && Arr::get($this->data, $template)) {
44
+        if (!empty($template)) {
45
+            if (!is_callable($template) && Arr::get($this->data, $template)) {
46 46
                 $this->data[$attribute] = Arr::get($this->data, $template);
47 47
             } else {
48 48
                 $this->data[$attribute] = Helper::compileContent($template, $this->data, $this->row);
Please login to merge, or discard this patch.
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/QueryDataTable.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -450,7 +450,7 @@
 block discarded – undo
450 450
     /**
451 451
      * Prepare count query builder.
452 452
      *
453
-     * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder
453
+     * @return string
454 454
      */
455 455
     protected function prepareCountQuery()
456 456
     {
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function prepareQuery()
100 100
     {
101
-        if (! $this->prepared) {
101
+        if (!$this->prepared) {
102 102
             $this->totalRecords = $this->totalCount();
103 103
 
104 104
             if ($this->totalRecords) {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         $builder = clone $this->query;
147 147
 
148
-        if (! $this->isComplexQuery($builder)) {
148
+        if (!$this->isComplexQuery($builder)) {
149 149
             $row_count = $this->wrap('row_count');
150 150
             $builder->select($this->connection->raw("'1' as {$row_count}"));
151 151
         }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
         $columns = $this->request->columns();
218 218
 
219 219
         foreach ($columns as $index => $column) {
220
-            if (! $this->request->isColumnSearchable($index)) {
220
+            if (!$this->request->isColumnSearchable($index)) {
221 221
                 continue;
222 222
             }
223 223
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      */
297 297
     protected function getBaseQueryBuilder($instance = null)
298 298
     {
299
-        if (! $instance) {
299
+        if (!$instance) {
300 300
             $instance = $this->query;
301 301
         }
302 302
 
@@ -345,18 +345,18 @@  discard block
 block discarded – undo
345 345
     {
346 346
         switch ($this->connection->getDriverName()) {
347 347
             case 'oracle':
348
-                $sql = ! $this->config->isCaseInsensitive()
348
+                $sql = !$this->config->isCaseInsensitive()
349 349
                     ? 'REGEXP_LIKE( ' . $column . ' , ? )'
350 350
                     : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )';
351 351
                 break;
352 352
 
353 353
             case 'pgsql':
354 354
                 $column = $this->castColumn($column);
355
-                $sql    = ! $this->config->isCaseInsensitive() ? $column . ' ~ ?' : $column . ' ~* ? ';
355
+                $sql    = !$this->config->isCaseInsensitive() ? $column . ' ~ ?' : $column . ' ~* ? ';
356 356
                 break;
357 357
 
358 358
             default:
359
-                $sql = ! $this->config->isCaseInsensitive()
359
+                $sql = !$this->config->isCaseInsensitive()
360 360
                     ? $column . ' REGEXP ?'
361 361
                     : 'LOWER(' . $column . ') REGEXP ?';
362 362
                 $keyword = Str::lower($keyword);
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
     {
417 417
         if (strpos($column, '.') === false) {
418 418
             $q = $this->getBaseQueryBuilder($query);
419
-            if (! $q->from instanceof Expression) {
419
+            if (!$q->from instanceof Expression) {
420 420
                 $column = $q->from . '.' . $column;
421 421
             }
422 422
         }
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
                 return $orderable;
574 574
             })
575 575
             ->reject(function ($orderable) {
576
-                return $this->isBlacklisted($orderable['name']) && ! $this->hasOrderColumn($orderable['name']);
576
+                return $this->isBlacklisted($orderable['name']) && !$this->hasOrderColumn($orderable['name']);
577 577
             })
578 578
             ->each(function ($orderable) {
579 579
                 $column = $this->resolveRelationColumn($orderable['name']);
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
                     return $this->getColumnName($index);
642 642
                 })
643 643
                 ->reject(function ($column) {
644
-                    return $this->isBlacklisted($column) && ! $this->hasFilterColumn($column);
644
+                    return $this->isBlacklisted($column) && !$this->hasFilterColumn($column);
645 645
                 })
646 646
                 ->each(function ($column) use ($keyword, $query) {
647 647
                     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
-            || ! in_array($relation, array_keys($this->query->getEagerLoads()))
125
+        return !$relation
126
+            || !in_array($relation, array_keys($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.
src/lumen.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('config_path')) {
3
+if (!function_exists('config_path')) {
4 4
     /**
5 5
      * Get the configuration path.
6 6
      *
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     }
14 14
 }
15 15
 
16
-if (! function_exists('public_path')) {
16
+if (!function_exists('public_path')) {
17 17
     /**
18 18
      * Return the path to public dir.
19 19
      *
Please login to merge, or discard this patch.
src/helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('datatables')) {
3
+if (!function_exists('datatables')) {
4 4
     /**
5 5
      * Helper to make a new DataTable instance from source.
6 6
      * Or return the factory if source is not set.
Please login to merge, or discard this patch.
src/Utilities/Request.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function orderableColumns()
92 92
     {
93
-        if (! $this->isOrderable()) {
93
+        if (!$this->isOrderable()) {
94 94
             return [];
95 95
         }
96 96
 
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
      */
221 221
     public function isPaginationable()
222 222
     {
223
-        return ! is_null($this->request->input('start')) &&
224
-            ! is_null($this->request->input('length')) &&
223
+        return !is_null($this->request->input('start')) &&
224
+            !is_null($this->request->input('length')) &&
225 225
             $this->request->input('length') != -1;
226 226
     }
227 227
 }
Please login to merge, or discard this patch.
src/DataTableAbstract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
      */
429 429
     public function pushToBlacklist($column)
430 430
     {
431
-        if (! $this->isBlacklisted($column)) {
431
+        if (!$this->isBlacklisted($column)) {
432 432
             $this->columnDef['blacklist'][] = $column;
433 433
         }
434 434
 
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
      */
604 604
     protected function paginate()
605 605
     {
606
-        if ($this->request->isPaginationable() && ! $this->skipPaging) {
606
+        if ($this->request->isPaginationable() && !$this->skipPaging) {
607 607
             $this->paging();
608 608
         }
609 609
     }
Please login to merge, or discard this patch.
src/DataTables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
      */
135 135
     public function getHtmlBuilder()
136 136
     {
137
-        if (! class_exists('\Yajra\DataTables\Html\Builder')) {
137
+        if (!class_exists('\Yajra\DataTables\Html\Builder')) {
138 138
             throw new \Exception('Please install yajra/laravel-datatables-html to be able to use this function.');
139 139
         }
140 140
 
Please login to merge, or discard this patch.