AssetsConsole::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace agoalofalife\Reports\Console;
5
use Illuminate\Console\Command;
6
7
class AssetsConsole extends Command
8
{
9
    /**
10
     * The name and signature of the console command.
11
     *
12
     * @var string
13
     */
14
    protected $signature = 'reports:assets';
15
    /**
16
     * The console command description.
17
     *
18
     * @var string
19
     */
20
    protected $description = 'Re-publish the reports assets';
21
    /**
22
     * Execute the console command.
23
     *
24
     * @return mixed
25
     */
26 2
    public function handle() : void
27
    {
28 2
        $this->call('vendor:publish', [
29 2
            '--tag' => 'reports-assets',
30
            '--force' => true,
31
        ]);
32
    }
33
}