@@ -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 | { |
@@ -88,9 +88,9 @@ |
||
| 88 | 88 | protected function prepareQuery() |
| 89 | 89 | { |
| 90 | 90 | if (!$this->prepared) { |
| 91 | - if($this->totalRecords===null) |
|
| 91 | + if ($this->totalRecords === null) |
|
| 92 | 92 | $this->totalRecords = $this->totalCount(); |
| 93 | - if ($this->totalRecords!==null) { |
|
| 93 | + if ($this->totalRecords !== null) { |
|
| 94 | 94 | $this->filterRecords(); |
| 95 | 95 | $this->ordering(); |
| 96 | 96 | $this->paginate(); |
@@ -88,8 +88,9 @@ |
||
| 88 | 88 | protected function prepareQuery() |
| 89 | 89 | { |
| 90 | 90 | if (!$this->prepared) { |
| 91 | - if($this->totalRecords===null) |
|
| 92 | - $this->totalRecords = $this->totalCount(); |
|
| 91 | + if($this->totalRecords===null) { |
|
| 92 | + $this->totalRecords = $this->totalCount(); |
|
| 93 | + } |
|
| 93 | 94 | if ($this->totalRecords!==null) { |
| 94 | 95 | $this->filterRecords(); |
| 95 | 96 | $this->ordering(); |