RestScopeProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

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