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

TestingServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 17
rs 10
c 4
b 0
f 0
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 2
A register() 0 2 1
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