@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $query = [ |
| 38 | 38 | 'senderid' => $conf['senderid'], |
| 39 | 39 | 'clientid' => $conf['clientid'], |
| 40 | - 'passkey' => $conf['passkey'] , |
|
| 40 | + 'passkey' => $conf['passkey'], |
|
| 41 | 41 | 'msisdn' => $phoneNumber, |
| 42 | 42 | 'message' => base64_encode($message), |
| 43 | 43 | 'dlr-call' => $conf['dlr-call'], |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $url = $conf['url'] . '?' . http_build_query($query); |
| 48 | 48 | |
| 49 | 49 | $ch = curl_init(); |
| 50 | - curl_setopt($ch,CURLOPT_URL,$url); |
|
| 50 | + curl_setopt($ch, CURLOPT_URL, $url); |
|
| 51 | 51 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
| 52 | 52 | curl_setopt($ch, CURLOPT_TIMEOUT, 240); |
| 53 | 53 | $result = curl_exec($ch); |
@@ -2,9 +2,6 @@ |
||
| 2 | 2 | namespace ridvanbaluyos\sms; |
| 3 | 3 | |
| 4 | 4 | use ridvanbaluyos\sms\providers\PromoTexter; |
| 5 | -use ridvanbaluyos\sms\providers\RisingTide; |
|
| 6 | -use ridvanbaluyos\sms\providers\Semaphore; |
|
| 7 | -use ridvanbaluyos\sms\providers\Chikka; |
|
| 8 | 5 | use Noodlehaus\Config as Config; |
| 9 | 6 | |
| 10 | 7 | /** |
@@ -94,8 +94,8 @@ |
||
| 94 | 94 | * standardizes the responses of each. |
| 95 | 95 | * |
| 96 | 96 | * @param $code - the response code |
| 97 | - * @param null $message - an optional message aside from the default ones |
|
| 98 | - * @param null $provider - the SMS provider used. Should only be enabled during debug mode. |
|
| 97 | + * @param null|string $message - an optional message aside from the default ones |
|
| 98 | + * @param string $provider - the SMS provider used. Should only be enabled during debug mode. |
|
| 99 | 99 | * |
| 100 | 100 | * @return string $response - the JSON formatted response. |
| 101 | 101 | */ |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $url = $conf['url'] . '?' . http_build_query($query); |
| 47 | 47 | |
| 48 | 48 | $ch = curl_init(); |
| 49 | - curl_setopt($ch,CURLOPT_URL,$url); |
|
| 49 | + curl_setopt($ch, CURLOPT_URL, $url); |
|
| 50 | 50 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
| 51 | 51 | curl_setopt($ch, CURLOPT_TIMEOUT, 240); |
| 52 | 52 | $result = curl_exec($ch); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $url = $conf['url'] . '/account?' . http_build_query($query); |
| 80 | 80 | |
| 81 | 81 | $ch = curl_init(); |
| 82 | - curl_setopt($ch,CURLOPT_URL,$url); |
|
| 82 | + curl_setopt($ch, CURLOPT_URL, $url); |
|
| 83 | 83 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
| 84 | 84 | curl_setopt($ch, CURLOPT_TIMEOUT, 240); |
| 85 | 85 | $result = curl_exec($ch); |