Passed
Push — master ( 0e9625...ee59b5 )
by Songda
02:38
created
src/Service/WechatServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function register(Pay $pay, ?array $data = null): void
19 19
     {
20
-        $service = function () {
20
+        $service = function() {
21 21
             Pay::set(ParserInterface::class, CollectionParser::class);
22 22
 
23 23
             return new Wechat();
Please login to merge, or discard this patch.
src/Service/AlipayServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function register(Pay $pay, ?array $data = null): void
19 19
     {
20
-        $service = function () {
20
+        $service = function() {
21 21
             Pay::set(ParserInterface::class, CollectionParser::class);
22 22
 
23 23
             return new Alipay();
Please login to merge, or discard this patch.
src/Plugin/Alipay/PreparePlugin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 continue;
127 127
             }
128 128
 
129
-            $ssl = openssl_x509_parse($cert.'-----END CERTIFICATE-----');
129
+            $ssl = openssl_x509_parse($cert . '-----END CERTIFICATE-----');
130 130
 
131 131
             if (false === $ssl) {
132 132
                 throw new InvalidConfigException(Exception::ALIPAY_CONFIG_ERROR, 'Invalid alipay_root_cert');
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             $detail = $this->formatCert($ssl);
136 136
 
137 137
             if ('sha1WithRSAEncryption' == $detail['signatureTypeLN'] || 'sha256WithRSAEncryption' == $detail['signatureTypeLN']) {
138
-                $sn .= $this->getCertSn($detail['issuer'], $detail['serialNumber']).'_';
138
+                $sn .= $this->getCertSn($detail['issuer'], $detail['serialNumber']) . '_';
139 139
             }
140 140
         }
141 141
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     protected function getCertSn(array $issuer, string $serialNumber): string
146 146
     {
147 147
         return md5(
148
-            $this->array2string(array_reverse($issuer)).$serialNumber
148
+            $this->array2string(array_reverse($issuer)) . $serialNumber
149 149
         );
150 150
     }
151 151
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $string = [];
155 155
 
156 156
         foreach ($array as $key => $value) {
157
-            $string[] = $key.'='.$value;
157
+            $string[] = $key . '=' . $value;
158 158
         }
159 159
 
160 160
         return implode(',', $string);
Please login to merge, or discard this patch.
src/Plugin/Wechat/Fund/Profitsharing/QueryReturnPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
34 34
         }
35 35
 
36
-        return 'v3/profitsharing/return-orders/'.
37
-            $payload->get('out_return_no').
38
-            '?out_order_no='.$payload->get('out_order_no');
36
+        return 'v3/profitsharing/return-orders/' .
37
+            $payload->get('out_return_no') .
38
+            '?out_order_no=' . $payload->get('out_order_no');
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Fund/Profitsharing/QueryPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
34 34
         }
35 35
 
36
-        return '/v3/profitsharing/orders/'.
37
-            $payload->get('out_order_no').
38
-            '?transaction_id='.$payload->get('transaction_id');
36
+        return '/v3/profitsharing/orders/' .
37
+            $payload->get('out_order_no') .
38
+            '?transaction_id=' . $payload->get('transaction_id');
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Fund/Profitsharing/QueryAmountsPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
33 33
         }
34 34
 
35
-        return 'v3/profitsharing/transactions/'.
36
-            $payload->get('transaction_id').
35
+        return 'v3/profitsharing/transactions/' .
36
+            $payload->get('transaction_id') .
37 37
             '/amounts';
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Marketing/Coupon/QueryStockRefundFlowPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
33 33
         }
34 34
 
35
-        return 'vv3/marketing/favor/stocks/'.
36
-            $payload->get('stock_id').
35
+        return 'vv3/marketing/favor/stocks/' .
36
+            $payload->get('stock_id') .
37 37
             '/refund-flow';
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Marketing/Coupon/StartPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
28 28
         }
29 29
 
30
-        return 'v3/marketing/favor/stocks/'.$payload->get('stock_id').'/start';
30
+        return 'v3/marketing/favor/stocks/' . $payload->get('stock_id') . '/start';
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Marketing/Coupon/QueryStockUseFlowPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
33 33
         }
34 34
 
35
-        return 'vv3/marketing/favor/stocks/'.
36
-            $payload->get('stock_id').
35
+        return 'vv3/marketing/favor/stocks/' .
36
+            $payload->get('stock_id') .
37 37
             '/use-flow';
38 38
     }
39 39
 }
Please login to merge, or discard this patch.