Completed
Push — master ( bbcd34...fabc9b )
by i
03:49
created
src/Wechat/Traits/RequestTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Wechat/PubPayment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.