Passed
Push — master ( f51c1b...16736d )
by Arthur
05:36
created

AlterDemoDataCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php
2
3
namespace Modules\Demo\Console;
4
5
use Foundation\Services\BootstrapRegistrarService;
6
use Illuminate\Console\Command;
7
use Modules\Demo\Jobs\AlterDemoDataJob;
8
use Modules\Demo\Jobs\SeedDemoDataJob;
9
10
class AlterDemoDataCommand extends Command
11
{
12
    /**
13
     * The console command name.
14
     *
15
     * @var string
16
     */
17
    protected $signature = 'demo:alter';
18
19
    /**
20
     * The console command description.
21
     *
22
     * @var string
23
     */
24
    protected $description = 'Alter Demo data.';
25
26
    /**
27
     * Execute the console command.
28
     *
29
     * @return void
30
     */
31
    public function handle()
32
    {
33
        dispatch(new AlterDemoDataJob());
34
        $this->info('Alter Demo data job triggered.');
35
    }
36
}
37