Passed
Push — master ( 3a6ce1...f9d3f0 )
by Caen
03:31 queued 12s
created

ConfigurationServiceProvider::initialize()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 2
c 0
b 0
f 0
nc 2
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Hyde\Foundation\Providers;
6
7
use Hyde\Framework\Services\YamlConfigurationService;
8
use Illuminate\Support\ServiceProvider;
9
10
class ConfigurationServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Run any logic before the Hyde Service Provider is registered.
14
     */
15
    public function initialize(): void
16
    {
17
        if (YamlConfigurationService::hasFile()) {
18
            YamlConfigurationService::boot();
19
        }
20
    }
21
22
    public function register(): void
23
    {
24
        //
25
    }
26
27
    public function boot(): void
28
    {
29
        //
30
    }
31
}
32