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

AppServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 3
c 2
b 1
f 0
dl 0
loc 17
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 2 1
A boot() 0 4 2
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