SecurityServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 9
ccs 5
cts 5
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Distilleries\Security;
4
5
class SecurityServiceProvider extends \Illuminate\Support\ServiceProvider
6
{
7
8
    /**
9
     * Bootstrap the application events.
10
     *
11
     * @return void
12
     */
13 36
    public function boot()
14
    {
15
16 36
        $this->publishes([
17 36
            __DIR__.'/../../config/config.php'    => config_path('security.php'),
18
        ]);
19
20 36
        $this->mergeConfigFrom(
21 36
            __DIR__.'/../../config/config.php', 'security'
22
        );
23
24
25
    }
26
27
}