Passed
Pull Request — master (#1099)
by Songda
02:23
created
src/Shortcut/Unipay/ScanShortcut.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function getPlugins(array $params): array
34 34
     {
35
-        $method = Str::camel($params['_action'] ?? 'default').'Plugins';
35
+        $method = Str::camel($params['_action'] ?? 'default') . 'Plugins';
36 36
 
37 37
         if (method_exists($this, $method)) {
38 38
             return $this->{$method}();
Please login to merge, or discard this patch.
src/Shortcut/Unipay/PosShortcut.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function getPlugins(array $params): array
34 34
     {
35
-        $method = Str::camel($params['_action'] ?? 'default').'Plugins';
35
+        $method = Str::camel($params['_action'] ?? 'default') . 'Plugins';
36 36
 
37 37
         if (method_exists($this, $method)) {
38 38
             return $this->{$method}();
Please login to merge, or discard this patch.
src/Shortcut/Unipay/RefundShortcut.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function getPlugins(array $params): array
34 34
     {
35
-        $method = Str::camel($params['_action'] ?? 'default').'Plugins';
35
+        $method = Str::camel($params['_action'] ?? 'default') . 'Plugins';
36 36
 
37 37
         if (method_exists($this, $method)) {
38 38
             return $this->{$method}();
Please login to merge, or discard this patch.
src/Shortcut/Unipay/QueryShortcut.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function getPlugins(array $params): array
34 34
     {
35
-        $method = Str::camel($params['_action'] ?? 'default').'Plugins';
35
+        $method = Str::camel($params['_action'] ?? 'default') . 'Plugins';
36 36
 
37 37
         if (method_exists($this, $method)) {
38 38
             return $this->{$method}();
Please login to merge, or discard this patch.
src/Shortcut/Unipay/CancelShortcut.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function getPlugins(array $params): array
34 34
     {
35
-        $method = Str::camel($params['_action'] ?? 'default').'Plugins';
35
+        $method = Str::camel($params['_action'] ?? 'default') . 'Plugins';
36 36
 
37 37
         if (method_exists($this, $method)) {
38 38
             return $this->{$method}();
Please login to merge, or discard this patch.
src/Shortcut/Wechat/CloseShortcut.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             return $this->combinePlugins();
41 41
         }
42 42
 
43
-        $method = Str::camel($params['_action'] ?? 'default').'Plugins';
43
+        $method = Str::camel($params['_action'] ?? 'default') . 'Plugins';
44 44
 
45 45
         if (method_exists($this, $method)) {
46 46
             return $this->{$method}();
Please login to merge, or discard this patch.
src/Provider/Douyin.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
      * @throws InvalidParamsException
47 47
      * @throws ServiceNotFoundException
48 48
      */
49
-    public function __call(string $shortcut, array $params): null|Collection|MessageInterface|Rocket
49
+    public function __call(string $shortcut, array $params): null | Collection | MessageInterface | Rocket
50 50
     {
51
-        $plugin = '\Yansongda\Pay\Shortcut\Douyin\\'.Str::studly($shortcut).'Shortcut';
51
+        $plugin = '\Yansongda\Pay\Shortcut\Douyin\\' . Str::studly($shortcut) . 'Shortcut';
52 52
 
53 53
         return Artful::shortcut($plugin, ...$params);
54 54
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @throws ContainerException
58 58
      * @throws InvalidParamsException
59 59
      */
60
-    public function pay(array $plugins, array $params): null|Collection|MessageInterface|Rocket
60
+    public function pay(array $plugins, array $params): null | Collection | MessageInterface | Rocket
61 61
     {
62 62
         return Artful::artful($plugins, $params);
63 63
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @throws InvalidParamsException
68 68
      * @throws ServiceNotFoundException
69 69
      */
70
-    public function query(array $order): Collection|Rocket
70
+    public function query(array $order): Collection | Rocket
71 71
     {
72 72
         Event::dispatch(new MethodCalled('douyin', __METHOD__, $order, null));
73 73
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * @throws InvalidParamsException
79 79
      */
80
-    public function cancel(array $order): Collection|Rocket
80
+    public function cancel(array $order): Collection | Rocket
81 81
     {
82 82
         throw new InvalidParamsException(Exception::PARAMS_METHOD_NOT_SUPPORTED, '参数异常: 抖音不支持 cancel API');
83 83
     }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     /**
86 86
      * @throws InvalidParamsException
87 87
      */
88
-    public function close(array $order): Collection|Rocket
88
+    public function close(array $order): Collection | Rocket
89 89
     {
90 90
         throw new InvalidParamsException(Exception::PARAMS_METHOD_NOT_SUPPORTED, '参数异常: 抖音不支持 close API');
91 91
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * @throws InvalidParamsException
96 96
      * @throws ServiceNotFoundException
97 97
      */
98
-    public function refund(array $order): Collection|Rocket
98
+    public function refund(array $order): Collection | Rocket
99 99
     {
100 100
         Event::dispatch(new MethodCalled('douyin', __METHOD__, $order, null));
101 101
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      * @throws ContainerException
107 107
      * @throws InvalidParamsException
108 108
      */
109
-    public function callback(null|array|ServerRequestInterface $contents = null, ?array $params = null): Collection|Rocket
109
+    public function callback(null | array | ServerRequestInterface $contents = null, ?array $params = null): Collection | Rocket
110 110
     {
111 111
         $request = $this->getCallbackParams($contents);
112 112
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         );
134 134
     }
135 135
 
136
-    protected function getCallbackParams(null|array|ServerRequestInterface $contents = null): Collection
136
+    protected function getCallbackParams(null | array | ServerRequestInterface $contents = null): Collection
137 137
     {
138 138
         if (is_array($contents)) {
139 139
             return Collection::wrap($contents);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Extend/ProfitSharing/GetBillPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
 
37 37
         $rocket->setPayload([
38 38
             '_method' => 'GET',
39
-            '_url' => 'v3/profitsharing/bills?'.$query,
40
-            '_service_url' => 'v3/profitsharing/bills?'.$query,
39
+            '_url' => 'v3/profitsharing/bills?' . $query,
40
+            '_service_url' => 'v3/profitsharing/bills?' . $query,
41 41
         ]);
42 42
 
43 43
         Logger::info('[Wechat][V3][Extend][ProfitSharing][GetBillPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Marketing/MchTransfer/QueryByWxPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
         $rocket->setPayload([
46 46
             '_method' => 'GET',
47
-            '_url' => 'v3/fund-app/mch-transfer/transfer-bills/transfer-bill-no/'.$transferBillNo,
47
+            '_url' => 'v3/fund-app/mch-transfer/transfer-bills/transfer-bill-no/' . $transferBillNo,
48 48
         ]);
49 49
 
50 50
         Logger::info('[Wechat][Marketing][MchTransfer][QueryByWxPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.