@@ -24,7 +24,7 @@ |
||
| 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 | } |
@@ -27,7 +27,7 @@ |
||
| 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 | |
@@ -34,10 +34,10 @@ |
||
| 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', |
@@ -39,7 +39,7 @@ |
||
| 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', |
@@ -38,7 +38,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 { |