AuthServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 7
Bugs 0 Features 0
Metric Value
eloc 4
c 7
b 0
f 0
dl 0
loc 23
rs 10
wmc 2

2 Methods

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