Passed
Push — master ( dbfecf...07f9ad )
by Antonio Carlos
02:06
created

HealthCheckCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PragmaRX\Health\Console\Commands;
4
5
use PragmaRX\Health\Commands;
6
use Illuminate\Console\Command;
7
8
class HealthCheckCommand extends Command
9
{
10
    /**
11
     * The console command name.
12
     *
13
     * @var string
14
     */
15
    protected $name = 'health:check';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Check resources health and send error notifications.';
23
24
    /**
25
     * @return void
26
     */
27
    public function handle(Commands $commands): void
28
    {
29
        $commands->check($this);
30
    }
31
}
32