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