Completed
Pull Request — master (#77)
by
unknown
01:23
created
src/Notifications/EventHandler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Commands/SyncFile.php 1 patch
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) {
@@ -35,6 +38,9 @@  discard block
 block discarded – undo
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')) {
Please login to merge, or discard this patch.
src/Commands/DumpChecks.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -20,12 +20,23 @@
 block discarded – undo
20 20
         file_put_contents($file, json_encode($data, JSON_PRETTY_PRINT).PHP_EOL);
21 21
     }
22 22
 
23
+    /**
24
+     * @return string
25
+     */
23 26
     protected function getHostsWithChecks()
24 27
     {
25 28
         $hosts = HostRepository::all();
26 29
         $result = $hosts->map(
30
+
31
+            /**
32
+             * @return string
33
+             */
27 34
             function (Host $host) {
28 35
                 $checks = $host->checks->map(
36
+
37
+                    /**
38
+                     * @return string
39
+                     */
29 40
                     function (Check $check) {
30 41
                         return $check->type;
31 42
                     }
Please login to merge, or discard this patch.