AppServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nc 1
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