PublishTelescopeAssetsCommand::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 7
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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