@@ -115,10 +115,15 @@ discard block |
||
| 115 | 115 | throw new \RuntimeException('The method __process does not exist'); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - if (is_array($config)) $this->updateConfiguration($config); |
|
| 118 | + if (is_array($config)) { |
|
| 119 | + $this->updateConfiguration($config); |
|
| 120 | + } |
|
| 119 | 121 | |
| 120 | - if (!empty($update)) $this->update = $update; |
|
| 121 | - else $this->update = Telegram::getUpdate() !== false ? Telegram::getUpdate() : null; |
|
| 122 | + if (!empty($update)) { |
|
| 123 | + $this->update = $update; |
|
| 124 | + } else { |
|
| 125 | + $this->update = Telegram::getUpdate() !== false ? Telegram::getUpdate() : null; |
|
| 126 | + } |
|
| 122 | 127 | |
| 123 | 128 | if (empty($this->update)) { |
| 124 | 129 | TelegramLog::error( |
@@ -190,7 +195,9 @@ discard block |
||
| 190 | 195 | } |
| 191 | 196 | |
| 192 | 197 | $plugin['class']->__execute($this, $update); |
| 193 | - if ($this->active_spreader === false) break; |
|
| 198 | + if ($this->active_spreader === false) { |
|
| 199 | + break; |
|
| 200 | + } |
|
| 194 | 201 | } |
| 195 | 202 | |
| 196 | 203 | $this->active_spreader = false; |