Passed
Push — master ( 2ea20b...0aea5b )
by Songda
02:52 queued 31s
created
src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryByWxPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
         $rocket->setPayload([
47 47
             '_method' => 'GET',
48
-            '_service_url' => 'v3/ecommerce/refunds/id/'.$refundId.'?sub_mchid='.$payload->get('sub_mchid', $config['sub_mch_id'] ?? 'null'),
48
+            '_service_url' => 'v3/ecommerce/refunds/id/' . $refundId . '?sub_mchid=' . $payload->get('sub_mchid', $config['sub_mch_id'] ?? 'null'),
49 49
         ]);
50 50
 
51 51
         Logger::info('[Wechat][Marketing][ECommerceRefund][QueryBatchByWxPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
         $rocket->setPayload([
47 47
             '_method' => 'GET',
48
-            '_service_url' => 'v3/ecommerce/refunds/out-refund-no/'.$outRefundNo.'?sub_mchid='.$payload->get('sub_mchid', $config['sub_mch_id'] ?? 'null'),
48
+            '_service_url' => 'v3/ecommerce/refunds/out-refund-no/' . $outRefundNo . '?sub_mchid=' . $payload->get('sub_mchid', $config['sub_mch_id'] ?? 'null'),
49 49
         ]);
50 50
 
51 51
         Logger::info('[Wechat][V3][Marketing][ECommerceRefund][QueryPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryReturnAdvancePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
         $rocket->setPayload([
47 47
             '_method' => 'GET',
48
-            '_service_url' => 'v3/ecommerce/refunds/'.$refundId.'/return-advance?sub_mchid='.$payload->get('sub_mchid', $config['sub_mch_id']),
48
+            '_service_url' => 'v3/ecommerce/refunds/' . $refundId . '/return-advance?sub_mchid=' . $payload->get('sub_mchid', $config['sub_mch_id']),
49 49
         ]);
50 50
 
51 51
         Logger::info('[Wechat][V3][Marketing][ECommerceRefund][QueryReturnAdvancePlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,9 +69,9 @@
 block discarded – undo
69 69
     {
70 70
         $invokeConfig = new Config([
71 71
             'appId' => $this->getAppId($payload, $config),
72
-            'timeStamp' => time().'',
72
+            'timeStamp' => time() . '',
73 73
             'nonceStr' => Str::random(32),
74
-            'package' => 'prepay_id='.$prepayId,
74
+            'package' => 'prepay_id=' . $prepayId,
75 75
             'signType' => 'MD5',
76 76
         ]);
77 77
 
Please login to merge, or discard this patch.
src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
             'prepayid' => $prepayId,
74 74
             'package' => 'Sign=WXPay',
75 75
             'noncestr' => Str::random(32),
76
-            'timestamp' => time().'',
76
+            'timestamp' => time() . '',
77 77
         ]);
78 78
 
79 79
         $invokeConfig->set('sign', get_wechat_sign_v2($config, $invokeConfig->all()));
Please login to merge, or discard this patch.
src/Plugin/Unipay/Open/StartPlugin.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
 
32 32
         $certs['cert_id'] = $ssl['serialNumber'] ?? '';
33 33
 
34
-        Pay::get(ConfigInterface::class)->set('unipay.'.$tenant.'.certs', $certs);
34
+        Pay::get(ConfigInterface::class)->set('unipay.' . $tenant . '.certs', $certs);
35 35
 
36 36
         return $certs['cert_id'];
37 37
     }
Please login to merge, or discard this patch.
src/Contract/ProviderInterface.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
 
13 13
 interface ProviderInterface
14 14
 {
15
-    public function pay(array $plugins, array $params): null|Collection|MessageInterface|Rocket;
15
+    public function pay(array $plugins, array $params): null | Collection | MessageInterface | Rocket;
16 16
 
17
-    public function query(array $order): Collection|Rocket;
17
+    public function query(array $order): Collection | Rocket;
18 18
 
19
-    public function cancel(array $order): Collection|Rocket;
19
+    public function cancel(array $order): Collection | Rocket;
20 20
 
21
-    public function close(array $order): Collection|Rocket;
21
+    public function close(array $order): Collection | Rocket;
22 22
 
23
-    public function refund(array $order): Collection|Rocket;
23
+    public function refund(array $order): Collection | Rocket;
24 24
 
25
-    public function callback(null|array|ServerRequestInterface $contents = null, ?array $params = null): Collection|Rocket;
25
+    public function callback(null | array | ServerRequestInterface $contents = null, ?array $params = null): Collection | Rocket;
26 26
 
27 27
     public function success(): ResponseInterface;
28 28
 }
Please login to merge, or discard this patch.
src/Plugin/Unipay/Open/ResponseHtmlPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@
 block discarded – undo
33 33
 
34 34
     protected function buildHtml(string $endpoint, Collection $payload): Response
35 35
     {
36
-        $sHtml = "<form id='pay_form' name='pay_form' action='".$endpoint."' method='POST'>";
36
+        $sHtml = "<form id='pay_form' name='pay_form' action='" . $endpoint . "' method='POST'>";
37 37
         foreach ($payload->all() as $key => $val) {
38
-            $sHtml .= "<input type='hidden' name='".$key."' value='".$val."'/>";
38
+            $sHtml .= "<input type='hidden' name='" . $key . "' value='" . $val . "'/>";
39 39
         }
40 40
         $sHtml .= "<input type='submit' value='ok' style='display:none;'></form>";
41 41
         $sHtml .= "<script>document.forms['pay_form'].submit();</script>";
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Marketing/Fapiao/GetTitleUrlPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
         $rocket->setPayload([
43 43
             '_method' => 'GET',
44
-            '_url' => 'v3/new-tax-control-fapiao/user-title/title-url?'.$this->getQuery($payload, $params)->query(),
44
+            '_url' => 'v3/new-tax-control-fapiao/user-title/title-url?' . $this->getQuery($payload, $params)->query(),
45 45
         ]);
46 46
 
47 47
         Logger::info('[Wechat][V3][Marketing][Fapiao][GetTitleUrlPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.