@@ -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) |
@@ -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 | |