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

rviceProvider.php$0   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 2
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