@@ -141,7 +141,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | )); |