Passed
Push — master ( 0f318f...9a9fd4 )
by Songda
01:55
created
src/Plugin/Wechat/Pay/App/InvokePrepayPlugin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
             'prepayid' => $prepayId,
26 26
             'package' => 'Sign=WXPay',
27 27
             'noncestr' => Str::random(32),
28
-            'timestamp' => time().'',
28
+            'timestamp' => time() . '',
29 29
         ]);
30 30
 
31 31
         $config->set('sign', $this->getSign($config, $rocket->getParams()));
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
      */
42 42
     protected function getSign(Collection $invokeConfig, array $params): string
43 43
     {
44
-        $contents = $invokeConfig->get('appid', '')."\n".
45
-            $invokeConfig->get('timestamp', '')."\n".
46
-            $invokeConfig->get('noncestr', '')."\n".
47
-            $invokeConfig->get('prepayid', '')."\n";
44
+        $contents = $invokeConfig->get('appid', '') . "\n" .
45
+            $invokeConfig->get('timestamp', '') . "\n" .
46
+            $invokeConfig->get('noncestr', '') . "\n" .
47
+            $invokeConfig->get('prepayid', '') . "\n";
48 48
 
49 49
         return get_wechat_sign($params, $contents);
50 50
     }
Please login to merge, or discard this patch.