Completed
Pull Request — master (#40)
by Mr
03:17
created

ServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

2 Methods

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