| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | #[\Override] |
||
| 38 | public function send(string $identifier, string $message) { |
||
| 39 | $apiKey = $this->getApiKey(); |
||
| 40 | try { |
||
| 41 | $this->client->get('https://gateway.sms77.io/api/sms', [ |
||
| 42 | 'query' => [ |
||
| 43 | 'p' => $apiKey, |
||
| 44 | 'to' => $identifier, |
||
| 45 | 'text' => $message, |
||
| 46 | 'sendWith' => 'nextcloud' |
||
| 47 | ], |
||
| 48 | ]); |
||
| 49 | } catch (Exception $ex) { |
||
| 50 | throw new MessageTransmissionException(); |
||
| 51 | } |
||
| 54 |