Passed
Branch master (c084d6)
by Songda
09:40
created
src/Plugin/Wechat/Fund/Transfer/QueryBillReceiptPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,6 @@
 block discarded – undo
32 32
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
33 33
         }
34 34
 
35
-        return 'v3/transfer/bill-receipt/'.$payload->get('out_batch_no');
35
+        return 'v3/transfer/bill-receipt/' . $payload->get('out_batch_no');
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Fund/Transfer/QueryDetailReceiptPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,6 @@
 block discarded – undo
32 32
 
33 33
     protected function getUri(Rocket $rocket): string
34 34
     {
35
-        return 'v3/transfer-detail/electronic-receipts?'.$rocket->getPayload()->query();
35
+        return 'v3/transfer-detail/electronic-receipts?' . $rocket->getPayload()->query();
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Fund/Balance/QueryPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
32 32
         }
33 33
 
34
-        return 'v3/merchant/fund/balance/'.
34
+        return 'v3/merchant/fund/balance/' .
35 35
             $payload->get('account_type');
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Fund/Balance/QueryDayEndPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
32 32
         }
33 33
 
34
-        return 'v3/merchant/fund/dayendbalance/'.
35
-            $payload->get('account_type').
36
-            '?date='.$payload->get('date');
34
+        return 'v3/merchant/fund/dayendbalance/' .
35
+            $payload->get('account_type') .
36
+            '?date=' . $payload->get('date');
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Fund/Transfer/QueryOutBatchDetailNoPlugin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
33 33
         }
34 34
 
35
-        return 'v3/transfer/batches/out-batch-no/'.
36
-            $payload->get('out_batch_no').
37
-            '/details/out-detail-no/'.
35
+        return 'v3/transfer/batches/out-batch-no/' .
36
+            $payload->get('out_batch_no') .
37
+            '/details/out-detail-no/' .
38 38
             $payload->get('out_detail_no');
39 39
     }
40 40
 
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
50 50
         }
51 51
 
52
-        return 'v3/partner-transfer/batches/out-batch-no/'.
53
-            $payload->get('out_batch_no').
54
-            '/details/out-detail-no/'.
52
+        return 'v3/partner-transfer/batches/out-batch-no/' .
53
+            $payload->get('out_batch_no') .
54
+            '/details/out-detail-no/' .
55 55
             $payload->get('out_detail_no');
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Fund/Transfer/QueryBatchDetailIdPlugin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
33 33
         }
34 34
 
35
-        return 'v3/transfer/batches/batch-id/'.
36
-            $payload->get('batch_id').
37
-            '/details/detail-id/'.
35
+        return 'v3/transfer/batches/batch-id/' .
36
+            $payload->get('batch_id') .
37
+            '/details/detail-id/' .
38 38
             $payload->get('detail_id');
39 39
     }
40 40
 
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
47 47
         }
48 48
 
49
-        return 'v3/partner-transfer/batches/batch-id/'.
50
-            $payload->get('batch_id').
51
-            '/details/detail-id/'.
49
+        return 'v3/partner-transfer/batches/batch-id/' .
50
+            $payload->get('batch_id') .
51
+            '/details/detail-id/' .
52 52
             $payload->get('detail_id');
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
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.
src/Plugin/Wechat/Ecommerce/Refund/ReturnAdvancePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
32 32
         }
33 33
 
34
-        return 'v3/ecommerce/refunds/'.$payload->get('refund_id').'/return-advance';
34
+        return 'v3/ecommerce/refunds/' . $payload->get('refund_id') . '/return-advance';
35 35
     }
36 36
 
37 37
     /**
Please login to merge, or discard this patch.
src/Plugin/Wechat/Ecommerce/Refund/FindReturnAdvancePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
36 36
         }
37 37
 
38
-        return 'v3/ecommerce/refunds/'.$payload->get('refund_id').'/return-advance?sub_mchid='.$subMchId;
38
+        return 'v3/ecommerce/refunds/' . $payload->get('refund_id') . '/return-advance?sub_mchid=' . $subMchId;
39 39
     }
40 40
 
41 41
     protected function getMethod(): string
Please login to merge, or discard this patch.