Completed
Pull Request — master (#13)
by
unknown
01:29
created
src/Provider/SmsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         /**
25 25
          * Bind to service container.
26 26
          */
27
-        $this->app->singleton('tzsk-sms', function () {
27
+        $this->app->singleton('tzsk-sms', function() {
28 28
             return new SmsManager();
29 29
         });
30 30
     }
Please login to merge, or discard this patch.
src/Abstracts/Driver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function to($numbers)
28 28
     {
29 29
         $recipients = is_array($numbers) ? $numbers : [$numbers];
30
-        $recipients = array_map(function ($item) {
30
+        $recipients = array_map(function($item) {
31 31
             return trim($item);
32 32
         }, array_merge($this->recipients, $recipients));
33 33
 
Please login to merge, or discard this patch.
src/Config/sms.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
             'from' => 'Your Default From Number',
35 35
         ],
36 36
         'linkmobility' => [
37
-          'url' => 'http://simple.pswin.com', # Country Wise this may change.
38
-          'username' => 'Your Username',
39
-          'password' => 'Your Password',
40
-          'sender' => 'Sender name',
37
+            'url' => 'http://simple.pswin.com', # Country Wise this may change.
38
+            'username' => 'Your Username',
39
+            'password' => 'Your Password',
40
+            'sender' => 'Sender name',
41 41
         ],
42 42
         'melipayamak' => [ #install at first: composer require melipayamak/php
43 43
             'username' => 'Your Username',
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
           'password' => 'Your Password',
40 40
           'sender' => 'Sender name',
41 41
         ],
42
-        'melipayamak' => [ #install at first: composer require melipayamak/php
42
+        'melipayamak' => [#install at first: composer require melipayamak/php
43 43
             'username' => 'Your Username',
44 44
             'password' => 'Your Password',
45 45
             'from' => 'Sender name',
Please login to merge, or discard this patch.
src/Drivers/Melipayamak.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * @param bool $flash
39 39
      * @return $this
40 40
      */
41
-    public function asFlash($flash=true)
41
+    public function asFlash($flash = true)
42 42
     {
43 43
         $this->settings->flash = $flash;
44 44
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function send()
54 54
     {
55
-        try{
55
+        try {
56 56
             $sms = $this->client->sms();
57 57
             $response = ['status' => true, 'data' =>[]];
58 58
             foreach ($this->recipients as $recipient) {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                     $this->settings->flash
64 64
                 );
65 65
             }
66
-        } catch(\Exception $e) {
66
+        } catch (\Exception $e) {
67 67
             $response['status'][$recipient] = false;
68 68
             $response['data'][$recipient] = $e->getMessage();
69 69
         } finally {
Please login to merge, or discard this patch.