Conditions | 3 |
Paths | 1 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function after() |
||
13 | { |
||
14 | return function ($currentItem, $fallback = null) { |
||
15 | $currentKey = $this->search($currentItem, true); |
||
|
|||
16 | |||
17 | if ($currentKey === false) { |
||
18 | return $fallback; |
||
19 | } |
||
20 | |||
21 | $currentOffset = $this->keys()->search($currentKey, true); |
||
22 | |||
23 | $next = $this->slice($currentOffset, 2); |
||
24 | |||
25 | if ($next->count() < 2) { |
||
26 | return $fallback; |
||
27 | } |
||
28 | |||
29 | return $next->last(); |
||
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.