Conditions | 3 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function __invoke() |
||
19 | { |
||
20 | return function (int $offset): Collection { |
||
21 | if ($this->isEmpty()) { |
||
|
|||
22 | return new static; |
||
23 | } |
||
24 | |||
25 | $count = $this->count(); |
||
26 | |||
27 | $offset %= $count; |
||
28 | |||
29 | if ($offset < 0) { |
||
30 | $offset += $count; |
||
31 | } |
||
32 | |||
33 | return new static($this->slice($offset)->merge($this->take($offset))); |
||
34 | }; |
||
35 | } |
||
36 | } |
||
37 |
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.