瀏覽代碼

fixed spaces in doc parsers

develop
Robin Thoni 8 年之前
父節點
當前提交
4875cff0bc
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. 1
    1
      src/Utils/Business/LuMethodDocParser.php
  2. 1
    1
      src/Utils/Business/LuPropertyDocParser.php

+ 1
- 1
src/Utils/Business/LuMethodDocParser.php 查看文件

@@ -99,7 +99,7 @@ class LuMethodDocParser
99 99
                     if ($command == "param") {
100 100
                         $currentParam = new LuParameterDbo();
101 101
                         $paramMatches = [];
102
-                        if (preg_match("/([^ ]+) *([^ ]+) *(.*)/", $line, $paramMatches) === 1) {
102
+                        if (preg_match("/([^ ]+) +([^ ]+) *(.*)/", $line, $paramMatches) === 1) {
103 103
                             if ($paramMatches[1][0] == "$") {
104 104
                                 $currentParam->setName(substr($paramMatches[1], 1, strlen($paramMatches[1]) - 1));
105 105
                                 $currentParam->setType($paramMatches[2]);

+ 1
- 1
src/Utils/Business/LuPropertyDocParser.php 查看文件

@@ -49,7 +49,7 @@ class LuPropertyDocParser
49 49
                     $line = $commandMatches[2];
50 50
                     if ($command == "var") {
51 51
                         $paramMatches = [];
52
-                        if (preg_match("/([^ ]+) *([^ ]+) *(.*)/", $line, $paramMatches) === 1) {
52
+                        if (preg_match("/([^ ]+) +([^ ]+) *(.*)/", $line, $paramMatches) === 1) {
53 53
                             if ($paramMatches[1][0] == "$") {
54 54
                                 $currentParam->setName(substr($paramMatches[1], 1, strlen($paramMatches[1]) - 1));
55 55
                                 $currentParam->setType($paramMatches[2]);

Loading…
取消
儲存