stanley-king 1 년 전
부모
커밋
67b331eec6
2개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 5 5
      helper/refill/api/xyz/leyou/RefillOil.php
  2. 2 1
      test/TestRefill.php

+ 5 - 5
helper/refill/api/xyz/leyou/RefillOil.php

@@ -69,14 +69,14 @@ class RefillOil extends refill\IRefillOil
 
     public function query($refill_info)
     {
-
-        $waterno_by_voucher = function($voucher):string {
+        $waterno_by_voucher = function ($voucher): string
+        {
             $matches = [];
-            $ret = preg_match("/\:(\d+)/",$voucher,$matches);
-            if ($ret === 1 && !empty($matches)){
+            $ret = preg_match("/\:(\d+)/", $voucher, $matches);
+            if ($ret === 1 && !empty($matches)) {
                 return $matches[1];
             }
-          return '';
+            return '';
         };
 
         $params['username'] = config::USER_NAME;

+ 2 - 1
test/TestRefill.php

@@ -5353,7 +5353,8 @@ class TestRefill extends TestCase
         $watorno4 = $this->Leyou_Waterno_By_Voucher(null);
     }
 
-    private function Leyou_Waterno_By_Voucher($voucher):string {
+    private function Leyou_Waterno_By_Voucher($voucher):string
+    {
         $matches = [];
         $ret = preg_match("/\:(\d+)/",$voucher,$matches);
         if ($ret === 1 && !empty($matches)){