| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Arcanesoft\Core\Http\Middleware; |
||
| 26 | public function handle(Request $request, Closure $next) |
||
| 27 | { |
||
| 28 | /** @var \Arcanesoft\Contracts\Auth\Models\User $user */ |
||
| 29 | $user = auth()->user(); |
||
| 30 | |||
| 31 | if (is_null($user) || ! $this->isAllowed($user)) { |
||
| 32 | abort(404, "You're not allowed !"); |
||
| 33 | } |
||
| 34 | |||
| 35 | return $next($request); |
||
| 36 | } |
||
| 37 | |||
| 54 |
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.