SetAppKey::fire()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 9
rs 9.6667
cc 2
eloc 5
nc 2
nop 1
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