Completed
Push — master ( 97ea80...ba3d7b )
by ARCANEDEV
10s
created

CommandServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 37
c 0
b 0
f 0
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
A provides() 0 4 1
1
<?php namespace Arcanesoft\Media\Providers;
2
3
use Arcanedev\Support\ServiceProvider;
4
use Arcanesoft\Media\Console;
5
6
/**
7
 * Class     CommandServiceProvider
8
 *
9
 * @package  Arcanesoft\Media\Providers
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class CommandServiceProvider extends ServiceProvider
13
{
14
    /* ------------------------------------------------------------------------------------------------
15
     |  Properties
16
     | ------------------------------------------------------------------------------------------------
17
     */
18
    /**
19
     * Console commands.
20
     *
21
     * @var array
22
     */
23
    protected $commands = [
24
        Console\PublishCommand::class,
25
    ];
26
27
    /* ------------------------------------------------------------------------------------------------
28
     |  Main Functions
29
     | ------------------------------------------------------------------------------------------------
30
     */
31
    /**
32
     * Register the service provider.
33
     */
34 8
    public function register()
35
    {
36 8
        $this->commands($this->commands);
37 8
    }
38
39
    /**
40
     * Get the provided commands.
41
     *
42
     * @return array
43
     */
44 2
    public function provides()
45
    {
46 2
        return $this->commands;
47
    }
48
}
49