Total Complexity | 6 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 88.89% |
Changes | 0 |
1 | <?php |
||
11 | final class SituationsProxy |
||
12 | { |
||
13 | const situations = [ |
||
14 | RouteSituations::class, |
||
15 | EloquentSituations::class, |
||
16 | ViewSituations::class, |
||
17 | EventSituations::class, |
||
18 | ]; |
||
19 | |||
20 | 105 | public static function call($method, $args) |
|
28 | } |
||
29 | } |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param $method |
||
34 | * @param $className |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | 105 | private static function methodExists($method, $className): bool |
|
43 |
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.