Conditions | 3 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function __invoke() |
||
22 | { |
||
23 | return function (int $perPage = 15, string $pageName = 'page', int $page = null, int $total = null, array $options = []): LengthAwarePaginator { |
||
24 | $page = $page ?: LengthAwarePaginator::resolveCurrentPage($pageName); |
||
25 | |||
26 | $results = $this->forPage($page, $perPage)->values(); |
||
|
|||
27 | |||
28 | $total = $total ?: $this->count(); |
||
29 | |||
30 | $options += [ |
||
31 | 'path' => LengthAwarePaginator::resolveCurrentPath(), |
||
32 | 'pageName' => $pageName, |
||
33 | ]; |
||
34 | |||
35 | return new LengthAwarePaginator($results, $total, $perPage, $page, $options); |
||
36 | }; |
||
37 | } |
||
38 | } |
||
39 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.