Passed
Push — master ( 21719d...7c0196 )
by Caen
03:52 queued 12s
created

TestingServiceProvider::boot()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 2
eloc 2
nc 2
nop 0
dl 0
loc 4
rs 10
c 2
b 0
f 0
1
<?php
2
3
namespace Hyde\Testing;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class TestingServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Register the application services.
11
     */
12
    public function register()
13
    {
14
        //
15
    }
16
17
    /**
18
     * Bootstrap the application services.
19
     */
20
    public function boot()
21
    {
22
        if (env('DUSK_ENABLED', false)) {
23
            $this->app->register(\Hyde\Testing\DuskServiceProvider::class);
24
        }
25
    }
26
}
27