Passed
Push — master ( ef1bc4...266755 )
by Arthur
02:43
created

ConsoleServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A provides() 0 3 1
A register() 0 3 1
1
<?php
2
3
namespace SoliDry\Providers;
4
5
6
use Illuminate\Support\ServiceProvider;
7
use SoliDry\ApiGenerator;
8
9
class ConsoleServiceProvider extends ServiceProvider
10
{
11
12
    protected $commands = [
13
        ApiGenerator::class,
14
    ];
15
16
    /**
17
     * Register the commands.
18
     */
19
    public function register()
20
    {
21
        $this->commands($this->commands);
22
    }
23
24
    /**
25
     * @return array
26
     */
27
    public function provides()
28
    {
29
        return $this->commands;
30
    }
31
}