Passed
Push — master ( bcdbf3...5b3224 )
by Marc
11:54
created
src/Commands/AddNotificationByHost.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
                 if(!$configure[$channel]) {
51 51
                     unset($configure[$channel]);
52 52
                 }
53
-            }
54
-            else {
53
+            } else {
55 54
                 $this->error("No configuration for ".$channel." in server-monitor-plugin-notification-by-host.php file configuration");
56 55
             }
57 56
         }
@@ -99,8 +98,7 @@  discard block
 block discarded – undo
99 98
     private function configuration($host, $notificationsParameters) {
100 99
         if(!$notificationsParameters) {
101 100
             $this->warn("The host {$host->name} has no notification configure !");
102
-        }
103
-        else {
101
+        } else {
104 102
 
105 103
             $this->line("----- Notification configuration -----");
106 104
 
Please login to merge, or discard this patch.