Passed
Push — master ( 9aa048...898b5e )
by Mattia
04:05
created

AppServiceProvider::register()   A

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 Illuminate\Support\ServiceProvider;
8
9
/**
10
 * Class AppServiceProvider.
11
 */
12
class AppServiceProvider extends ServiceProvider
13
{
14
    /**
15
     * Bootstrap any application services.
16
     */
17
    public function boot(): void
18
    {
19
        if (env('APP_FORCE_HTTPS')) {
20
            $this->app['request']->server->set('HTTPS', true);
21
        }
22
    }
23
24
    /**
25
     * Register any application services.
26
     */
27
    public function register(): void
28
    {
29
    }
30
}
31