Completed
Pull Request — master (#6)
by ARCANEDEV
06:12
created

InstallCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Media\Console;
2
3
use Arcanesoft\Media\Seeds\DatabaseSeeder;
4
5
/**
6
 * Class     InstallCommand
7
 *
8
 * @package  Arcanesoft\Media\Console
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class InstallCommand extends Command
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * The name and signature of the console command.
20
     *
21
     * @var string
22
     */
23
    protected $signature = 'media:install';
24
25
    /**
26
     * The console command description.
27
     *
28
     * @var string
29
     */
30
    protected $description = 'Install the media module.';
31
32
    /* -----------------------------------------------------------------
33
     |  Main Methods
34
     | -----------------------------------------------------------------
35
     */
36
37
    /**
38
     * Execute the console command.
39
     */
40
    public function handle()
41
    {
42
        $this->call('db:seed', ['--class' => DatabaseSeeder::class]);
43
    }
44
}
45