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

CommandServiceProvider::provides()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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