@@ -52,6 +52,9 @@ |
||
52 | 52 | return app($notifiableClass); |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @return Event |
|
57 | + */ |
|
55 | 58 | protected function determineNotification($event): ?BaseNotification |
56 | 59 | { |
57 | 60 | $eventName = class_basename($event); |
@@ -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')) { |