Passed
Push — master ( 7d76d6...1230fe )
by Caen
03:19 queued 13s
created

ConfigurationServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 7
Bugs 1 Features 0
Metric Value
eloc 8
c 7
b 1
f 0
dl 0
loc 15
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 1
A register() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Hyde\Foundation\Providers;
6
7
use Illuminate\Support\ServiceProvider;
8
9
class ConfigurationServiceProvider extends ServiceProvider
10
{
11
    public function register(): void
12
    {
13
        $this->mergeConfigFrom(__DIR__.'/../../../config/hyde.php', 'hyde');
14
        $this->mergeConfigFrom(__DIR__.'/../../../config/docs.php', 'docs');
15
        $this->mergeConfigFrom(__DIR__.'/../../../config/site.php', 'site');
16
        $this->mergeConfigFrom(__DIR__.'/../../../config/markdown.php', 'markdown');
17
    }
18
19
    public function boot(): void
20
    {
21
        $this->publishes([
22
            __DIR__.'/../../../config' => config_path(),
23
        ], 'configs');
24
    }
25
}
26