| Conditions | 5 |
| Paths | 5 |
| Total Lines | 20 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | public function trigger() |
||
| 24 | { |
||
| 25 | switch ($this->method) { |
||
| 26 | case 'ultraFastSend': |
||
| 27 | try { |
||
| 28 | return Smsir::ultraFastSend($this->parameters, $this->templateId, $this->to); |
||
|
|
|||
| 29 | } catch (\GuzzleHttp\Exception\GuzzleException $e) { |
||
| 30 | Log::error($e->getMessage()); |
||
| 31 | } |
||
| 32 | break; |
||
| 33 | case 'sendVerificationCode': |
||
| 34 | try { |
||
| 35 | return Smsir::sendVerificationCode($this->code, $this->to); |
||
| 36 | } catch (\GuzzleHttp\Exception\GuzzleException $e) { |
||
| 37 | Log::error($e->getMessage()); |
||
| 38 | } |
||
| 39 | break; |
||
| 40 | default: |
||
| 41 | # code... |
||
| 42 | break; |
||
| 43 | } |
||
| 89 |