@@ -146,6 +146,9 @@ discard block |
||
146 | 146 | $this->commandInfo->setReturnType($returnType); |
147 | 147 | } |
148 | 148 | |
149 | + /** |
|
150 | + * @param string $doc |
|
151 | + */ |
|
149 | 152 | private function parseDocBlock($doc) |
150 | 153 | { |
151 | 154 | if (empty($doc)) { |
@@ -198,6 +201,9 @@ discard block |
||
198 | 201 | $this->commandInfo->setHelp($help); |
199 | 202 | } |
200 | 203 | |
204 | + /** |
|
205 | + * @param DocblockTag[] $tags |
|
206 | + */ |
|
201 | 207 | protected function processAllTags($tags) |
202 | 208 | { |
203 | 209 | // Iterate over all of the tags, and process them as necessary. |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | /** |
30 | 30 | * Check if the provided string begins with a tag |
31 | 31 | * @param string $subject |
32 | - * @return bool |
|
32 | + * @return integer |
|
33 | 33 | */ |
34 | 34 | public static function isTag($subject) |
35 | 35 | { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * |
42 | 42 | * @param string $subject |
43 | 43 | * @param string[] &$matches Sets $matches['tag'] and $matches['description'] |
44 | - * @return bool |
|
44 | + * @return integer |
|
45 | 45 | */ |
46 | 46 | public static function splitTagAndContent($subject, &$matches) |
47 | 47 | { |
@@ -101,7 +101,6 @@ discard block |
||
101 | 101 | * - "@tag $variable description" |
102 | 102 | * - "@tag type $variable description" |
103 | 103 | * |
104 | - * @param string $subject |
|
105 | 104 | * @param string[] &$matches Sets $matches['variable'] and |
106 | 105 | * $matches['description']; might set $matches['type']. |
107 | 106 | * @return bool |
@@ -115,10 +114,9 @@ discard block |
||
115 | 114 | |
116 | 115 | /** |
117 | 116 | * Determine if tag is "@tag $variable description" |
118 | - * @param string $subject |
|
119 | 117 | * @param string[] &$matches Sets $matches['variable'] and |
120 | 118 | * $matches['description'] |
121 | - * @return bool |
|
119 | + * @return integer |
|
122 | 120 | */ |
123 | 121 | public function hasVariableAndDescription(&$matches) |
124 | 122 | { |
@@ -129,10 +127,9 @@ discard block |
||
129 | 127 | /** |
130 | 128 | * Determine if tag is "@tag type $variable description" |
131 | 129 | * |
132 | - * @param string $subject |
|
133 | 130 | * @param string[] &$matches Sets $matches['variable'], |
134 | 131 | * $matches['description'] and $matches['type']. |
135 | - * @return bool |
|
132 | + * @return integer |
|
136 | 133 | */ |
137 | 134 | public function hasTypeVariableAndDescription(&$matches) |
138 | 135 | { |
@@ -142,10 +139,9 @@ discard block |
||
142 | 139 | |
143 | 140 | /** |
144 | 141 | * Determine if tag is "@tag word description" |
145 | - * @param string $subject |
|
146 | 142 | * @param string[] &$matches Sets $matches['word'] and |
147 | 143 | * $matches['description'] |
148 | - * @return bool |
|
144 | + * @return integer |
|
149 | 145 | */ |
150 | 146 | public function hasWordAndDescription(&$matches) |
151 | 147 | { |
@@ -21,6 +21,9 @@ |
||
21 | 21 | $this->tags = []; |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $line |
|
26 | + */ |
|
24 | 27 | public function parseLine($line) |
25 | 28 | { |
26 | 29 | if (DocblockTag::isTag($line)) { |