Passed
Pull Request — master (#903)
by Songda
02:23
created
src/Plugin/Wechat/Pay/Common/GetTradeBillPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     protected function getUri(Rocket $rocket): string
13 13
     {
14
-        return 'v3/bill/tradebill?'.http_build_query($rocket->getParams());
14
+        return 'v3/bill/tradebill?' . http_build_query($rocket->getParams());
15 15
     }
16 16
 
17 17
     protected function getMethod(): string
Please login to merge, or discard this patch.
src/Plugin/Wechat/Pay/Common/GetFlowBillPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     protected function getUri(Rocket $rocket): string
13 13
     {
14
-        return 'v3/bill/fundflowbill?'.http_build_query($rocket->getParams());
14
+        return 'v3/bill/fundflowbill?' . http_build_query($rocket->getParams());
15 15
     }
16 16
 
17 17
     protected function getMethod(): string
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/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/Service/ContainerServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         }
40 40
 
41 41
         foreach ($this->detectApplication as $framework => $application) {
42
-            $method = $framework.'Application';
42
+            $method = $framework . 'Application';
43 43
 
44 44
             if (class_exists($application) && method_exists($this, $method) && $this->{$method}()) {
45 45
                 return;
Please login to merge, or discard this patch.
src/Plugin/Wechat/Risk/Complaints/QueryComplaintsPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
 
25 25
     protected function getUri(Rocket $rocket): string
26 26
     {
27
-        return 'v3/merchant-service/complaints-v2?'.$rocket->getPayload()->query();
27
+        return 'v3/merchant-service/complaints-v2?' . $rocket->getPayload()->query();
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Risk/Complaints/QueryComplaintNegotiationPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
 
39 39
         $payload->forget('complaint_id');
40 40
 
41
-        return 'v3/merchant-service/complaints-v2/'.
42
-            $complaintId.
43
-            '/negotiation-historys?'.$payload->query();
41
+        return 'v3/merchant-service/complaints-v2/' .
42
+            $complaintId .
43
+            '/negotiation-historys?' . $payload->query();
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
src/Plugin/Unipay/HtmlResponsePlugin.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/Unipay/GeneralPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
         $config = get_unipay_config($rocket->getParams());
65 65
 
66
-        return Unipay::URL[$config['mode'] ?? Pay::MODE_NORMAL].$url;
66
+        return Unipay::URL[$config['mode'] ?? Pay::MODE_NORMAL] . $url;
67 67
     }
68 68
 
69 69
     protected function getHeaders(): array
Please login to merge, or discard this patch.