NotifiableExceptionServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 9 1
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