Passed
Pull Request — master (#905)
by Songda
02:00
created
src/Provider/Unipay.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
      * @throws InvalidParamsException
40 40
      * @throws ServiceNotFoundException
41 41
      */
42
-    public function __call(string $shortcut, array $params): null|Collection|MessageInterface
42
+    public function __call(string $shortcut, array $params): null | Collection | MessageInterface
43 43
     {
44
-        $plugin = '\\Yansongda\\Pay\\Shortcut\\Unipay\\'.Str::studly($shortcut).'Shortcut';
44
+        $plugin = '\\Yansongda\\Pay\\Shortcut\\Unipay\\' . Str::studly($shortcut) . 'Shortcut';
45 45
 
46 46
         return $this->call($plugin, ...$params);
47 47
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @throws InvalidParamsException
52 52
      * @throws ServiceNotFoundException
53 53
      */
54
-    public function query(array $order): array|Collection
54
+    public function query(array $order): array | Collection
55 55
     {
56 56
         Event::dispatch(new Event\MethodCalled('unipay', __METHOD__, $order, null));
57 57
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @throws InvalidParamsException
64 64
      * @throws ServiceNotFoundException
65 65
      */
66
-    public function cancel(array $order): null|array|Collection
66
+    public function cancel(array $order): null | array | Collection
67 67
     {
68 68
         Event::dispatch(new Event\MethodCalled('unipay', __METHOD__, $order, null));
69 69
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * @throws InvalidParamsException
75 75
      */
76
-    public function close(array $order): null|array|Collection
76
+    public function close(array $order): null | array | Collection
77 77
     {
78 78
         throw new InvalidParamsException(Exception::PARAMS_METHOD_NOT_SUPPORTED, 'Unipay does not support close api');
79 79
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @throws InvalidParamsException
84 84
      * @throws ServiceNotFoundException
85 85
      */
86
-    public function refund(array $order): array|Collection
86
+    public function refund(array $order): array | Collection
87 87
     {
88 88
         Event::dispatch(new Event\MethodCalled('unipay', __METHOD__, $order, null));
89 89
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @throws ContainerException
95 95
      * @throws InvalidParamsException
96 96
      */
97
-    public function callback(null|array|ServerRequestInterface $contents = null, ?array $params = null): Collection
97
+    public function callback(null | array | ServerRequestInterface $contents = null, ?array $params = null): Collection
98 98
     {
99 99
         $request = $this->getCallbackParams($contents);
100 100
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         );
122 122
     }
123 123
 
124
-    protected function getCallbackParams(null|array|ServerRequestInterface $contents = null): Collection
124
+    protected function getCallbackParams(null | array | ServerRequestInterface $contents = null): Collection
125 125
     {
126 126
         if (is_array($contents)) {
127 127
             return Collection::wrap($contents);
Please login to merge, or discard this patch.