Passed
Branch master (0589ba)
by Songda
02:36
created
src/Provider/AbstractProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             ->send((new Rocket())->setParams($params)->setPayload(new Collection()))
37 37
             ->through($plugins)
38 38
             ->via('assembly')
39
-            ->then(function ($rocket) {
39
+            ->then(function($rocket) {
40 40
                 return $this->ignite($rocket);
41 41
             });
42 42
 
Please login to merge, or discard this patch.
src/Plugin/Alipay/LaunchPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,6 +80,6 @@
 block discarded – undo
80 80
     {
81 81
         $method = $rocket->getPayload()->get('method');
82 82
 
83
-        return str_replace('.', '_', $method).'_response';
83
+        return str_replace('.', '_', $method) . '_response';
84 84
     }
85 85
 }
Please login to merge, or discard this patch.
src/Plugin/Alipay/Shortcut/QueryShortcut.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 getPlugins(array $params): array
19 19
     {
20
-        $typeMethod = ($params['_type'] ?? 'default').'Plugins';
20
+        $typeMethod = ($params['_type'] ?? 'default') . 'Plugins';
21 21
 
22 22
         if (isset($params['out_request_no'])) {
23 23
             return $this->refundPlugins();
Please login to merge, or discard this patch.
src/Plugin/Wechat/Shortcut/CloseShortcut.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function getPlugins(array $params): array
17 17
     {
18
-        $typeMethod = ($params['_type'] ?? 'default').'Plugins';
18
+        $typeMethod = ($params['_type'] ?? 'default') . 'Plugins';
19 19
 
20 20
         if (isset($params['combine_out_trade_no']) || isset($params['sub_orders'])) {
21 21
             return $this->combinePlugins();
Please login to merge, or discard this patch.
src/Plugin/Wechat/Shortcut/QueryShortcut.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function getPlugins(array $params): array
17 17
     {
18
-        $typeMethod = ($params['_type'] ?? 'default').'Plugins';
18
+        $typeMethod = ($params['_type'] ?? 'default') . 'Plugins';
19 19
 
20 20
         if (isset($params['combine_out_trade_no'])) {
21 21
             return $this->combinePlugins();
Please login to merge, or discard this patch.
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.