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

ConsoleServiceProvider::provides()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
}