@@ -27,25 +27,25 @@ |
||
27 | 27 | public function choice($question, array $choices, $default = null, $attempts = null, $multiple = null) |
28 | 28 | { |
29 | 29 | $result = $this->answers[$this->answer]; |
30 | - if($multiple) { |
|
31 | - if(!is_array($this->answers[$this->answer])) { |
|
30 | + if ($multiple) { |
|
31 | + if (!is_array($this->answers[$this->answer])) { |
|
32 | 32 | $result = [$this->answers[$this->answer]]; |
33 | 33 | } |
34 | 34 | } |
35 | - $this->answer ++; |
|
35 | + $this->answer++; |
|
36 | 36 | return $result; |
37 | 37 | } |
38 | 38 | public function confirm($question, $default = false) |
39 | 39 | { |
40 | - return $this->answers[$this->answer ++]; |
|
40 | + return $this->answers[$this->answer++]; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | public function ask($question, $default = null) { |
44 | - return $this->answers[$this->answer ++]; |
|
44 | + return $this->answers[$this->answer++]; |
|
45 | 45 | } |
46 | 46 | }; |
47 | 47 | |
48 | - $this->app->bind('command.server-monitor:add-notification-host', function () { |
|
48 | + $this->app->bind('command.server-monitor:add-notification-host', function() { |
|
49 | 49 | return $this->command; |
50 | 50 | }); |
51 | 51 | } |
@@ -16,10 +16,10 @@ |
||
16 | 16 | /* @var $host \Spatie\ServerMonitor\Models\Host */ |
17 | 17 | $host = $event->check->host()->first(); |
18 | 18 | $notifications = $host->getCustomProperty('notifications'); |
19 | - if(!$notifications) { |
|
19 | + if (!$notifications) { |
|
20 | 20 | return config('server-monitor.notifications.notifications.'.static::class); |
21 | 21 | } |
22 | - if(isset($notifications[static::class]) && isset($notifications[static::class]['channels'])) { |
|
22 | + if (isset($notifications[static::class]) && isset($notifications[static::class]['channels'])) { |
|
23 | 23 | return $notifications[static::class]['channels']; |
24 | 24 | } |
25 | 25 | return []; |