Total Complexity | 4 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
12 | class Authenticate |
||
13 | { |
||
14 | /** |
||
15 | * The Guard implementation. |
||
16 | * |
||
17 | * @var Guard |
||
18 | */ |
||
19 | protected $auth; |
||
20 | |||
21 | /** |
||
22 | * Create a new filter instance. |
||
23 | * |
||
24 | * @param Guard $auth |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function __construct(Guard $auth) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Handle an incoming request. |
||
35 | * |
||
36 | * @param \Illuminate\Http\Request $request |
||
37 | * @param \Closure $next |
||
38 | * @param $role |
||
39 | * |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function handle($request, Closure $next, $role) |
||
61 | } |
||
62 | |||
63 | public function terminate($request, $response) |
||
70 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.