AuthServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 5
Bugs 4 Features 0
Metric Value
eloc 4
c 5
b 4
f 0
dl 0
loc 18
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\Gallery\Providers;
4
5
use FaithGen\Gallery\Models\Album;
6
use FaithGen\Gallery\Policies\AlbumPolicy;
7
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
8
9
class AuthServiceProvider extends ServiceProvider
10
{
11
    protected $policies = [
12
        Album::class => AlbumPolicy::class,
13
    ];
14
15
    public function boot()
16
    {
17
        $this->registerPolicies();
18
    }
19
20
    /**
21
     * Register services.
22
     *
23
     * @return void
24
     */
25
    public function register()
26
    {
27
    }
28
}
29