@@ -39,10 +39,10 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function __construct() |
| 41 | 41 | { |
| 42 | - $this->username = config('sms.drivers.' . $this->drive . '.username'); |
|
| 43 | - $this->password = config('sms.drivers.' . $this->drive . '.password'); |
|
| 44 | - $this->from = config('sms.drivers.' . $this->drive . '.from'); |
|
| 45 | - $this->url = config('sms.drivers.' . $this->drive . '.urlPattern'); |
|
| 42 | + $this->username = config('sms.drivers.'.$this->drive.'.username'); |
|
| 43 | + $this->password = config('sms.drivers.'.$this->drive.'.password'); |
|
| 44 | + $this->from = config('sms.drivers.'.$this->drive.'.from'); |
|
| 45 | + $this->url = config('sms.drivers.'.$this->drive.'.urlPattern'); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -208,8 +208,7 @@ discard block |
||
| 208 | 208 | { |
| 209 | 209 | $inputs = $this->setMessageExceptions(); |
| 210 | 210 | |
| 211 | - $param = array |
|
| 212 | - ( |
|
| 211 | + $param = array( |
|
| 213 | 212 | 'lineNumber' => $this->from, |
| 214 | 213 | 'MessageText' => $text, |
| 215 | 214 | 'Mobiles' => json_encode($inputs['numbers']), |
@@ -230,11 +229,11 @@ discard block |
||
| 230 | 229 | |
| 231 | 230 | private function setMessageExceptions() |
| 232 | 231 | { |
| 233 | - $apiKey = config('sms.drivers.' . $this->drive . '.apiKey'); |
|
| 232 | + $apiKey = config('sms.drivers.'.$this->drive.'.apiKey'); |
|
| 234 | 233 | if ($apiKey == '') |
| 235 | 234 | throw new \Exception('The apiKey of SMS.ir muse be set in config'); |
| 236 | 235 | |
| 237 | - $this->url = config('sms.drivers.' . $this->drive . '.urlNormal'); |
|
| 236 | + $this->url = config('sms.drivers.'.$this->drive.'.urlNormal'); |
|
| 238 | 237 | if ($this->url == '') |
| 239 | 238 | throw new \Exception('The url of SMS.ir muse be set in config'); |
| 240 | 239 | |