AppServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\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
    public function boot()
15
    {
16
        //
17
    }
18
19
    /**
20
     * Register any application services.
21
     *
22
     * @return void
23
     */
24
    public function register()
25
    {
26
		//
27
    	// environment specific application initialization
28
    	//
29
    	switch( $this->app->environment() )
30
    	{
31
			// development env
32
			case 'local':
33
				if( $this->app->runningInConsole() )
34
				{
35
					// Some dev tools to generate some code completion helpers (some fake php files)
36
					$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
37
				}
38
				// A 'in browser' debug bar
39
				$this->app->register(\Barryvdh\Debugbar\ServiceProvider::class);
40
				break;
41
			// testing env
42
			case '':
43
				break;
44
			// production env
45
			case '':
46
				break;
47
		}
48
49
    }
50
}
51