RunChecks   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 10 1
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