@@ -24,11 +24,11 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function __construct(Result $result, $page = 1, $limit = self::DEFAULT_LIMIT) |
| 26 | 26 | { |
| 27 | - if (!is_numeric($page)) { |
|
| 27 | + if ( ! is_numeric($page)) { |
|
| 28 | 28 | $page = 1; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - if (!is_numeric($limit)) { |
|
| 31 | + if ( ! is_numeric($limit)) { |
|
| 32 | 32 | $limit = self::DEFAULT_LIMIT; |
| 33 | 33 | } |
| 34 | 34 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function items(ItemsEvent $event) |
| 15 | 15 | { |
| 16 | - if (!$event->target instanceof Result) { |
|
| 16 | + if ( ! $event->target instanceof Result) { |
|
| 17 | 17 | return; |
| 18 | 18 | } |
| 19 | 19 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | public function __construct(QueryBuilder $qb, callable $countQueryBuilderModifier = null) |
| 23 | 23 | { |
| 24 | 24 | $this->qb = $qb; |
| 25 | - $this->countQueryBuilderModifier = $countQueryBuilderModifier ?: function (QueryBuilder $qb) { |
|
| 25 | + $this->countQueryBuilderModifier = $countQueryBuilderModifier ?: function(QueryBuilder $qb) { |
|
| 26 | 26 | return $qb->select('COUNT(*)'); |
| 27 | 27 | }; |
| 28 | 28 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | public function take($offset, $limit) |
| 34 | 34 | { |
| 35 | 35 | $qb = clone $this->qb; |
| 36 | - $results = function ($offset, $limit) use ($qb) { |
|
| 36 | + $results = function($offset, $limit) use ($qb) { |
|
| 37 | 37 | return $qb |
| 38 | 38 | ->setFirstResult($offset) |
| 39 | 39 | ->setMaxResults($limit) |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function take($offset, $limit) |
| 26 | 26 | { |
| 27 | 27 | $qb = clone $this->qb; |
| 28 | - $results = function ($offset, $limit) use ($qb) { |
|
| 28 | + $results = function($offset, $limit) use ($qb) { |
|
| 29 | 29 | return $qb |
| 30 | 30 | ->setFirstResult($offset) |
| 31 | 31 | ->setMaxResults($limit) |