@@ -39,7 +39,7 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | foreach ($this->detectApplication as $framework => $application) { |
| 42 | - $method = $framework.'Application'; |
|
| 42 | + $method = $framework . 'Application'; |
|
| 43 | 43 | |
| 44 | 44 | if (class_exists($application) && method_exists($this, $method) && $this->{$method}()) { |
| 45 | 45 | return; |
@@ -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 | } |
@@ -13,8 +13,7 @@ |
||
| 13 | 13 | $xml = '<xml>'; |
| 14 | 14 | |
| 15 | 15 | foreach ($payload as $key => $val) { |
| 16 | - $xml .= is_numeric($val) ? '<'.$key.'>'.$val.'</'.$key.'>' : |
|
| 17 | - '<'.$key.'><![CDATA['.$val.']]></'.$key.'>'; |
|
| 16 | + $xml .= is_numeric($val) ? '<' . $key . '>' . $val . '</' . $key . '>' : '<' . $key . '><![CDATA[' . $val . ']]></' . $key . '>'; |
|
| 18 | 17 | } |
| 19 | 18 | |
| 20 | 19 | $xml .= '</xml>'; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | |
| 62 | 62 | protected function getDefaultHandler(): AbstractProcessingHandler |
| 63 | 63 | { |
| 64 | - $file = $this->config['file'] ?? (sys_get_temp_dir().'/logs/'.$this->config['identify'].'.log'); |
|
| 64 | + $file = $this->config['file'] ?? (sys_get_temp_dir() . '/logs/' . $this->config['identify'] . '.log'); |
|
| 65 | 65 | |
| 66 | 66 | return match ($this->config['type']) { |
| 67 | 67 | 'single' => new StreamHandler($file, $this->config['level']), |
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | |
| 14 | 14 | public ?array $params = null; |
| 15 | 15 | |
| 16 | - public null|array|ServerRequestInterface $contents; |
|
| 16 | + public null | array | ServerRequestInterface $contents; |
|
| 17 | 17 | |
| 18 | - public function __construct(string $provider, null|array|ServerRequestInterface $contents, ?array $params = null, ?Rocket $rocket = null) |
|
| 18 | + public function __construct(string $provider, null | array | ServerRequestInterface $contents, ?array $params = null, ?Rocket $rocket = null) |
|
| 19 | 19 | { |
| 20 | 20 | $this->provider = $provider; |
| 21 | 21 | $this->contents = $contents; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public function getPlugins(array $params): array |
| 42 | 42 | { |
| 43 | - $method = Str::camel($params['_action'] ?? 'default').'Plugins'; |
|
| 43 | + $method = Str::camel($params['_action'] ?? 'default') . 'Plugins'; |
|
| 44 | 44 | |
| 45 | 45 | if (isset($params['out_request_no'])) { |
| 46 | 46 | return $this->refundPlugins(); |
@@ -32,7 +32,7 @@ |
||
| 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}(); |
@@ -32,7 +32,7 @@ |
||
| 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}(); |
@@ -32,7 +32,7 @@ |
||
| 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}(); |