QueryUpdaterServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 3
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
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