Passed
Push — master ( 0e655c...3ea164 )
by Gabriel
02:06
created

MailPolicyServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 4
c 1
b 0
f 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
1
<?php
2
3
namespace Giuga\LaravelMailLog;
4
5
use Giuga\LaravelMailLog\Models\MailLog;
6
use Giuga\LaravelMailLog\Policies\MailLogPolicy;
7
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
8
9
class MailPolicyServiceProvider extends ServiceProvider
10
{
11
    protected $policies = [
12
        MailLog::class => MailLogPolicy::class,
13
    ];
14
15
    /**
16
     * Bootstrap the application services.
17
     */
18
    public function boot()
19
    {
20
        $this->registerPolicies();
21
    }
22
}
23