LaravooleServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 61.53%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
A register() 0 10 1
1
<?php
2
3
namespace Laravoole;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class LaravooleServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        $this->publishes([
17
            __DIR__ . '/../config/laravoole.php' => config_path('laravoole.php'),
18
        ]);
19
    }
20
21
    /**
22
     * Register services.
23
     *
24
     * @return void
25
     */
26 20
    public function register()
27
    {
28 20
        $this->mergeConfigFrom(
29 20
            __DIR__ . '/../config/laravoole.php', 'laravoole'
30 10
        );
31
32 20
        $this->commands([
33 20
            Commands\LaravooleCommand::class,
34 10
        ]);
35 20
    }
36
}
37