Passed
Push — master ( e29574...a49497 )
by Caen
03:36
created

TestingServiceProvider::register()

Size

Total Lines 16
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
c 4
b 0
f 0
dl 0
loc 16
eloc 11
nc 1
nop 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A TestingServiceProvider.php$0 ➔ boot() 0 12 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
        $this->app->register(new class($this->app) extends \Laravel\Dusk\DuskServiceProvider {
15
            /** @inheritDoc */
16
            public function boot()
17
            {
18
                if ($this->app->runningInConsole()) {
19
                    $this->commands([
20
                        \Laravel\Dusk\Console\InstallCommand::class,
21
                        \Laravel\Dusk\Console\DuskCommand::class,
22
                        \Laravel\Dusk\Console\DuskFailsCommand::class,
23
                        \Laravel\Dusk\Console\MakeCommand::class,
24
                        \Laravel\Dusk\Console\PageCommand::class,
25
                        \Laravel\Dusk\Console\PurgeCommand::class,
26
                        \Laravel\Dusk\Console\ComponentCommand::class,
27
                        \Laravel\Dusk\Console\ChromeDriverCommand::class,
28
                    ]);
29
                }
30
            }
31
        });
32
    }
33
34
    /**
35
     * Bootstrap the application services.
36
     */
37
    public function boot()
38
    {
39
        //
40
    }
41
}
42