Completed
Pull Request — master (#47)
by Şəhriyar
12:55
created

AppServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php namespace App\Providers;
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Support\ServiceProvider;
5
use Laravel\Dusk\DuskServiceProvider;
6
7
class AppServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap any application services.
11
     *
12
     * @return void
13
     */
14 15
    public function boot()
15
    {
16 15
        Schema::defaultStringLength(191);
17 15
    }
18
19
    /**
20
     * Register any application services.
21
     *
22
     * @return void
23
     */
24 15
    public function register()
25
    {
26 15
        if (app()->environment('local', 'testing')) {
27 15
            app()->register(DuskServiceProvider::class);
28
        }
29 15
    }
30
}
31