Conditions | 3 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function __invoke() { |
||
20 | return function (int $perPage = 15, string $pageName = 'page', int $page = null, int $total = null, array $options = []): LengthAwarePaginator { |
||
21 | $page = $page ?: LengthAwarePaginator::resolveCurrentPage($pageName); |
||
22 | |||
23 | $results = $this->forPage($page, $perPage); |
||
|
|||
24 | |||
25 | $total = $total ?: $this->count(); |
||
26 | |||
27 | $options += [ |
||
28 | 'path' => LengthAwarePaginator::resolveCurrentPath(), |
||
29 | 'pageName' => $pageName, |
||
30 | ]; |
||
31 | |||
32 | return new LengthAwarePaginator($results, $total, $perPage, $page, $options); |
||
33 | }; |
||
34 | } |
||
35 | } |
||
36 |
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.