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

TestingServiceProvider.php$0 ➔ boot()   A

Complexity

Conditions 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 12
rs 9.8666
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