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