RunChecks::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
1
<?php
2
3
namespace Spatie\ServerMonitor\Commands;
4
5
use Spatie\ServerMonitor\CheckRepository;
6
7
class RunChecks extends BaseCommand
8
{
9
    protected $signature = 'server-monitor:run-checks';
10
11
    protected $description = 'Run all checks';
12
13
    public function handle()
14
    {
15
        $checks = CheckRepository::allThatShouldRun();
16
17
        $this->info('Start running '.count($checks).' checks...');
18
19
        $checks->runAll();
20
21
        $this->info('All done!');
22
    }
23
}
24