Passed
Pull Request — master (#662)
by Songda
01:49
created
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/Provider/Unipay.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
40 40
      */
41 41
     public function __call(string $shortcut, array $params)
42 42
     {
43
-        $plugin = '\\Yansongda\\Pay\\Plugin\\Unipay\\Shortcut\\'.
44
-            Str::studly($shortcut).'Shortcut';
43
+        $plugin = '\\Yansongda\\Pay\\Plugin\\Unipay\\Shortcut\\' .
44
+            Str::studly($shortcut) . 'Shortcut';
45 45
 
46 46
         return $this->call($plugin, ...$params);
47 47
     }
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.
src/Traits/GetUnipayCerts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
         $certs['cert_id'] = $ssl['serialNumber'] ?? '';
33 33
 
34
-        Pay::get(ConfigInterface::class)->set('unipay.'.$tenant.'.certs', $certs);
34
+        Pay::get(ConfigInterface::class)->set('unipay.' . $tenant . '.certs', $certs);
35 35
 
36 36
         return $certs['cert_id'];
37 37
     }
Please login to merge, or discard this patch.
src/Plugin/Unipay/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 = Str::studly($params['_type'] ?? 'default').'Plugins';
20
+        $typeMethod = Str::studly($params['_type'] ?? 'default') . 'Plugins';
21 21
 
22 22
         if (method_exists($this, $typeMethod)) {
23 23
             return $this->{$typeMethod}();
Please login to merge, or discard this patch.
src/Plugin/Unipay/Shortcut/ScanShortcut.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 = Str::studly($params['_type'] ?? 'default').'Plugins';
20
+        $typeMethod = Str::studly($params['_type'] ?? 'default') . 'Plugins';
21 21
 
22 22
         if (method_exists($this, $typeMethod)) {
23 23
             return $this->{$typeMethod}();
Please login to merge, or discard this patch.
src/Plugin/Unipay/Shortcut/PosShortcut.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 = Str::studly($params['_type'] ?? 'default').'Plugins';
20
+        $typeMethod = Str::studly($params['_type'] ?? 'default') . 'Plugins';
21 21
 
22 22
         if (method_exists($this, $typeMethod)) {
23 23
             return $this->{$typeMethod}();
Please login to merge, or discard this patch.
src/Plugin/Unipay/Shortcut/RefundShortcut.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 = Str::studly($params['_type'] ?? 'default').'Plugins';
20
+        $typeMethod = Str::studly($params['_type'] ?? 'default') . 'Plugins';
21 21
 
22 22
         if (method_exists($this, $typeMethod)) {
23 23
             return $this->{$typeMethod}();
Please login to merge, or discard this patch.
src/Plugin/Unipay/Shortcut/CancelShortcut.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 = Str::studly($params['_type'] ?? 'default').'Plugins';
20
+        $typeMethod = Str::studly($params['_type'] ?? 'default') . 'Plugins';
21 21
 
22 22
         if (method_exists($this, $typeMethod)) {
23 23
             return $this->{$typeMethod}();
Please login to merge, or discard this patch.