LaravelEnvServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 10
c 2
b 0
f 1
dl 0
loc 25
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A register() 0 12 1
1
<?php
2
3
namespace msztorc\LaravelEnv;
4
5
use Illuminate\Support\ServiceProvider;
6
use msztorc\LaravelEnv\Commands\EnvDelCommand;
7
use msztorc\LaravelEnv\Commands\EnvGetCommand;
8
use msztorc\LaravelEnv\Commands\EnvListCommand;
9
use msztorc\LaravelEnv\Commands\EnvSetCommand;
10
11
class LaravelEnvServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Bootstrap the application services.
15
     */
16
    public function boot()
17
    {
18
        // ...
19
    }
20
21
    /**
22
     * Register the application services.
23
     */
24
    public function register()
25
    {
26
        $this->app->bind('command.env:get', EnvGetCommand::class);
27
        $this->app->bind('command.env:set', EnvSetCommand::class);
28
        $this->app->bind('command.env:del', EnvDelCommand::class);
29
        $this->app->bind('command.env:list', EnvListCommand::class);
30
31
        $this->commands([
32
            'command.env:get',
33
            'command.env:set',
34
            'command.env:del',
35
            'command.env:list',
36
        ]);
37
    }
38
}
39