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
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Media\Console;
2
3
use Arcanedev\Support\Bases\Command;
4
use Arcanesoft\Media\MediaServiceProvider;
5
6
/**
7
 * Class     PublishCommand
8
 *
9
 * @package  Arcanesoft\Media\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 = 'media:publish';
25
26
    /**
27
     * The console command description.
28
     *
29
     * @var string
30
     */
31
    protected $description = 'Publish media config, assets 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', [
44
            '--provider' => MediaServiceProvider::class,
45
        ]);
46
    }
47
}
48