Passed
Branch master (665dbe)
by Ridvan Lakas ng Bayan
04:05 queued 02:23
created
src/ridvanbaluyos/sms/Sms.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/ridvanbaluyos/sms/providers/PromoTexter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/ridvanbaluyos/sms/providers/Semaphore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.