Test Setup Failed
Pull Request — master (#150)
by Nick
14:47 queued 06:28
created

AuthServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 19
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
1
<?php
2
/**
3
 * Auth Service Provider.
4
 *
5
 * @package App\Providers
6
 *
7
 * @author    Taylor Otwell <[email protected]>
8
 * @copyright 2018-2020 Nick Menke
9
 *
10
 * @link https://github.com/nlmenke/vertebrae
11
 */
12
13
declare(strict_types=1);
14
15
namespace App\Providers;
16
17
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
18
19
/**
20
 * The Authentication / Authorization service provider.
21
 *
22
 * This service provider is responsible for bootstrapping and registering the
23
 * application's authentication / authorization services.
24
 *
25
 * @since 0.0.0-framework introduced
26
 */
27
class AuthServiceProvider extends ServiceProvider
28
{
29
    /**
30
     * The policy mappings for the application.
31
     *
32
     * @var array
33
     */
34
    protected $policies = [
35
        // 'App\Model' => 'App\Policies\ModelPolicy',
36
    ];
37
38
    /**
39
     * Register any authentication / authorization services.
40
     *
41
     * @return void
42
     */
43 33
    public function boot(): void
44
    {
45 33
        $this->registerPolicies();
46 33
    }
47
}
48