AuthServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 26
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
A register() 0 7 1
1
<?php
2
/*
3
 * This file is part of the Laravel Platfourm package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\Platfourm\Auth;
12
13
use Illuminate\Auth\AuthManager;
14
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
15
use Longman\Platfourm\Auth\RemoteUserProvider;
16
use Longman\Platfourm\Auth\Repositories\RemoteUserRepository;
17
18
class AuthServiceProvider extends ServiceProvider
19
{
20
21
    /**
22
     * Register any application authentication / authorization services.
23
     *
24
     * @param  \Illuminate\Contracts\Auth\Access\Gate $gate
0 ignored issues
show
Bug introduced by
There is no parameter named $gate. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
25
     * @return void
26
     */
27
    public function boot(AuthManager $auth)
0 ignored issues
show
Unused Code introduced by
The parameter $auth is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
    {
29
    }
30
31
    /**
32
     * Register bindings in the container.
33
     *
34
     * @return void
35
     */
36
    public function register()
37
    {
38
        $this->app->singleton(
39
            \Longman\Platfourm\Contracts\Auth\AuthUserService::class,
40
            \Longman\Platfourm\Auth\Services\AuthUserService::class
41
        );
42
    }
43
}
44