@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | if ($flag !== $returnCode || $flag !== $resultCode) { |
51 | 51 | throw new GatewayException( |
52 | - 'Wxpay API Error: ' . $result['return_msg'], |
|
52 | + 'Wxpay API Error: '.$result['return_msg'], |
|
53 | 53 | 20000 |
54 | 54 | ); |
55 | 55 | } |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | */ |
185 | 185 | public static function fromXml(string $xml) : array |
186 | 186 | { |
187 | - if (! $xml) { |
|
187 | + if (!$xml) { |
|
188 | 188 | throw new \InvalidArgumentException('Invalid [xml] argument.', 3); |
189 | 189 | } |
190 | 190 | libxml_disable_entity_loader(true); |
@@ -29,9 +29,9 @@ |
||
29 | 29 | $object = $this->prepare(Constant::WX_PAY_PREPARE, $payload); |
30 | 30 | $parameter = [ |
31 | 31 | 'appId' => $payload['appid'], |
32 | - 'timeStamp' => (string)time(), |
|
32 | + 'timeStamp' => (string) time(), |
|
33 | 33 | 'nonceStr' => Str::random(), |
34 | - 'package' => 'prepay_id=' . $object->get('prepay_id'), |
|
34 | + 'package' => 'prepay_id='.$object->get('prepay_id'), |
|
35 | 35 | 'signType' => 'MD5', |
36 | 36 | ]; |
37 | 37 | $parameter['paySign'] = self::generateSign($parameter, $key); |