@@ -450,7 +450,7 @@ |
||
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 | { |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | switch ($this->connection->getDriverName()) { |
612 | 612 | case 'oracle': |
613 | 613 | $sql = !$this->config |
614 | - ->isCaseInsensitive() ? 'REGEXP_LIKE( ' . $column . ' , ? )' : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )'; |
|
614 | + ->isCaseInsensitive() ? 'REGEXP_LIKE( ' . $column . ' , ? )' : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )'; |
|
615 | 615 | break; |
616 | 616 | |
617 | 617 | case 'pgsql': |
@@ -620,7 +620,7 @@ discard block |
||
620 | 620 | |
621 | 621 | default: |
622 | 622 | $sql = !$this->config |
623 | - ->isCaseInsensitive() ? $column . ' REGEXP ?' : 'LOWER(' . $column . ') REGEXP ?'; |
|
623 | + ->isCaseInsensitive() ? $column . ' REGEXP ?' : 'LOWER(' . $column . ') REGEXP ?'; |
|
624 | 624 | $keyword = Str::lower($keyword); |
625 | 625 | } |
626 | 626 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | }); |
64 | 64 | |
65 | 65 | $this->app->alias('datatables', Datatables::class); |
66 | - $this->app->singleton('datatables', function() { |
|
66 | + $this->app->singleton('datatables', function () { |
|
67 | 67 | return new Datatables; |
68 | 68 | }); |
69 | 69 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * |
14 | 14 | * @param array $output |
15 | 15 | * @param mixed $transformer |
16 | - * @param mixed $serializer |
|
16 | + * @param string|null $serializer |
|
17 | 17 | * @return array |
18 | 18 | */ |
19 | 19 | public function transform(array $output, $transformer, $serializer = null) |