QueueableActionServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 2
A provides() 0 6 1
1
<?php
2
3
namespace Spatie\QueueableAction;
4
5
use Illuminate\Contracts\Support\DeferrableProvider;
6
use Illuminate\Support\ServiceProvider;
7
8
class QueueableActionServiceProvider extends ServiceProvider implements DeferrableProvider
9
{
10
    public function register(): void
11
    {
12
        if ($this->app->runningInConsole()) {
13
            $this->commands([
14
                ActionMakeCommand::class,
15
            ]);
16
        }
17
    }
18
19
    public function provides(): array
20
    {
21
        return [
22
            ActionMakeCommand::class,
23
        ];
24
    }
25
}
26