Procházet zdrojové kódy

fixed spaces in doc parsers

develop
Robin Thoni před 8 roky
rodič
revize
4875cff0bc

+ 1
- 1
src/Utils/Business/LuMethodDocParser.php Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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]);

Načítá se…
Zrušit
Uložit