@@ -80,7 +80,7 @@ |
||
| 80 | 80 | protected static function getLoggerInstance() : Logger |
| 81 | 81 | { |
| 82 | 82 | $maxFiles = 7; |
| 83 | - $filename = sys_get_temp_dir() . '/logs/payment.log'; |
|
| 83 | + $filename = sys_get_temp_dir().'/logs/payment.log'; |
|
| 84 | 84 | $handler = new RotatingFileHandler($filename, $maxFiles); |
| 85 | 85 | $handler->setFilenameFormat('{date}-{filename}', 'Y-m-d'); |
| 86 | 86 | $formatter = new LineFormatter(null, null, true, true); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | 'biz_content' => '', |
| 87 | 87 | ]; |
| 88 | 88 | |
| 89 | - ! $this->config->has('log.file') ?: $this->registerLogger(); |
|
| 89 | + !$this->config->has('log.file') ?: $this->registerLogger(); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | private function dispatcher(string $gateway, array $array = []) |
| 217 | 217 | { |
| 218 | 218 | $this->payload['biz_content'] = $array; |
| 219 | - $class = \get_class($this) . '\\' . Str::studly($gateway) . 'Payment'; |
|
| 219 | + $class = \get_class($this).'\\'.Str::studly($gateway).'Payment'; |
|
| 220 | 220 | |
| 221 | 221 | if (class_exists($class)) { |
| 222 | 222 | return $this->toPay($class); |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | $this->payload, |
| 261 | 261 | $this->config->get('private_key') |
| 262 | 262 | ); |
| 263 | - Log::debug(ucfirst($type) . ' an order:', [ |
|
| 263 | + Log::debug(ucfirst($type).' an order:', [ |
|
| 264 | 264 | $this->gateway, |
| 265 | 265 | $this->payload, |
| 266 | 266 | ]); |