AssetsConsole   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
dl 0
loc 26
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 5 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
}