Browse Source

removed spaces in doc parsers fix...

develop
Robin Thoni 8 years ago
parent
commit
2e6445faec

+ 2
- 2
src/Utils/Business/LuMethodDocParser.php View File

@@ -93,13 +93,13 @@ class LuMethodDocParser
93 93
             if (preg_match("/ *\\** *(.*) */", $line, $lineMatches) === 1) {
94 94
                 $line = $lineMatches[1];
95 95
                 $commandMatches = [];
96
-                if (preg_match("/@([^ ]+) +(.*)/", $line, $commandMatches)) {
96
+                if (preg_match("/@([^ ]+) *(.*)/", $line, $commandMatches)) {
97 97
                     $command = strtolower($commandMatches[1]);
98 98
                     $line = $commandMatches[2];
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]);

+ 2
- 2
src/Utils/Business/LuPropertyDocParser.php View File

@@ -44,12 +44,12 @@ class LuPropertyDocParser
44 44
             if (preg_match("/ *\\** *(.*) */", $line, $lineMatches) === 1) {
45 45
                 $line = $lineMatches[1];
46 46
                 $commandMatches = [];
47
-                if (preg_match("/@([^ ]+) +(.*)/", $line, $commandMatches)) {
47
+                if (preg_match("/@([^ ]+) *(.*)/", $line, $commandMatches)) {
48 48
                     $command = strtolower($commandMatches[1]);
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…
Cancel
Save