ActionServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 14 2
1
<?php
2
3
namespace BrightComponents\Actions;
4
5
use BrightComponents\Actions\Commands\ActionMakeCommand;
6
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
7
8
class ActionServiceProvider extends BaseServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13
    public function boot()
14
    {
15
        if ($this->app->runningInConsole()) {
16
            $this->publishes([
17
                __DIR__.'/../config/actions.php' => config_path('actions.php'),
18
            ]);
19
        }
20
21
        $this->mergeConfigFrom(__DIR__.'/../config/actions.php', 'actions');
22
23
        $this->commands([
24
            ActionMakeCommand::class,
25
        ]);
26
    }
27
}
28