MuzzleProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Muzzle;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class MuzzleProvider extends ServiceProvider
8
{
9
10
    public function boot()
11
    {
12
13
        if ($this->app->runningInConsole()) {
14
            $this->publishes([
15
                __DIR__ . '/../config/config.php' => config_path('muzzle.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

15
                __DIR__ . '/../config/config.php' => /** @scrutinizer ignore-call */ config_path('muzzle.php'),
Loading history...
16
            ]);
17
        }
18
    }
19
20
    public function register()
21
    {
22
23
        $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'muzzle');
24
25
        ResponseBuilder::setFixtureDirectory($this->app['config']->get('muzzle.fixture_path'));
26
    }
27
}
28