Passed
Pull Request — master (#918)
by Songda
02:17
created
Category
src/Service/ContainerServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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;
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/Packer/XmlPacker.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@
 block discarded – undo
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>';
Please login to merge, or discard this patch.
src/Service/LoggerServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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']),
Please login to merge, or discard this patch.
src/Event/CallbackReceived.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Shortcut/Alipay/QueryShortcut.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
      */
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();
Please login to merge, or discard this patch.
src/Shortcut/Alipay/CloseShortcut.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/Alipay/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/Alipay/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.