Total Complexity | 6 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Response extends BaseReaction |
||
11 | { |
||
12 | 3 | public function response() |
|
17 | } |
||
18 | |||
19 | 2 | public static function respond(...$resp) |
|
20 | { |
||
21 | 2 | return self::sendResponse($resp, 'response'); |
|
22 | } |
||
23 | |||
24 | 8 | public function redirect() |
|
25 | { |
||
26 | 8 | resolve('heyman.chain')->set('responseType', [static::class, 'makeRedirect']); |
|
27 | |||
28 | 8 | return new Redirector($this); |
|
29 | } |
||
30 | |||
31 | 7 | public static function makeRedirect(...$resp) |
|
32 | { |
||
33 | 7 | return self::sendResponse($resp, 'redirect'); |
|
34 | } |
||
35 | |||
36 | private static function sendResponse(array $methodCalls, $func) |
||
46 | 9 | }; |
|
47 | } |
||
48 | } |
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.