PublishTelescopeAssetsCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 28
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 7 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 30.10.18
6
 * Time: 14:01.
7
 */
8
9
namespace Modules\Telescope\Console;
10
11
use Artisan;
12
use Illuminate\Console\Command;
13
14
class PublishTelescopeAssetsCommand extends Command
15
{
16
    /**
17
     * The console command name.
18
     *
19
     * @var string
20
     */
21
    protected $signature = 'telescope:publish:assets';
22
23
    /**
24
     * The console command description.
25
     *
26
     * @var string
27
     */
28
    protected $description = 'Publish Telescope Assets.';
29
30
    /**
31
     * Execute the console command.
32
     *
33
     * @return void
34
     */
35
    public function handle()
36
    {
37
        Artisan::call('vendor:publish', [
38
            '--tag'   => 'telescope-assets',
39
            '--force' => true,
40
        ]);
41
        $this->info('Telescope assets published.');
42
    }
43
}
44