@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace Spatie\ServerMonitor\Models\Concerns; |
4 | 4 | |
5 | 5 | use Spatie\ServerMonitor\Events\CheckFailed; |
6 | -use Spatie\ServerMonitor\Events\CheckWarning; |
|
7 | 6 | use Spatie\ServerMonitor\Events\CheckSucceeded; |
7 | +use Spatie\ServerMonitor\Events\CheckWarning; |
|
8 | 8 | use Spatie\ServerMonitor\Helpers\ConsoleOutput; |
9 | 9 | use Spatie\ServerMonitor\Models\Enums\CheckStatus; |
10 | 10 |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Exception; |
6 | 6 | use Spatie\ServerMonitor\Models\Check; |
7 | -use Symfony\Component\Process\Process; |
|
8 | 7 | use Spatie\ServerMonitor\Models\Enums\CheckStatus; |
8 | +use Symfony\Component\Process\Process; |
|
9 | 9 | |
10 | 10 | abstract class CheckDefinition |
11 | 11 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\ServerMonitor\Commands; |
4 | 4 | |
5 | -use Spatie\ServerMonitor\Models\Host; |
|
6 | 5 | use Spatie\ServerMonitor\Models\Check; |
6 | +use Spatie\ServerMonitor\Models\Host; |
|
7 | 7 | |
8 | 8 | class SyncFile extends BaseCommand |
9 | 9 | { |
@@ -24,6 +24,9 @@ discard block |
||
24 | 24 | $this->deleteMissingHosts($hostsInFile); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param \Illuminate\Support\Collection $hostsInFile |
|
29 | + */ |
|
27 | 30 | protected function createOrUpdateHostsFromFile($hostsInFile) |
28 | 31 | { |
29 | 32 | $hostsInFile->each(function ($hostAttributes) { |
@@ -35,6 +38,9 @@ discard block |
||
35 | 38 | $this->info("Synced {$hostsInFile->count()} host(s) to database"); |
36 | 39 | } |
37 | 40 | |
41 | + /** |
|
42 | + * @param \Illuminate\Support\Collection $hostsInFile |
|
43 | + */ |
|
38 | 44 | protected function deleteMissingHosts($hostsInFile) |
39 | 45 | { |
40 | 46 | if (! $this->option('delete-missing')) { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\ServerMonitor\Models\Concerns; |
4 | 4 | |
5 | -use Symfony\Component\Process\Process; |
|
6 | 5 | use Spatie\ServerMonitor\Manipulators\Manipulator; |
6 | +use Symfony\Component\Process\Process; |
|
7 | 7 | |
8 | 8 | trait HasProcess |
9 | 9 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Spatie\ServerMonitor\Models\Presenters; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use Spatie\ServerMonitor\Helpers\Emoji; |
|
7 | 6 | |
8 | 7 | trait HostPresenter |
9 | 8 | { |