UuidServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 1
A register() 0 3 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