Test Failed
Pull Request — master (#6)
by
unknown
09:48
created

ServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 12 1
A register() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the overtrue/laravel-versionable.
5
 *
6
 * (c) overtrue <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled.
9
 */
10
11
namespace Overtrue\LaravelVersionable;
12
13
/**
14
 * Class ServiceProvider.
15
 */
16
class ServiceProvider extends \Illuminate\Support\ServiceProvider
17
{
18
    public function boot()
19
    {
20
        $this->loadMigrationsFrom(__DIR__.'/../migrations');
21
22
        $this->publishes([
23
            __DIR__.'/../migrations' => \database_path('migrations'),
24
        ], 'migrations');
25
26
        $this->publishes([
27
            __DIR__.'/../config/versionable.php' => \config_path('versionable.php'),
28
        ], 'config');
29
    }
30
31
    public function register()
32
    {
33
        $this->mergeConfigFrom(
34
            __DIR__.'/../config/versionable.php', 'versionable'
35
        );
36
    }
37
}
38