PublishCommand::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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