Completed
Push — master ( d4b169...1f3ead )
by Freek
02:10
created
src/Commands/SyncFile.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
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) {
@@ -36,6 +39,9 @@  discard block
 block discarded – undo
36 39
         $this->info("Synced {$hostsInFile->count()} host(s) to database");
37 40
     }
38 41
 
42
+    /**
43
+     * @param \Illuminate\Support\Collection $hostsInFile
44
+     */
39 45
     protected function deleteMissingHosts($hostsInFile)
40 46
     {
41 47
         if (!$this->option('delete-missing')) {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.