@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | { |
22 | 22 | if ($this->app instanceof Application && $this->app->runningInConsole()) { |
23 | 23 | $this->publishes([ |
24 | - dirname(__DIR__).'/config/pay.php' => config_path('pay.php'), ], |
|
24 | + dirname(__DIR__) . '/config/pay.php' => config_path('pay.php'), ], |
|
25 | 25 | 'laravel-pay' |
26 | 26 | ); |
27 | 27 | } |
@@ -42,19 +42,19 @@ 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 | } |
@@ -68,6 +68,6 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function provides() |
70 | 70 | { |
71 | - return ['pay.alipay', 'pay.wechat', 'pay.unipay']; |
|
71 | + return [ 'pay.alipay', 'pay.wechat', 'pay.unipay' ]; |
|
72 | 72 | } |
73 | 73 | } |