QueueableActionServiceProvider::provides()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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