LaradeckAddressGeneratorServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 2 1
A boot() 0 6 2
1
<?php
2
3
namespace Ngtfkx\Laradeck\AddressGenerator;
4
5
use Illuminate\Support\ServiceProvider;
6
use Ngtfkx\Laradeck\AddressGenerator\Commands\GetStat;
7
use Ngtfkx\Laradeck\AddressGenerator\Commands\ParseCityAddressRu;
8
9
class LaradeckAddressGeneratorServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Perform post-registration booting of services.
13
     *
14
     * @return void
15
     */
16
    public function boot()
17
    {
18
        if ($this->app->runningInConsole()) {
19
            $this->commands([
20
                ParseCityAddressRu::class,
21
                GetStat::class,
22
            ]);
23
        }
24
    }
25
26
    /**
27
     * Register any package services.
28
     *
29
     * @return void
30
     */
31
    public function register()
32
    {
33
        //
34
    }
35
}