Test Setup Failed
Push — master ( 3ebce0...118e78 )
by Syed Abidur
02:13
created
src/Providers/BdWebHost24.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             return [];
18 18
         }
19 19
 
20
-        $recipient = '880'.$matches[3];
20
+        $recipient = '880' . $matches[3];
21 21
 
22 22
         return [
23 23
             'contacts' => $recipient,
Please login to merge, or discard this patch.
src/SmsGatewayServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     public function boot()
10 10
     {
11 11
         $this->package('sarahman/sms-service-with-bd-providers', null, __DIR__);
12
-        $this->package('sarahman/laravel-http-request-api-log', null, __DIR__.'/../../laravel-http-request-api-log/src');
12
+        $this->package('sarahman/laravel-http-request-api-log', null, __DIR__ . '/../../laravel-http-request-api-log/src');
13 13
     }
14 14
 
15 15
     public function register()
Please login to merge, or discard this patch.
src/Providers/SslPlus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             return [];
18 18
         }
19 19
 
20
-        $recipient = '880'.$matches[3];
20
+        $recipient = '880' . $matches[3];
21 21
 
22 22
         return [
23 23
             'csms_id' => isset($params['csms_id']) ? $params['csms_id'] : rand(100000, 999999),
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                             throw new Exception($response->getResponseString(), 500);
154 154
                         }
155 155
                     } catch (Exception $e) {
156
-                        Log::error('Curl error response: '.$e->getMessage());
156
+                        Log::error('Curl error response: ' . $e->getMessage());
157 157
 
158 158
                         throw $e;
159 159
                     }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
             'timeout' => 30,
188 188
         ];
189 189
 
190
-        switch(get_class($this->provider)) {
190
+        switch (get_class($this->provider)) {
191 191
             case self::PROVIDER_GRAMEENPHONE:
192 192
             case self::PROVIDER_NOVOCOM:
193 193
                 $options += [
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
                     'httpheader' => [
203 203
                         'Content-Type: application/json',
204 204
                         'Accept: application/json',
205
-                        'user_id:'.$data['user_id'],
206
-                        'password:'.$data['password'],
205
+                        'user_id:' . $data['user_id'],
206
+                        'password:' . $data['password'],
207 207
                     ],
208 208
                     'post'       => 1,
209 209
                     'postfields' => json_encode($data),
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                 $options += [
216 216
                     'httpheader'    => [
217 217
                         'Content-Type: application/json',
218
-                        'Content-Length: '.strlen($encodedData),
218
+                        'Content-Length: ' . strlen($encodedData),
219 219
                         'Accept: application/json',
220 220
                     ],
221 221
                     'customrequest' => 'POST',
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         }
233 233
 
234 234
         if ($this->provider instanceof NeedsAuthenticationInterface) {
235
-            $options['httpheader'][] = 'Authorization: Bearer '.$this->provider->getAccessToken();
235
+            $options['httpheader'][] = 'Authorization: Bearer ' . $this->provider->getAccessToken();
236 236
         }
237 237
 
238 238
         return $options;
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         isset($options['returntransfer']) || $options['returntransfer'] = true;
252 252
 
253 253
         foreach ($options as $key => $value) {
254
-            $option = 'CURLOPT_'.strtoupper($key);
254
+            $option = 'CURLOPT_' . strtoupper($key);
255 255
             $curlOptions[constant($option)] = $value;
256 256
         }
257 257
 
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 
276 276
         if ($response != true) {
277 277
             $errorNumber = curl_errno($ch);
278
-            $eMsg = 'cURL Error # '.$errorNumber.' | cURL Error Message: '.curl_error($ch);
278
+            $eMsg = 'cURL Error # ' . $errorNumber . ' | cURL Error Message: ' . curl_error($ch);
279 279
 
280 280
             curl_close($ch);
281 281
 
Please login to merge, or discard this patch.