@@ -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 | * |
@@ -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 @@ 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 | * |
@@ -76,10 +76,10 @@ discard block |
||
| 76 | 76 | { |
| 77 | 77 | $count = $this->count / $this->limit; |
| 78 | 78 | |
| 79 | - if ((int)$count === 0) { |
|
| 79 | + if ((int) $count === 0) { |
|
| 80 | 80 | $count = 1; |
| 81 | 81 | } else { |
| 82 | - $count = (int)ceil($count); |
|
| 82 | + $count = (int) ceil($count); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | $this->pageCount = $count; |
@@ -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 | * |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * |
| 28 | 28 | * @var callable |
| 29 | 29 | */ |
| 30 | - protected $sortHandler; |
|
| 30 | + protected $sortHandler; |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Maps the params to the repository |
@@ -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 | |
@@ -31,8 +31,8 @@ |
||
| 31 | 31 | public function paginate(PaginationParamsInterface $paginationParams, $repository) |
| 32 | 32 | { |
| 33 | 33 | $query = $repository |
| 34 | - ->setFirstResult($paginationParams->getCurrentPage()) |
|
| 35 | - ->setMaxResults($paginationParams->getLimit()); |
|
| 34 | + ->setFirstResult($paginationParams->getCurrentPage()) |
|
| 35 | + ->setMaxResults($paginationParams->getLimit()); |
|
| 36 | 36 | |
| 37 | 37 | return new Paginator($query, $fetchJoinCollection = true); |
| 38 | 38 | } |
@@ -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 | * |