ServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 9 2
A register() 0 3 1
1
<?php
2
3
namespace ReleaseProtection;
4
5
class ServiceProvider extends \Illuminate\Support\ServiceProvider
6
{
7
    /**
8
     * Register any application authentication / authorization services.
9
     *
10
     * @return void
11
     */
12 10
    public function boot()
13
    {
14 10
        if ($this->app->runningInConsole()) {
15 10
            $this->publishes([
16 10
                __DIR__ . '/../config/release-protection.php' => config_path('release-protection.php'),
17 10
            ], 'config');
18
19
20 10
            $this->commands([]);
21
        }
22
    }
23
24 10
    public function register()
25
    {
26 10
        $this->mergeConfigFrom(__DIR__ . '/../config/release-protection.php', 'release-protection');
27
    }
28
}
29