Passed
Push — master ( 139939...b4b8e8 )
by Arthur
21:54 queued 17s
created

GeneratorServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A register() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 09.03.19
6
 * Time: 18:23
7
 */
8
9
namespace Foundation\Generator\Providers;
10
11
12
use Foundation\Generator\Commands\EventMakeCommand;
13
use Foundation\Generator\Commands\CommandMakeCommand;
14
use Foundation\Generator\Commands\ControllerMakeCommand;
15
use Foundation\Generator\Commands\FactoryMakeCommand;
16
use Foundation\Generator\Commands\JobMakeCommand;
17
use Foundation\Generator\Commands\ListenerMakeCommand;
18
use Illuminate\Support\ServiceProvider;
19
20
21
class GeneratorServiceProvider extends ServiceProvider
22
{
23
24
    protected $commands = [
25
        FactoryMakeCommand::class,
26
        CommandMakeCommand::class,
27
        ControllerMakeCommand::class,
28
        EventMakeCommand::class,
29
        JobMakeCommand::class,
30
        ListenerMakeCommand::class
31
    ];
32
33
    /**
34
     * Boot the application events.
35
     *
36
     * @return void
37
     */
38
    public function boot()
39
    {
40
    }
41
42
    /**
43
     * Register the service provider.
44
     *
45
     * @return void
46
     */
47
    public function register()
48
    {
49
        $this->commands($this->commands);
50
    }
51
}
52