Completed
Push — master ( 4680f5...6548c4 )
by ARCANEDEV
06:45
created

CommandServiceProvider::checkPackageName()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
ccs 0
cts 6
cp 0
crap 6
1
<?php namespace Arcanedev\Support\Providers;
2
3
use Arcanedev\Support\ServiceProvider;
4
5
/**
6
 * Class     CommandServiceProvider
7
 *
8
 * @package  Arcanedev\Support\Providers
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class CommandServiceProvider extends ServiceProvider
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Properties
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * The commands to be registered.
19
     *
20
     * @var array
21
     */
22
    protected $commands = [];
23
24
    /**
25
     * Indicates if loading of the provider is deferred.
26
     *
27
     * @var bool
28
     */
29
    protected $defer = true;
30
31
    /* ------------------------------------------------------------------------------------------------
32
     |  Main Functions
33
     | ------------------------------------------------------------------------------------------------
34
     */
35
    /**
36
     * Boot the service provider.
37
     */
38
    public function boot()
39
    {
40
        $this->commands($this->commands);
41
    }
42
43
    /**
44
     * Get the provided commands.
45
     *
46
     * @return array
47
     */
48
    public function provides()
49
    {
50
        return $this->commands;
51
    }
52
}
53