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

InstallCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 34
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
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