Completed
Push — master ( 43dba6...416142 )
by Mahmoud
09:25 queued 05:38
created

PortAuthServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
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