@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | if (!file_exists(config_path('pay.php'))) { |
27 | 27 | if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { |
28 | 28 | $this->publishes([ |
29 | - dirname(__DIR__).'/config/pay.php' => config_path('pay.php'), |
|
29 | + dirname(__DIR__) . '/config/pay.php' => config_path('pay.php'), |
|
30 | 30 | ], 'laravel-pay'); |
31 | 31 | } elseif ($this->app instanceof LumenApplication) { |
32 | 32 | $this->app->configure('pay'); |
@@ -41,12 +41,12 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function register() |
43 | 43 | { |
44 | - $this->mergeConfigFrom(dirname(__DIR__).'/config/pay.php', 'pay'); |
|
44 | + $this->mergeConfigFrom(dirname(__DIR__) . '/config/pay.php', 'pay'); |
|
45 | 45 | |
46 | - $this->app->singleton('pay.alipay', function () { |
|
46 | + $this->app->singleton('pay.alipay', function() { |
|
47 | 47 | return Pay::alipay(config('pay.alipay')); |
48 | 48 | }); |
49 | - $this->app->singleton('pay.wechat', function () { |
|
49 | + $this->app->singleton('pay.wechat', function() { |
|
50 | 50 | return Pay::wechat(config('pay.wechat')); |
51 | 51 | }); |
52 | 52 | } |