AssetsConsole::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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