AppServiceProvider   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 4
eloc 5
c 1
b 0
f 1
dl 0
loc 21
rs 10

2 Methods

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