Completed
Push — master ( b5c521...3f3d20 )
by Songda
01:37
created
src/Gateways/Wechat.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
         $this->payload = array_merge($this->payload, $params);
147 147
 
148
-        $gateway = get_class($this).'\\'.Str::studly($gateway).'Gateway';
148
+        $gateway = get_class($this) . '\\' . Str::studly($gateway) . 'Gateway';
149 149
 
150 150
         if (class_exists($gateway)) {
151 151
             return $this->makePay($gateway);
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
         );
345 345
 
346 346
         if (is_array($result)) {
347
-            throw new GatewayException('Get Wechat API Error: '.$result['return_msg'], $result);
347
+            throw new GatewayException('Get Wechat API Error: ' . $result['return_msg'], $result);
348 348
         }
349 349
 
350 350
         return $result;
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         $app = new $gateway();
367 367
 
368 368
         if ($app instanceof GatewayInterface) {
369
-            return $app->pay($this->gateway, array_filter($this->payload, function ($value) {
369
+            return $app->pay($this->gateway, array_filter($this->payload, function($value) {
370 370
                 return $value !== '' && !is_null($value);
371 371
             }));
372 372
         }
Please login to merge, or discard this patch.