Passed
Push — master ( 07ff08...756a96 )
by Arthur
05:20
created

PublishTelescopeAssetsCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
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
12
use Artisan;
13
use Illuminate\Console\Command;
14
15
class PublishTelescopeAssetsCommand extends Command
16
{
17
    /**
18
     * The console command name.
19
     *
20
     * @var string
21
     */
22
    protected $signature = 'telescope:publish:assets';
23
24
    /**
25
     * The console command description.
26
     *
27
     * @var string
28
     */
29
    protected $description = 'Publish Telescope Assets.';
30
31
    /**
32
     * Execute the console command.
33
     *
34
     * @return void
35
     */
36
    public function handle()
37
    {
38
        Artisan::call('vendor:publish',[
39
            "--tag" => "telescope-assets",
40
            "--force" => true
41
        ]);
42
        $this->info('Telescope assets published.');
43
    }
44
}