Completed
Push — master ( 6b685a...fad130 )
by Songda
01:45
created
src/Gateways/Alipay.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         $this->payload['biz_content'] = json_encode($params);
127 127
 
128
-        $gateway = get_class($this).'\\'.Str::studly($gateway).'Gateway';
128
+        $gateway = get_class($this) . '\\' . Str::studly($gateway) . 'Gateway';
129 129
 
130 130
         if (class_exists($gateway)) {
131 131
             return $this->makePay($gateway);
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
             $type = $type === true ? 'refund' : 'transfer';
196 196
         }
197 197
 
198
-        $gateway = get_class($this).'\\'.Str::studly($type).'Gateway';
198
+        $gateway = get_class($this) . '\\' . Str::studly($type) . 'Gateway';
199 199
 
200 200
         if (!class_exists($gateway) || !is_callable([new $gateway(), 'find'])) {
201 201
             throw new GatewayException("{$gateway} Done Not Exist Or Done Not Has FIND Method");
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
         $app = new $gateway();
355 355
 
356 356
         if ($app instanceof GatewayInterface) {
357
-            return $app->pay($this->gateway, array_filter($this->payload, function ($value) {
357
+            return $app->pay($this->gateway, array_filter($this->payload, function($value) {
358 358
                 return $value !== '' && !is_null($value);
359 359
             }));
360 360
         }
Please login to merge, or discard this patch.