Completed
Push — master ( 321b65...b2b8c6 )
by Freek
01:18
created

CspServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 2
A register() 0 4 1
1
<?php
2
3
namespace Spatie\Csp;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class CspServiceProvider extends ServiceProvider
8
{
9
    public function boot()
10
    {
11
        if ($this->app->runningInConsole()) {
12
            $this->publishes([
13
                __DIR__.'/../config/csp.php' => config_path('csp.php'),
14
            ], 'config');
15
        }
16
    }
17
18
    public function register()
19
    {
20
        $this->mergeConfigFrom(__DIR__.'/../config/csp.php', 'csp');
21
    }
22
}
23