@@ -86,7 +86,7 @@ |
||
86 | 86 | * |
87 | 87 | * @param $code - the response code |
88 | 88 | * @param null $message - an optional message aside from the default ones |
89 | - * @param null $provider - the SMS provider used. Should only be enabled during debug mode. |
|
89 | + * @param string $provider - the SMS provider used. Should only be enabled during debug mode. |
|
90 | 90 | */ |
91 | 91 | protected function response($code, $message = null, $provider) |
92 | 92 | { |
@@ -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 | /** |
@@ -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); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $url = $conf['url'] . '?' . http_build_query($query); |
45 | 45 | |
46 | 46 | $ch = curl_init(); |
47 | - curl_setopt($ch,CURLOPT_URL,$url); |
|
47 | + curl_setopt($ch, CURLOPT_URL, $url); |
|
48 | 48 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
49 | 49 | curl_setopt($ch, CURLOPT_TIMEOUT, 240); |
50 | 50 | $result = curl_exec($ch); |