NotifiableExceptionServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 9
ccs 5
cts 5
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Cerbero\NotifiableException\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
/**
8
 * The notifiable exception service provider.
9
 *
10
 */
11
class NotifiableExceptionServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Bootstrap the application services.
15
     *
16
     * @return void
17
     */
18 24
    public function boot()
19
    {
20
        // publish the configuration, if requested
21 24
        $this->publishes([
22 24
            __DIR__ . '/../../config/notifiable_exception.php' => config_path('notifiable_exception.php'),
23 24
        ], 'notifiable_exception_config');
24
25
        // merge the published configuration with the package default one
26 24
        $this->mergeConfigFrom(__DIR__ . '/../../config/notifiable_exception.php', 'notifiable_exception');
27 24
    }
28
}
29