ForgeSyncServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

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