UuidServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Bmatovu\Uuid;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class UuidServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     *
12
     * @return void
13
     */
14 9
    public function boot()
15
    {
16 9
        $this->publishes([
17 9
            __DIR__.'/../config/uuid.php' => base_path('config/uuid.php'),
18 9
        ], 'config');
19 9
    }
20
21
    /**
22
     * Register the application services.
23
     *
24
     * @return void
25
     */
26 9
    public function register()
27
    {
28 9
        $this->mergeConfigFrom(__DIR__.'/../config/uuid.php', 'uuid');
29 9
    }
30
}
31