Passed
Push — master ( e5b31a...cf340d )
by Arthur
04:48
created

Auth0ServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 20
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 13.10.18
6
 * Time: 20:49
7
 */
8
9
namespace Modules\Auth0\Providers;
10
11
12
use Illuminate\Support\ServiceProvider;
13
use Modules\Auth0\Services\Auth0Service;
14
use Modules\User\Services\UserService;
15
16
class Auth0ServiceProvider extends ServiceProvider
17
{
18
    /**
19
     * The policy mappings for the application.
20
     *
21
     * @var array
22
     */
23
    protected $policies = [
24
        //  'App\Model' => 'App\Policies\ModelPolicy',
25
    ];
26
27
    /**
28
     * Register any authentication / authorization services.
29
     *
30
     * @return void
31
     */
32 19
    public function boot()
33
    {
34
        $this->app->bind(\Auth0\Login\Contract\Auth0UserRepository::class, function (){
0 ignored issues
show
Bug introduced by
The type Auth0\Login\Contract\Auth0UserRepository 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...
35 5
            return new Auth0Service(new UserService());
36 19
        });
37 19
    }
38
}
39