LaravelDeployerServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 2
1
<?php
2
3
namespace Reallyli\LaravelDeployer;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class LaravelDeployerServiceProvider extends ServiceProvider
8
{
9
    protected $commands = [
10
        Commands\Deploy::class,
11
        Commands\DeployConfigs::class,
12
        Commands\DeployCurrent::class,
13
        Commands\DeployDump::class,
14
        Commands\DeployHosts::class,
15
        Commands\DeployInit::class,
16
        Commands\DeployList::class,
17
        Commands\DeployRollback::class,
18
        Commands\DeployUnlock::class,
19
        Commands\DeployRun::class,
20
        Commands\Logs::class,
21
        Commands\Ssh::class,
22
    ];
23
24
    public function boot()
25
    {
26
        if ($this->app->runningInConsole()) {
27
            $this->commands($this->commands);
28
        }
29
    }
30
}
31