Completed
Push — master ( ce8e3e...3f6dd6 )
by Mahmoud
08:54 queued 05:37
created

MainAuthServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 31
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
1
<?php
2
3
namespace App\Port\Policy\Providers;
4
5
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
6
7
/**
8
 * Class PortAuthServiceProvider
9
 *
10
 * This class is provided by Laravel as default provider,
11
 * to register authorization policies.
12
 *
13
 * A.K.A App\Providers\AuthServiceProvider.php
14
 *
15
 * @author  Mahmoud Zalt  <[email protected]>
16
 */
17
class MainAuthServiceProvider extends ServiceProvider
18
{
19
20
    /**
21
     * Indicates if loading of the provider is deferred.
22
     *
23
     * @var bool
24
     */
25
    protected $defer = true;
26
27
    /**
28
     * The policy mappings for the application.
29
     *
30
     * @var array
31
     */
32
    protected $policies = [
33
//        'App\Model' => 'App\Policies\ModelPolicy',
0 ignored issues
show
Unused Code Comprehensibility introduced by
58% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
34
    ];
35
36
    /**
37
     * Register any authentication / authorization services.
38
     *
39
     * @return void
40
     */
41
    public function boot()
42
    {
43
        $this->registerPolicies();
44
45
        //
46
    }
47
}
48