@@ -57,7 +57,7 @@ |
||
| 57 | 57 | * |
| 58 | 58 | * @author yansongda <[email protected]> |
| 59 | 59 | * |
| 60 | - * @return array |
|
| 60 | + * @return string[] |
|
| 61 | 61 | */ |
| 62 | 62 | public function provides() |
| 63 | 63 | { |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { |
| 27 | 27 | $this->publishes([ |
| 28 | - dirname(__DIR__).'/config/pay.php' => config_path('pay.php'), ], |
|
| 28 | + dirname(__DIR__) . '/config/pay.php' => config_path('pay.php'), ], |
|
| 29 | 29 | 'laravel-pay' |
| 30 | 30 | ); |
| 31 | 31 | } elseif ($this->app instanceof LumenApplication) { |
@@ -42,12 +42,12 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function register() |
| 44 | 44 | { |
| 45 | - $this->mergeConfigFrom(dirname(__DIR__).'/config/pay.php', 'pay'); |
|
| 45 | + $this->mergeConfigFrom(dirname(__DIR__) . '/config/pay.php', 'pay'); |
|
| 46 | 46 | |
| 47 | - $this->app->singleton('pay.alipay', function () { |
|
| 47 | + $this->app->singleton('pay.alipay', function() { |
|
| 48 | 48 | return Pay::alipay(config('pay.alipay')); |
| 49 | 49 | }); |
| 50 | - $this->app->singleton('pay.wechat', function () { |
|
| 50 | + $this->app->singleton('pay.wechat', function() { |
|
| 51 | 51 | return Pay::wechat(config('pay.wechat')); |
| 52 | 52 | }); |
| 53 | 53 | } |
@@ -61,6 +61,6 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function provides() |
| 63 | 63 | { |
| 64 | - return ['pay.alipay', 'pay.wechat']; |
|
| 64 | + return [ 'pay.alipay', 'pay.wechat' ]; |
|
| 65 | 65 | } |
| 66 | 66 | } |