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

SeedDemoDataCommand   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\SeedDemoDataJob;
8
9
class SeedDemoDataCommand extends Command
10
{
11
    /**
12
     * The console command name.
13
     *
14
     * @var string
15
     */
16
    protected $signature = 'demo:seed';
17
18
    /**
19
     * The console command description.
20
     *
21
     * @var string
22
     */
23
    protected $description = 'Seed Demo data.';
24
25
    /**
26
     * Execute the console command.
27
     *
28
     * @return void
29
     */
30
    public function handle()
31
    {
32
        dispatch(new SeedDemoDataJob());
33
        $this->info('Seed Demo data job triggered.');
34
    }
35
}
36