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