PublishCommand::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 2
1
<?php namespace Arcanedev\LaravelTracker\Console;
2
3
use Arcanedev\Support\Bases\Command;
4
5
/**
6
 * Class     PublishCommand
7
 *
8
 * @package  Arcanedev\LaravelTracker\Console
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class PublishCommand extends Command
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * The name and signature of the console command.
20
     *
21
     * @var string
22
     */
23
    protected $signature = 'laravel-tracker:publish';
24
25
    /**
26
     * The console command description.
27
     *
28
     * @var string
29
     */
30
    protected $description = 'Publish the Laravel Tracker config, migrations...';
31
32
    /* -----------------------------------------------------------------
33
     |  Main Methods
34
     | -----------------------------------------------------------------
35
     */
36
37
    /**
38
     * Execute the console command.
39
     */
40
    public function handle()
41
    {
42
        $this->call('vendor:publish', [
43
            '--provider' => \Arcanedev\LaravelTracker\LaravelTrackerServiceProvider::class,
44
        ]);
45
    }
46
}
47