@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | $this->payload['biz_content'] = json_encode($params); |
| 154 | 154 | |
| 155 | - $gateway = __CLASS__.'\\'.Str::studly($gateway).'Gateway'; |
|
| 155 | + $gateway = __CLASS__ . '\\' . Str::studly($gateway) . 'Gateway'; |
|
| 156 | 156 | |
| 157 | 157 | if (class_exists($gateway)) { |
| 158 | 158 | return $this->makePay($gateway); |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | */ |
| 208 | 208 | public function find($order, string $type = 'wap'): Collection |
| 209 | 209 | { |
| 210 | - $gateway = get_class($this).'\\'.Str::studly($type).'Gateway'; |
|
| 210 | + $gateway = get_class($this) . '\\' . Str::studly($type) . 'Gateway'; |
|
| 211 | 211 | |
| 212 | 212 | if (!class_exists($gateway) || !is_callable([new $gateway(), 'find'])) { |
| 213 | 213 | throw new GatewayException("{$gateway} Done Not Exist Or Done Not Has FIND Method"); |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | $app = new $gateway(); |
| 375 | 375 | |
| 376 | 376 | if ($app instanceof GatewayInterface) { |
| 377 | - return $app->pay($this->gateway, array_filter($this->payload, function ($value) { |
|
| 377 | + return $app->pay($this->gateway, array_filter($this->payload, function($value) { |
|
| 378 | 378 | return '' !== $value && !is_null($value); |
| 379 | 379 | })); |
| 380 | 380 | } |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | |
| 407 | 407 | Events::dispatch(new Events\MethodCalled( |
| 408 | 408 | 'Alipay', |
| 409 | - 'extend - '.$method, |
|
| 409 | + 'extend - ' . $method, |
|
| 410 | 410 | $this->gateway, |
| 411 | 411 | is_array($customize) ? $customize : $customize->toArray() |
| 412 | 412 | )); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | |
| 146 | 146 | $this->payload = array_merge($this->payload, $params); |
| 147 | 147 | |
| 148 | - $gateway = __CLASS__.'\\'.Str::studly($gateway).'Gateway'; |
|
| 148 | + $gateway = __CLASS__ . '\\' . Str::studly($gateway) . 'Gateway'; |
|
| 149 | 149 | |
| 150 | 150 | if (class_exists($gateway)) { |
| 151 | 151 | return $this->makePay($gateway); |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | unset($this->payload['spbill_create_ip']); |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | - $gateway = get_class($this).'\\'.Str::studly($type).'Gateway'; |
|
| 207 | + $gateway = get_class($this) . '\\' . Str::studly($type) . 'Gateway'; |
|
| 208 | 208 | |
| 209 | 209 | if (!class_exists($gateway) || !is_callable([new $gateway(), 'find'])) { |
| 210 | 210 | throw new GatewayException("{$gateway} Done Not Exist Or Done Not Has FIND Method"); |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | ); |
| 334 | 334 | |
| 335 | 335 | if (is_array($result)) { |
| 336 | - throw new GatewayException('Get Wechat API Error: '.$result['return_msg'], $result); |
|
| 336 | + throw new GatewayException('Get Wechat API Error: ' . $result['return_msg'], $result); |
|
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | return $result; |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | $app = new $gateway(); |
| 356 | 356 | |
| 357 | 357 | if ($app instanceof GatewayInterface) { |
| 358 | - return $app->pay($this->gateway, array_filter($this->payload, function ($value) { |
|
| 358 | + return $app->pay($this->gateway, array_filter($this->payload, function($value) { |
|
| 359 | 359 | return '' !== $value && !is_null($value); |
| 360 | 360 | })); |
| 361 | 361 | } |