CascadedSoftDeletesProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
eloc 6
c 1
b 0
f 1
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 2
A register() 0 3 1
1
<?php
2
3
namespace RaziAlsayyed\LaravelCascadedSoftDeletes\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class CascadedSoftDeletesProvider extends ServiceProvider
8
{
9
    /**
10
     * Register services.
11
     *
12
     * @return void
13
     */
14
    public function register()
15
    {
16
        $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'cascaded-soft-deletes');
17
    }
18
19
    /**
20
     * Bootstrap services.
21
     *
22
     * @return void
23
     */
24
    public function boot()
25
    {
26
        if ($this->app->runningInConsole()) {
27
            $this->publishes([
28
                __DIR__ . '/../config/config.php' => config_path('cascaded-soft-deletes.php'),
29
            ], 'config');
30
        }
31
    }
32
}
33