| Total Complexity | 10 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Telegram extends AbstractDriver |
||
| 6 | { |
||
| 7 | |||
| 8 | protected function check() |
||
| 9 | { |
||
| 10 | return $this->isEnabled() && (isset($this->config['chats']) && $this->config['chats'] && is_array($this->config['chats']) && isset($this->config['token']) && $this->config['token']); |
||
| 11 | } // end check |
||
| 12 | |||
| 13 | public function send() |
||
| 47 | } |
||
| 48 | } // end send |
||
| 51 |
If you suppress an error, we recommend checking for the error condition explicitly: