ServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 3
b 0
f 0
nc 1
nop 0
dl 0
loc 9
ccs 0
cts 8
cp 0
crap 2
rs 10
1
<?php
2
3
namespace CodeblogPro\GeoLocation;
4
5
class ServiceProvider extends \Illuminate\Support\ServiceProvider
6
{
7
    public function register()
8
    {
9
        parent::register();
10
    }
11
12
    public function boot()
13
    {
14
        $this->loadRoutesFrom(__DIR__ . '/routes/geo-location.php');
15
16
        $this->publishes([
17
            __DIR__ . '/config/geolocation.php' => config_path('geolocation.php'),
0 ignored issues
show
Bug introduced by
The function config_path was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
            __DIR__ . '/config/geolocation.php' => /** @scrutinizer ignore-call */ config_path('geolocation.php'),
Loading history...
18
            'geolocation-config'
19
        ]);
20
        $this->mergeConfigFrom(__DIR__ . '/config/geolocation.php', 'geolocation');
21
    }
22
}
23