AppServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 6 2
1
<?php
2
3
namespace App\Providers;
4
5
use Laravel\Dusk\DuskServiceProvider;
6
use Illuminate\Support\Facades\Schema;
7
use Illuminate\Support\ServiceProvider;
8
9
class AppServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap any application services.
13
     *
14
     * @return void
15
     */
16
    public function boot()
17
    {
18
        Schema::defaultStringLength(191);
19
    }
20
21
    /**
22
     * Register any application services.
23
     *
24
     * @return void
25
     */
26
    public function register()
27
    {
28
        if ($this->app->environment('local', 'testing')) {
29
            $this->app->register(DuskServiceProvider::class);
30
        }
31
    }
32
}
33