Passed
Pull Request — master (#763)
by
unknown
02:15
created
src/Plugin/Wechat/Pay/Common/InvokePrepayV2Plugin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
         ksort($data);
68 68
         $contents = '';
69 69
         foreach ($data as $key => $datum) {
70
-            $contents .= $key.'='.$datum.'&';
70
+            $contents .= $key . '=' . $datum . '&';
71 71
         }
72
-        $contents .= 'key='.$secret;
72
+        $contents .= 'key=' . $secret;
73 73
 
74 74
         return md5($contents);
75 75
     }
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $config = new Config([
85 85
             'appId' => $this->getAppId($rocket),
86
-            'timeStamp' => time().'',
86
+            'timeStamp' => time() . '',
87 87
             'nonceStr' => Str::random(32),
88
-            'package' => 'prepay_id='.$prepayId,
88
+            'package' => 'prepay_id=' . $prepayId,
89 89
             'signType' => 'MD5',
90 90
         ]);
91 91
 
@@ -114,6 +114,6 @@  discard block
 block discarded – undo
114 114
     {
115 115
         $type = $params['_type'] ?? 'mp';
116 116
 
117
-        return $type.'_app_id';
117
+        return $type . '_app_id';
118 118
     }
119 119
 }
Please login to merge, or discard this patch.