Passed
Push — master ( a9574a...4c3e72 )
by Arthur
07:41
created

AppServiceProvider   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 55.56%

Importance

Changes 0
Metric Value
wmc 4
eloc 5
dl 0
loc 28
ccs 5
cts 9
cp 0.5556
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A registerLocalPackages() 0 4 1
A register() 0 4 2
1
<?php
2
3
namespace Foundation\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class AppServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap any application services.
11
     *
12
     * @return void
13
     */
14 41
    public function boot()
15
    {
16
        //
17 41
    }
18
19
    /**
20
     * Register any application services.
21
     *
22
     * @return void
23
     */
24 41
    public function register()
25
    {
26 41
        if (env('APP_ENV') === 'local') {
27
            $this->registerLocalPackages();
28
        }
29 41
    }
30
31
    private function registerLocalPackages()
32
    {
33
        $this->app->register(\Nwidart\Modules\LaravelModulesServiceProvider::class);
34
        $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
35
    }
36
37
}
38