@@ -33,9 +33,9 @@ |
||
| 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>"; |
@@ -40,8 +40,8 @@ |
||
| 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 | } |
@@ -63,7 +63,7 @@ |
||
| 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 |
@@ -31,7 +31,7 @@ |
||
| 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 | } |
@@ -17,7 +17,7 @@ |
||
| 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}(); |
@@ -17,7 +17,7 @@ |
||
| 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}(); |
@@ -17,7 +17,7 @@ |
||
| 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}(); |
@@ -17,7 +17,7 @@ |
||
| 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}(); |
@@ -17,7 +17,7 @@ |
||
| 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}(); |