Passed
Push — main ( eaeb29...d735a8 )
by jaber
03:56
created
src/Drivers/smsir.php 1 patch
Spacing   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.