| Total Complexity | 3 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class RequestServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | 6 | public function boot() |
|
| 12 | { |
||
| 13 | 6 | if (false === Request::hasMacro('isApiInternalCall')) { |
|
| 14 | 2 | Request::macro('isApiInternalCall', function () { |
|
| 15 | return $this->header(NappHttpHeaders::NAPP_API_CALL_TYPE) === 'internal'; |
||
|
|
|||
| 16 | 2 | }); |
|
| 17 | } |
||
| 18 | 6 | } |
|
| 19 | |||
| 20 | 6 | public function register() |
|
| 22 | 6 | } |
|
| 23 | } |
||
| 24 |
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.