@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | $this->payload['biz_content'] = json_encode($params); |
127 | 127 | |
128 | - $gateway = get_class($this).'\\'.Str::studly($gateway).'Gateway'; |
|
128 | + $gateway = get_class($this) . '\\' . Str::studly($gateway) . 'Gateway'; |
|
129 | 129 | |
130 | 130 | if (class_exists($gateway)) { |
131 | 131 | return $this->makePay($gateway); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $type = $type === true ? 'refund' : 'transfer'; |
196 | 196 | } |
197 | 197 | |
198 | - $gateway = get_class($this).'\\'.Str::studly($type).'Gateway'; |
|
198 | + $gateway = get_class($this) . '\\' . Str::studly($type) . 'Gateway'; |
|
199 | 199 | |
200 | 200 | if (!class_exists($gateway) || !is_callable([new $gateway(), 'find'])) { |
201 | 201 | throw new GatewayException("{$gateway} Done Not Exist Or Done Not Has FIND Method"); |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | $app = new $gateway(); |
355 | 355 | |
356 | 356 | if ($app instanceof GatewayInterface) { |
357 | - return $app->pay($this->gateway, array_filter($this->payload, function ($value) { |
|
357 | + return $app->pay($this->gateway, array_filter($this->payload, function($value) { |
|
358 | 358 | return $value !== '' && !is_null($value); |
359 | 359 | })); |
360 | 360 | } |