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