Browse Source

removed spaces in doc parsers fix...

develop
Robin Thoni 9 years ago
parent
commit
2e6445faec

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

93
             if (preg_match("/ *\\** *(.*) */", $line, $lineMatches) === 1) {
93
             if (preg_match("/ *\\** *(.*) */", $line, $lineMatches) === 1) {
94
                 $line = $lineMatches[1];
94
                 $line = $lineMatches[1];
95
                 $commandMatches = [];
95
                 $commandMatches = [];
96
-                if (preg_match("/@([^ ]+) +(.*)/", $line, $commandMatches)) {
96
+                if (preg_match("/@([^ ]+) *(.*)/", $line, $commandMatches)) {
97
                     $command = strtolower($commandMatches[1]);
97
                     $command = strtolower($commandMatches[1]);
98
                     $line = $commandMatches[2];
98
                     $line = $commandMatches[2];
99
                     if ($command == "param") {
99
                     if ($command == "param") {
100
                         $currentParam = new LuParameterDbo();
100
                         $currentParam = new LuParameterDbo();
101
                         $paramMatches = [];
101
                         $paramMatches = [];
102
-                        if (preg_match("/([^ ]+) +([^ ]+) +(.*)/", $line, $paramMatches) === 1) {
102
+                        if (preg_match("/([^ ]+) *([^ ]+) *(.*)/", $line, $paramMatches) === 1) {
103
                             if ($paramMatches[1][0] == "$") {
103
                             if ($paramMatches[1][0] == "$") {
104
                                 $currentParam->setName(substr($paramMatches[1], 1, strlen($paramMatches[1]) - 1));
104
                                 $currentParam->setName(substr($paramMatches[1], 1, strlen($paramMatches[1]) - 1));
105
                                 $currentParam->setType($paramMatches[2]);
105
                                 $currentParam->setType($paramMatches[2]);

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

44
             if (preg_match("/ *\\** *(.*) */", $line, $lineMatches) === 1) {
44
             if (preg_match("/ *\\** *(.*) */", $line, $lineMatches) === 1) {
45
                 $line = $lineMatches[1];
45
                 $line = $lineMatches[1];
46
                 $commandMatches = [];
46
                 $commandMatches = [];
47
-                if (preg_match("/@([^ ]+) +(.*)/", $line, $commandMatches)) {
47
+                if (preg_match("/@([^ ]+) *(.*)/", $line, $commandMatches)) {
48
                     $command = strtolower($commandMatches[1]);
48
                     $command = strtolower($commandMatches[1]);
49
                     $line = $commandMatches[2];
49
                     $line = $commandMatches[2];
50
                     if ($command == "var") {
50
                     if ($command == "var") {
51
                         $paramMatches = [];
51
                         $paramMatches = [];
52
-                        if (preg_match("/([^ ]+) +([^ ]+) +(.*)/", $line, $paramMatches) === 1) {
52
+                        if (preg_match("/([^ ]+) *([^ ]+) *(.*)/", $line, $paramMatches) === 1) {
53
                             if ($paramMatches[1][0] == "$") {
53
                             if ($paramMatches[1][0] == "$") {
54
                                 $currentParam->setName(substr($paramMatches[1], 1, strlen($paramMatches[1]) - 1));
54
                                 $currentParam->setName(substr($paramMatches[1], 1, strlen($paramMatches[1]) - 1));
55
                                 $currentParam->setType($paramMatches[2]);
55
                                 $currentParam->setType($paramMatches[2]);

Loading…
Cancel
Save