Total Complexity | 8 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class Authenticate |
||
10 | { |
||
11 | /** |
||
12 | * The authentication factory instance. |
||
13 | * |
||
14 | * @var \Illuminate\Contracts\Auth\Factory |
||
15 | */ |
||
16 | protected $auth; |
||
17 | |||
18 | /** |
||
19 | * Create a new middleware instance. |
||
20 | * |
||
21 | * @param \Illuminate\Contracts\Auth\Factory $auth |
||
22 | */ |
||
23 | 47 | public function __construct(Auth $auth) |
|
26 | 47 | } |
|
27 | |||
28 | /** |
||
29 | * Handle an incoming request. |
||
30 | * |
||
31 | * @param \Illuminate\Http\Request $request |
||
32 | * @param \Closure $next |
||
33 | * @param string[] ...$guards |
||
34 | * @return mixed |
||
35 | * |
||
36 | * @throws \Illuminate\Auth\AuthenticationException |
||
37 | */ |
||
38 | 46 | public function handle($request, Closure $next, ...$guards) |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * Determine if the user is logged in to any of the given guards. |
||
51 | * |
||
52 | * @param array $guards |
||
53 | * @return void |
||
54 | * |
||
55 | * @throws \Illuminate\Auth\AuthenticationException |
||
56 | */ |
||
57 | 46 | protected function authenticate(array $guards) |
|
72 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.