@@ -59,8 +59,7 @@ discard block |
||
| 59 | 59 | $hostNotifications = $host->getCustomProperty('notifications'); |
| 60 | 60 | if($hostNotifications) { |
| 61 | 61 | $rows = $this->displayCustomNotification($hostNotifications, $rows); |
| 62 | - } |
|
| 63 | - else { |
|
| 62 | + } else { |
|
| 64 | 63 | $rows = $this->displayGlobalNotification($rows); |
| 65 | 64 | } |
| 66 | 65 | $first = false; |
@@ -80,12 +79,10 @@ discard block |
||
| 80 | 79 | $configurationList[] = $configurationAttribut.':'.(is_array($configurationValue)?implode(',', $configurationValue):$configurationValue); |
| 81 | 80 | } |
| 82 | 81 | $temp[] = implode("\n", $configurationList); |
| 83 | - } |
|
| 84 | - else { |
|
| 82 | + } else { |
|
| 85 | 83 | $temp[] = 'Global'; |
| 86 | 84 | } |
| 87 | - } |
|
| 88 | - else { |
|
| 85 | + } else { |
|
| 89 | 86 | $temp[] = ''; |
| 90 | 87 | } |
| 91 | 88 | } |
@@ -102,8 +99,7 @@ discard block |
||
| 102 | 99 | foreach ($this->channels as $type => $channel) { |
| 103 | 100 | if (array_search($type, $global) !== false) { |
| 104 | 101 | $temp[] = 'Global'; |
| 105 | - } |
|
| 106 | - else { |
|
| 102 | + } else { |
|
| 107 | 103 | $temp[] = ''; |
| 108 | 104 | } |
| 109 | 105 | } |
@@ -50,8 +50,7 @@ discard block |
||
| 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 |
||
| 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 | |