Completed
Push — master ( e6ed9d...330f1c )
by Brent
17s queued 11s
created

QueueableActionServiceProvider   A

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\Support\ServiceProvider;
6
7
class QueueableActionServiceProvider extends ServiceProvider
8
{
9
    public function register(): void
10
    {
11
        if ($this->app->runningInConsole()) {
12
            $this->commands([
13
                ActionMakeCommand::class,
14
            ]);
15
        }
16
    }
17
18
    public function provides(): array
19
    {
20
        return [
21
            ActionMakeCommand::class,
22
        ];
23
    }
24
}
25