PublishCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 36
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 1
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