@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | if ($this->app instanceof Application && $this->app->runningInConsole()) { |
| 24 | 24 | $this->publishes([ |
| 25 | - dirname(__DIR__).'/config/pay.php' => config_path('pay.php'), ], |
|
| 25 | + dirname(__DIR__) . '/config/pay.php' => config_path('pay.php'), ], |
|
| 26 | 26 | 'laravel-pay' |
| 27 | 27 | ); |
| 28 | 28 | } |
@@ -42,27 +42,27 @@ 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 | 47 | Pay::config(config('pay')); |
| 48 | 48 | |
| 49 | - $this->app->singleton('pay.alipay', function () { |
|
| 49 | + $this->app->singleton('pay.alipay', function() { |
|
| 50 | 50 | return Pay::alipay(); |
| 51 | 51 | }); |
| 52 | 52 | |
| 53 | - $this->app->singleton('pay.wechat', function () { |
|
| 53 | + $this->app->singleton('pay.wechat', function() { |
|
| 54 | 54 | return Pay::wechat(); |
| 55 | 55 | }); |
| 56 | 56 | |
| 57 | - $this->app->singleton('pay.unipay', function () { |
|
| 57 | + $this->app->singleton('pay.unipay', function() { |
|
| 58 | 58 | return Pay::unipay(); |
| 59 | 59 | }); |
| 60 | 60 | |
| 61 | - $this->app->singleton('pay.douyin', function () { |
|
| 61 | + $this->app->singleton('pay.douyin', function() { |
|
| 62 | 62 | return Pay::douyin(); |
| 63 | 63 | }); |
| 64 | 64 | |
| 65 | - $this->app->singleton('pay.jsb', function () { |
|
| 65 | + $this->app->singleton('pay.jsb', function() { |
|
| 66 | 66 | return Pay::jsb(); |
| 67 | 67 | }); |
| 68 | 68 | } |
@@ -76,6 +76,6 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | public function provides() |
| 78 | 78 | { |
| 79 | - return ['pay.alipay', 'pay.wechat', 'pay.unipay', 'pay.douyin', 'pay.jsb']; |
|
| 79 | + return [ 'pay.alipay', 'pay.wechat', 'pay.unipay', 'pay.douyin', 'pay.jsb' ]; |
|
| 80 | 80 | } |
| 81 | 81 | } |