Completed
Push — master ( c99ab7...ae5ba9 )
by Songda
01:33
created
src/Gateways/Alipay.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
         $this->payload['biz_content'] = json_encode($params);
143 143
 
144
-        $gateway = get_class($this).'\\'.Str::studly($gateway).'Gateway';
144
+        $gateway = get_class($this) . '\\' . Str::studly($gateway) . 'Gateway';
145 145
 
146 146
         if (class_exists($gateway)) {
147 147
             return $this->makePay($gateway);
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function find($order, string $type = 'wap'): Collection
204 204
     {
205
-        $gateway = get_class($this).'\\'.Str::studly($type).'Gateway';
205
+        $gateway = get_class($this) . '\\' . Str::studly($type) . 'Gateway';
206 206
 
207 207
         if (!class_exists($gateway) || !is_callable([new $gateway(), 'find'])) {
208 208
             throw new GatewayException("{$gateway} Done Not Exist Or Done Not Has FIND Method");
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
         $app = new $gateway();
395 395
 
396 396
         if ($app instanceof GatewayInterface) {
397
-            return $app->pay($this->gateway, array_filter($this->payload, function ($value) {
397
+            return $app->pay($this->gateway, array_filter($this->payload, function($value) {
398 398
                 return $value !== '' && !is_null($value);
399 399
             }));
400 400
         }
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 
430 430
         Events::dispatch(new Events\MethodCalled(
431 431
             'Alipay',
432
-            'extend - '.$method,
432
+            'extend - ' . $method,
433 433
             $this->gateway,
434 434
             is_array($customize) ? $customize : $customize->toArray()
435 435
         ));
Please login to merge, or discard this patch.