Passed
Push — master ( f07ef0...7807ae )
by wannanbigpig
02:30
created
src/Payment/Application.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * @author   liuml  <[email protected]>
166 166
      * @DateTime 2019-04-28  12:09
167 167
      */
168
-    public function alipayMethod($method, $params = [])
168
+    public function alipayMethod($method, $params = [ ])
169 169
     {
170 170
         $method = Str::studly($method);
171 171
         // 组装命名空间
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      * @author   liuml  <[email protected]>
192 192
      * @DateTime 2019-04-28  12:09
193 193
      */
194
-    public function make(string $gateway, $params = [])
194
+    public function make(string $gateway, $params = [ ])
195 195
     {
196 196
         $app = new $gateway();
197 197
 
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     {
215 215
         Support::$config->set('event', [
216 216
             'driver' => 'Payment',
217
-            'method' => $method ? : $this->method,
217
+            'method' => $method ?: $this->method,
218 218
         ]);
219 219
     }
220 220
 
Please login to merge, or discard this patch.