Passed
Branch master (c084d6)
by Songda
09:40
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/Provider/Wechat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
      */
36 36
     public function __call(string $shortcut, array $params)
37 37
     {
38
-        $plugin = '\\Yansongda\\Pay\\Plugin\\Wechat\\Shortcut\\'.
39
-            Str::studly($shortcut).'Shortcut';
38
+        $plugin = '\\Yansongda\\Pay\\Plugin\\Wechat\\Shortcut\\' .
39
+            Str::studly($shortcut) . 'Shortcut';
40 40
 
41 41
         return $this->call($plugin, ...$params);
42 42
     }
Please login to merge, or discard this patch.
src/Provider/Alipay.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function __call(string $shortcut, array $params)
39 39
     {
40
-        $plugin = '\\Yansongda\\Pay\\Plugin\\Alipay\\Shortcut\\'.
41
-            Str::studly($shortcut).'Shortcut';
40
+        $plugin = '\\Yansongda\\Pay\\Plugin\\Alipay\\Shortcut\\' .
41
+            Str::studly($shortcut) . 'Shortcut';
42 42
 
43 43
         return $this->call($plugin, ...$params);
44 44
     }
@@ -151,8 +151,7 @@  discard block
 block discarded – undo
151 151
         }
152 152
 
153 153
         if ($contents instanceof ServerRequestInterface) {
154
-            return Collection::wrap('GET' === $contents->getMethod() ? $contents->getQueryParams() :
155
-                $contents->getParsedBody());
154
+            return Collection::wrap('GET' === $contents->getMethod() ? $contents->getQueryParams() : $contents->getParsedBody());
156 155
         }
157 156
 
158 157
         $request = ServerRequest::fromGlobals();
Please login to merge, or discard this patch.
src/Plugin/Wechat/Marketing/Coupon/QueryStocksPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
 
17 17
     protected function getUri(Rocket $rocket): string
18 18
     {
19
-        return 'v3/marketing/favor/stocks?'.$rocket->getPayload()->query();
19
+        return 'v3/marketing/favor/stocks?' . $rocket->getPayload()->query();
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Marketing/Coupon/QueryStockMerchantsPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
         $query = $payload->all();
30 30
         unset($query['stock_id']);
31 31
 
32
-        return 'v3/marketing/favor/stocks/'.
33
-            $payload->get('stock_id').
34
-            '/merchants?'.http_build_query($query);
32
+        return 'v3/marketing/favor/stocks/' .
33
+            $payload->get('stock_id') .
34
+            '/merchants?' . http_build_query($query);
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Marketing/Coupon/QueryStockItemsPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
         $query = $payload->all();
30 30
         unset($query['stock_id']);
31 31
 
32
-        return 'v3/marketing/favor/stocks/'.
33
-            $payload->get('stock_id').
34
-            '/items?'.http_build_query($query);
32
+        return 'v3/marketing/favor/stocks/' .
33
+            $payload->get('stock_id') .
34
+            '/items?' . http_build_query($query);
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/Marketing/Coupon/QueryUserCouponsPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
         $query = $payload->all();
30 30
         unset($query['openid']);
31 31
 
32
-        return 'v3/marketing/favor/users/'.
33
-            $payload->get('openid').
34
-            '/coupons?'.http_build_query($query);
32
+        return 'v3/marketing/favor/users/' .
33
+            $payload->get('openid') .
34
+            '/coupons?' . http_build_query($query);
35 35
     }
36 36
 }
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.