AppServiceProvider::boot()   A
last analyzed

Complexity

Conditions 3
Paths 4

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 8
rs 10
cc 3
nc 4
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Minepic\Providers;
6
7
use Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider;
8
use Illuminate\Support\ServiceProvider;
9
10
/**
11
 * Class AppServiceProvider.
12
 */
13
class AppServiceProvider extends ServiceProvider
14
{
15
    /**
16
     * Bootstrap any application services.
17
     */
18
    public function boot(): void
19
    {
20
        if (env('APP_FORCE_HTTPS')) {
21
            $this->app['request']->server->set('HTTPS', true);
22
        }
23
24
        if ($this->app->environment() === 'local') {
25
            $this->app->register(IdeHelperServiceProvider::class);
26
        }
27
    }
28
29
    /**
30
     * Register any application services.
31
     */
32
    public function register(): void
33
    {
34
    }
35
}
36