Test Failed
Push — master ( ffc71e...1a0a2f )
by Koen
03:32
created

Authenticate   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Http\Middleware;
6
7
use Illuminate\Auth\Middleware\Authenticate as Middleware;
0 ignored issues
show
Bug introduced by
The type Illuminate\Auth\Middleware\Authenticate was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Illuminate\Contracts\Auth\Factory;
0 ignored issues
show
Bug introduced by
The type Illuminate\Contracts\Auth\Factory was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
use Illuminate\Contracts\Routing\UrlGenerator;
0 ignored issues
show
Bug introduced by
The type Illuminate\Contracts\Routing\UrlGenerator was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
11
final class Authenticate extends Middleware
12
{
13
    /**
14
     * @var \Illuminate\Contracts\Routing\UrlGenerator
15
     */
16
    protected $urlGenerator;
17
18
    /**
19
     * Authenticate constructor.
20
     *
21
     * @param  \Illuminate\Contracts\Auth\Factory         $auth
22
     * @param  \Illuminate\Contracts\Routing\UrlGenerator $urlGenerator
23
     */
24
    public function __construct(Factory $auth, UrlGenerator $urlGenerator)
25
    {
26
        parent::__construct($auth);
27
28
        $this->auth = $auth;
0 ignored issues
show
Bug Best Practice introduced by
The property auth does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
29
        $this->urlGenerator = $urlGenerator;
30
    }
31
}
32