SetAppKey   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fire() 0 9 2
1
<?php namespace Modules\Core\Console\Installers\Scripts;
2
3
use Illuminate\Console\Command;
4
use Modules\Core\Console\Installers\SetupScript;
5
6
class SetAppKey implements SetupScript
7
{
8
    /**
9
     * Fire the install script
10
     * @param  Command $command
11
     * @return mixed
12
     */
13
    public function fire(Command $command)
14
    {
15
        if ($command->option('verbose')) {
16
            $command->call('key:generate');
17
18
            return;
19
        }
20
        $command->callSilent('key:generate');
21
    }
22
}
23