Completed
Pull Request — master (#60)
by Mahmoud
06:15 queued 02:27
created

PortAuthServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

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\Support\Facades\Gate;
6
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
7
8
/**
9
 * Class PortAuthServiceProvider
10
 *
11
 * @author  Mahmoud Zalt  <[email protected]>
12
 */
13
class PortAuthServiceProvider extends ServiceProvider
14
{
15
    /**
16
     * The policy mappings for the application.
17
     *
18
     * @var array
19
     */
20
    protected $policies = [
21
//        '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...
22
    ];
23
24
    /**
25
     * Register any authentication / authorization services.
26
     *
27
     * @return void
28
     */
29
    public function boot()
30
    {
31
        $this->registerPolicies();
32
33
        //
34
    }
35
}
36