@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | |
146 | 146 | $this->payload = array_merge($this->payload, $params); |
147 | 147 | |
148 | - $gateway = get_class($this).'\\'.Str::studly($gateway).'Gateway'; |
|
148 | + $gateway = get_class($this) . '\\' . Str::studly($gateway) . 'Gateway'; |
|
149 | 149 | |
150 | 150 | if (class_exists($gateway)) { |
151 | 151 | return $this->makePay($gateway); |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | ); |
345 | 345 | |
346 | 346 | if (is_array($result)) { |
347 | - throw new GatewayException('Get Wechat API Error: '.$result['return_msg'], $result); |
|
347 | + throw new GatewayException('Get Wechat API Error: ' . $result['return_msg'], $result); |
|
348 | 348 | } |
349 | 349 | |
350 | 350 | return $result; |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | $app = new $gateway(); |
367 | 367 | |
368 | 368 | if ($app instanceof GatewayInterface) { |
369 | - return $app->pay($this->gateway, array_filter($this->payload, function ($value) { |
|
369 | + return $app->pay($this->gateway, array_filter($this->payload, function($value) { |
|
370 | 370 | return $value !== '' && !is_null($value); |
371 | 371 | })); |
372 | 372 | } |