QueryUpdaterServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

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