Completed
Push — master ( d26310...92cf81 )
by Songda
14s queued 10s
created
src/Gateways/Wechat.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
         $this->payload = array_merge($this->payload, $params);
149 149
 
150
-        $gateway = get_class($this).'\\'.Str::studly($gateway).'Gateway';
150
+        $gateway = get_class($this) . '\\' . Str::studly($gateway) . 'Gateway';
151 151
 
152 152
         if (class_exists($gateway)) {
153 153
             return $this->makePay($gateway);
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
             unset($this->payload['spbill_create_ip']);
227 227
         }
228 228
 
229
-        $gateway = get_class($this).'\\'.Str::studly($type).'Gateway';
229
+        $gateway = get_class($this) . '\\' . Str::studly($type) . 'Gateway';
230 230
 
231 231
         if (!class_exists($gateway) || !is_callable([new $gateway(), 'find'])) {
232 232
             throw new GatewayException("{$gateway} Done Not Exist Or Done Not Has FIND Method");
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
         );
370 370
 
371 371
         if (is_array($result)) {
372
-            throw new GatewayException('Get Wechat API Error: '.$result['return_msg'], $result);
372
+            throw new GatewayException('Get Wechat API Error: ' . $result['return_msg'], $result);
373 373
         }
374 374
 
375 375
         return $result;
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
         $app = new $gateway();
392 392
 
393 393
         if ($app instanceof GatewayInterface) {
394
-            return $app->pay($this->gateway, array_filter($this->payload, function ($value) {
394
+            return $app->pay($this->gateway, array_filter($this->payload, function($value) {
395 395
                 return $value !== '' && !is_null($value);
396 396
             }));
397 397
         }
Please login to merge, or discard this patch.