Completed
Push — master ( 026505...b42306 )
by Songda
02:02
created
src/Gateways/Alipay.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
         $this->payload['biz_content'] = json_encode($params);
128 128
 
129
-        $gateway = get_class($this).'\\'.Str::studly($gateway).'Gateway';
129
+        $gateway = get_class($this) . '\\' . Str::studly($gateway) . 'Gateway';
130 130
 
131 131
         if (class_exists($gateway)) {
132 132
             return $this->makePay($gateway);
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
             $type = 'wap';
204 204
         }
205 205
 
206
-        $gateway = get_class($this).'\\'.Str::studly($type).'Gateway';
206
+        $gateway = get_class($this) . '\\' . Str::studly($type) . 'Gateway';
207 207
 
208 208
         if (!class_exists($gateway) || !is_callable([new $gateway(), 'find'])) {
209 209
             throw new GatewayException("{$gateway} Done Not Exist Or Done Not Has FIND Method");
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
         $app = new $gateway();
363 363
 
364 364
         if ($app instanceof GatewayInterface) {
365
-            return $app->pay($this->gateway, array_filter($this->payload, function ($value) {
365
+            return $app->pay($this->gateway, array_filter($this->payload, function($value) {
366 366
                 return $value !== '' && !is_null($value);
367 367
             }));
368 368
         }
Please login to merge, or discard this patch.