AppServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 24
ccs 7
cts 7
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 6 2
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 19
    public function boot()
15
    {
16 19
        Schema::defaultStringLength(191);
17 19
    }
18
19
    /**
20
     * Register any application services.
21
     *
22
     * @return void
23
     */
24 19
    public function register()
25
    {
26 19
        if (app()->environment('local', 'testing')) {
27 19
            app()->register(DuskServiceProvider::class);
28
        }
29 19
    }
30
}
31