InstallCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
namespace agoalofalife\Reports\Console;
5
6
use Illuminate\Console\Command;
7
8
/**
9
 * Class InstallCommand
10
 * @package agoalofalife\Reports\Console
11
 */
12
class InstallCommand extends Command
13
{
14
    /**
15
     * The name and signature of the console command.
16
     *
17
     * @var string
18
     */
19
    protected $signature = 'reports:install';
20
21
    /**
22
     * The console command description.
23
     *
24
     * @var string
25
     */
26
    protected $description = 'Run the commands necessary to prepare for use';
27
    /**
28
     * Execute the console command.
29
     *
30
     * @return mixed
31
     */
32 1
    public function handle() : void
33
    {
34 1
        $this->call('vendor:publish', ['--tag' => 'reports-migration']);
35 1
        $this->call('migrate');
36 1
        $this->call('reports:assets');
37
    }
38
}