소스 검색

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…
취소
저장