AuthServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
A boot() 0 4 1
1
<?php
2
3
namespace Faithgen\Testimonies\Providers;
4
5
use Faithgen\Testimonies\Models\Testimony;
6
use Faithgen\Testimonies\Policies\TestimonyPolicy;
7
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
8
9
class AuthServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * The policy mappings for the application.
13
     *
14
     * @var array
15
     */
16
    protected $policies = [
17
        Testimony::class => TestimonyPolicy::class,
18
    ];
19
20
    /**
21
     * Register services.
22
     *
23
     * @return void
24
     */
25
    public function register()
26
    {
27
        //
28
    }
29
30
    /**
31
     * Bootstrap services.
32
     *
33
     * @return void
34
     */
35
    public function boot()
36
    {
37
        $this->registerPolicies();
38
    }
39
}
40