src/ridvanbaluyos/sms/providers/Nexmo.php 1 location
|
@@ 57-61 (lines=5) @@
|
| 54 |
|
|
| 55 |
|
$result = json_decode($result); |
| 56 |
|
|
| 57 |
|
if (intval($result->messages[0]->status) === 0) { |
| 58 |
|
$this->response(200, $result, null, $this->className); |
| 59 |
|
} else { |
| 60 |
|
$this->response(500, $result, null, $this->className); |
| 61 |
|
} |
| 62 |
|
} catch (Exception $e) { |
| 63 |
|
|
| 64 |
|
} |
src/ridvanbaluyos/sms/providers/Twilio.php 1 location
|
@@ 56-60 (lines=5) @@
|
| 53 |
|
curl_close($ch); |
| 54 |
|
$result = json_decode($result); |
| 55 |
|
|
| 56 |
|
if (is_string($result->status)) { |
| 57 |
|
$this->response(200, $result, null, $this->className); |
| 58 |
|
} else { |
| 59 |
|
$this->response(500, $result, null, $this->className); |
| 60 |
|
} |
| 61 |
|
} catch (Exception $e) { |
| 62 |
|
|
| 63 |
|
} |