DuskServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 5 2
1
<?php
2
3
namespace Staudenmeir\DuskUpdater;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class DuskServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Register any package services.
11
     *
12
     * @return void
13
     */
14 8
    public function register()
15
    {
16 8
        if ($this->app->runningInConsole()) {
17 8
            $this->commands([
18 8
                UpdateCommand::class,
19 8
            ]);
20
        }
21
    }
22
}
23