Test Failed
Branch master (ef2848)
by ma
03:43
created
example/Wechat/MiniTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 $data['merOrderId'] = '33XF'.time() . uniqid();
15 15
 // 业务类型 机构商户号 MINIDEFAULT|QRPAYDEFAULT|YUEDANDEFAULT
16 16
 $data['instMid'] = 'MINIDEFAULT';
17
- // 订单描述 展示在支付截图中
17
+    // 订单描述 展示在支付截图中
18 18
 $data['orderDesc'] = '账单描述';
19 19
 // 支付总金额
20 20
 $data['totalAmount'] = 2; 
Please login to merge, or discard this patch.
src/Factory.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,9 @@
 block discarded – undo
24 24
         $gateway = StringTool::uFirst($gateway);
25 25
         $class = __NAMESPACE__ . '\\Provider\\' . $gateway;
26 26
         if (class_exists($class)) {
27
-            if(empty(self::$config)) self::config($config);
27
+            if(empty(self::$config)) {
28
+                self::config($config);
29
+            }
28 30
             $objcet = new $class(self::$config);
29 31
             return $objcet;
30 32
         } else {
Please login to merge, or discard this patch.
src/Service/Common/Base.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $gateway = $this->config['gateway'];// 正式环境
51 51
         if($this->config['sandbox'] === false){
52 52
             $this->gateway = isset($gateway[$this->gateway_type]) ? $gateway[$this->gateway_type] : $gateway['default'];// 沙箱环境
53
-        }else{
53
+        } else{
54 54
             $this->gateway = $gateway['sandbox'];// 沙箱环境
55 55
         }
56 56
 
Please login to merge, or discard this patch.