Completed
Push — master ( 493824...65fbd4 )
by Songda
17s
created
config/pay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
             'sub_mch_id' => '',
58 58
             // 选填-微信公钥证书路径, optional,强烈建议 php-fpm 模式下配置此参数
59 59
             'wechat_public_cert_path' => [
60
-                '45F59D4DABF31918AFCEC556D5D2C6E376675D57' => __DIR__.'/Cert/wechatPublicKey.crt',
60
+                '45F59D4DABF31918AFCEC556D5D2C6E376675D57' => __DIR__ . '/Cert/wechatPublicKey.crt',
61 61
             ],
62 62
             // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE
63 63
             'mode' => Pay::MODE_NORMAL,
Please login to merge, or discard this patch.
src/PayServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         if ($this->app instanceof Application && $this->app->runningInConsole()) {
19 19
             $this->publishes([
20
-                dirname(__DIR__).'/config/pay.php' => config_path('pay.php'), ],
20
+                dirname(__DIR__) . '/config/pay.php' => config_path('pay.php'), ],
21 21
                 'laravel-pay'
22 22
             );
23 23
         }
@@ -32,33 +32,33 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function register(): void
34 34
     {
35
-        $this->mergeConfigFrom(dirname(__DIR__).'/config/pay.php', 'pay');
35
+        $this->mergeConfigFrom(dirname(__DIR__) . '/config/pay.php', 'pay');
36 36
 
37 37
         Pay::config(config('pay'));
38 38
 
39
-        $this->app->singleton('pay.alipay', function () {
39
+        $this->app->singleton('pay.alipay', function() {
40 40
             return Pay::alipay();
41 41
         });
42 42
 
43
-        $this->app->singleton('pay.wechat', function () {
43
+        $this->app->singleton('pay.wechat', function() {
44 44
             return Pay::wechat();
45 45
         });
46 46
 
47
-        $this->app->singleton('pay.unipay', function () {
47
+        $this->app->singleton('pay.unipay', function() {
48 48
             return Pay::unipay();
49 49
         });
50 50
 
51
-		$this->app->singleton('pay.douyin', function () {
51
+		$this->app->singleton('pay.douyin', function() {
52 52
 			return Pay::douyin();
53 53
 		});
54 54
 
55
-		$this->app->singleton('pay.jsb', function () {
55
+		$this->app->singleton('pay.jsb', function() {
56 56
 			return Pay::jsb();
57 57
 		});
58 58
     }
59 59
 
60 60
     public function provides(): array
61 61
     {
62
-        return ['pay.alipay', 'pay.wechat', 'pay.unipay', 'pay.douyin', 'pay.jsb'];
62
+        return [ 'pay.alipay', 'pay.wechat', 'pay.unipay', 'pay.douyin', 'pay.jsb' ];
63 63
     }
64 64
 }
Please login to merge, or discard this patch.