@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Copyright (c) Phauthentic (https://github.com/Phauthentic) |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Copyright (c) Phauthentic (https://github.com/Phauthentic) |
| 5 | 5 | * |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | * @link https://github.com/Phauthentic |
| 11 | 11 | * @license https://opensource.org/licenses/mit-license.php MIT License |
| 12 | 12 | */ |
| 13 | -declare(strict_types = 1); |
|
| 13 | +declare(strict_types=1); |
|
| 14 | 14 | |
| 15 | 15 | namespace Phauthentic\Pagination\Paginator; |
| 16 | 16 | |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | * @link https://github.com/Phauthentic |
| 11 | 11 | * @license https://opensource.org/licenses/mit-license.php MIT License |
| 12 | 12 | */ |
| 13 | -declare(strict_types = 1); |
|
| 13 | +declare(strict_types=1); |
|
| 14 | 14 | |
| 15 | 15 | namespace Phauthentic\Pagination\Paginator; |
| 16 | 16 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Copyright (c) Phauthentic (https://github.com/Phauthentic) |
| 5 | 5 | * |
@@ -52,12 +52,12 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | $countQuery = clone $repository; |
| 54 | 54 | $countQuery->select('COUNT(*) AS __count__', true); |
| 55 | - $paginationParams->setCount((int)$countQuery->fetch()['__count__']); |
|
| 55 | + $paginationParams->setCount((int) $countQuery->fetch()['__count__']); |
|
| 56 | 56 | |
| 57 | 57 | /** @var $repository \Envms\FluentPDO\Query */ |
| 58 | 58 | $sortBy = $paginationParams->getSortBy(); |
| 59 | 59 | if ($sortBy !== null) { |
| 60 | - $repository->orderBy($sortBy . ' ' . $paginationParams->getDirection()); |
|
| 60 | + $repository->orderBy($sortBy.' '.$paginationParams->getDirection()); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | return $repository |