| Conditions | 5 | 
| Paths | 8 | 
| Total Lines | 16 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 34 | public function handle($request, Closure $next, $permissions = '')  | 
            ||
| 35 |     { | 
            ||
| 36 |         if (empty($permissions)) { | 
            ||
| 37 | $permissions = [Route::currentRouteName()];  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 40 |         if (!is_array($permissions)) { | 
            ||
| 41 | $permissions = explode(self::DELIMITER, $permissions);  | 
            ||
| 42 | }  | 
            ||
| 43 | |||
| 44 |         if ($this->auth->guest() || !$request->user()->can($permissions)) { | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 45 | throw new AuthorizationException();  | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 48 | return $next($request);  | 
            ||
| 49 | }  | 
            ||
| 50 | }  | 
            ||
| 51 | 
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.