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