| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 4 | public function enablePaginator($paginator = null) |
|
| 17 | { |
||
| 18 | 4 | $paginator = $paginator instanceof Paginator ? $paginator : Paginator::name($paginator); |
|
| 19 | 4 | $perPage = $this->request->input($paginator->getName(), $paginator->getDefault()); |
|
| 20 | 4 | $this->builder->getModel() |
|
| 21 | 4 | ->setPerPage($perPage); |
|
| 22 | |||
| 23 | 4 | return $this; |
|
| 24 | } |
||
| 26 |