AppServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Support\Facades\URL;
6
use Illuminate\Support\ServiceProvider;
7
8
class AppServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Register any application services.
12
     *
13
     * @return void
14
     */
15
    public function register()
16
    {
17
        //
18
    }
19
20
     /**
21
     * Bootstrap any application services.
22
     *
23
     * @return void
24
     */
25
    public function boot()
26
    {
27
        //
28
        if((\App::environment('dev')) |  (\App::environment('stage')) | (\App::environment('prod'))) {
0 ignored issues
show
Bug introduced by
Are you sure you want to use the bitwise | or did you mean ||?
Loading history...
29
            URL::forceScheme('https');
30
        }
31
    }
32
}
33