Passed
Pull Request — master (#777)
by Songda
06:48
created
src/Plugin/Wechat/Marketing/Coupon/QueryStockRefundFlowPlugin.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
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
36 36
         }
37 37
 
38
-        return 'v3/marketing/favor/stocks/'.
39
-            $payload->get('stock_id').
38
+        return 'v3/marketing/favor/stocks/' .
39
+            $payload->get('stock_id') .
40 40
             '/refund-flow';
41 41
     }
42 42
 }
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
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
 
52 52
         unset($query['stock_id']);
53 53
 
54
-        return 'v3/marketing/favor/stocks/'.
55
-            $payload->get('stock_id').
56
-            '/merchants?'.http_build_query($query);
54
+        return 'v3/marketing/favor/stocks/' .
55
+            $payload->get('stock_id') .
56
+            '/merchants?' . http_build_query($query);
57 57
     }
58 58
 }
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
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
36 36
         }
37 37
 
38
-        return 'v3/marketing/favor/stocks/'.
39
-            $payload->get('stock_id').
38
+        return 'v3/marketing/favor/stocks/' .
39
+            $payload->get('stock_id') .
40 40
             '/use-flow';
41 41
     }
42 42
 }
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
@@ -43,9 +43,9 @@
 block discarded – undo
43 43
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
44 44
         }
45 45
 
46
-        return 'v3/marketing/favor/users/'.
47
-            $payload->get('openid').
48
-            '/coupons/'.$payload->get('coupon_id').
49
-            '?appid='.$payload->get('appid', $config[$this->getConfigKey($params)] ?? '');
46
+        return 'v3/marketing/favor/users/' .
47
+            $payload->get('openid') .
48
+            '/coupons/' . $payload->get('coupon_id') .
49
+            '?appid=' . $payload->get('appid', $config[$this->getConfigKey($params)] ?? '');
50 50
     }
51 51
 }
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
@@ -39,6 +39,6 @@
 block discarded – undo
39 39
             $rocket->mergePayload(['stock_creator_mchid' => $config['mch_id']]);
40 40
         }
41 41
 
42
-        return 'v3/marketing/favor/stocks?'.$rocket->getPayload()->query();
42
+        return 'v3/marketing/favor/stocks?' . $rocket->getPayload()->query();
43 43
     }
44 44
 }
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
@@ -43,8 +43,8 @@
 block discarded – undo
43 43
             throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
44 44
         }
45 45
 
46
-        return 'v3/marketing/favor/stocks/'.
47
-            $payload->get('stock_id').
48
-            '?stock_creator_mchid='.$payload->get('stock_creator_mchid', $config['mch_id'] ?? '');
46
+        return 'v3/marketing/favor/stocks/' .
47
+            $payload->get('stock_id') .
48
+            '?stock_creator_mchid=' . $payload->get('stock_creator_mchid', $config['mch_id'] ?? '');
49 49
     }
50 50
 }
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
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
 
52 52
         unset($query['stock_id']);
53 53
 
54
-        return 'v3/marketing/favor/stocks/'.
55
-            $payload->get('stock_id').
56
-            '/items?'.http_build_query($query);
54
+        return 'v3/marketing/favor/stocks/' .
55
+            $payload->get('stock_id') .
56
+            '/items?' . http_build_query($query);
57 57
     }
58 58
 }
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
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
 
56 56
         unset($query['openid']);
57 57
 
58
-        return 'v3/marketing/favor/users/'.
59
-            $payload->get('openid').
60
-            '/coupons?'.http_build_query($query);
58
+        return 'v3/marketing/favor/users/' .
59
+            $payload->get('openid') .
60
+            '/coupons?' . http_build_query($query);
61 61
     }
62 62
 }
Please login to merge, or discard this patch.