Passed
Branch master (0589ba)
by Songda
02:36
created
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/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.
src/Plugin/Wechat/Marketing/Coupon/RestartPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,6 +39,6 @@
 block discarded – undo
39 39
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
40 40
         }
41 41
 
42
-        return 'v3/marketing/favor/stocks/'.$payload->get('stock_id').'/restart';
42
+        return 'v3/marketing/favor/stocks/' . $payload->get('stock_id') . '/restart';
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Marketing/Coupon/QueryCouponDetailPlugin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@
 block discarded – undo
37 37
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
38 38
         }
39 39
 
40
-        return 'v3/marketing/favor/users/'.
41
-            $payload->get('openid').
42
-            'coupons/'.$payload->get('coupon_id').
43
-            '?appid='.$appid;
40
+        return 'v3/marketing/favor/users/' .
41
+            $payload->get('openid') .
42
+            'coupons/' . $payload->get('coupon_id') .
43
+            '?appid=' . $appid;
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Marketing/Coupon/QueryStockDetailPlugin.php 1 patch
Spacing   +3 added lines, -3 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/marketing/favor/stocks/'.
36
-            $payload->get('stock_id').
37
-            '?stock_creator_mchid='.$payload->get('stock_creator_mchid');
35
+        return 'v3/marketing/favor/stocks/' .
36
+            $payload->get('stock_id') .
37
+            '?stock_creator_mchid=' . $payload->get('stock_creator_mchid');
38 38
     }
39 39
 }
Please login to merge, or discard this patch.