@@ -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)) { |
@@ -208,6 +211,9 @@ discard block |
||
208 | 211 | return !empty($nextLine); |
209 | 212 | } |
210 | 213 | |
214 | + /** |
|
215 | + * @param DocblockTag[] $tags |
|
216 | + */ |
|
211 | 217 | protected function processAllTags($tags) |
212 | 218 | { |
213 | 219 | // Iterate over all of the tags, and process them as necessary. |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | protected function processCommandTag($tag) |
37 | 37 | { |
38 | 38 | if (!$tag->hasWordAndDescription($matches)) { |
39 | - throw new \Exception('Could not determine command name from tag ' . (string)$tag); |
|
39 | + throw new \Exception('Could not determine command name from tag '.(string)$tag); |
|
40 | 40 | } |
41 | 41 | $commandName = $matches['word']; |
42 | 42 | $this->commandInfo->setName($commandName); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | { |
119 | 119 | $lines = explode("\n", $tag->getContent()); |
120 | 120 | $usage = trim(array_shift($lines)); |
121 | - $description = static::removeLineBreaks(implode("\n", array_map(function ($line) { |
|
121 | + $description = static::removeLineBreaks(implode("\n", array_map(function($line) { |
|
122 | 122 | return trim($line); |
123 | 123 | }, $lines))); |
124 | 124 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | protected function processReturnTag($tag) |
140 | 140 | { |
141 | 141 | if (!$tag->hasWordAndDescription($matches)) { |
142 | - throw new \Exception('Could not determine return type from tag ' . (string)$tag); |
|
142 | + throw new \Exception('Could not determine return type from tag '.(string)$tag); |
|
143 | 143 | } |
144 | 144 | // TODO: look at namespace and `use` statments to make returnType a fqdn |
145 | 145 | $returnType = $matches['word']; |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | // Trim all of the lines individually. |
180 | 180 | $lines = |
181 | 181 | array_map( |
182 | - function ($line) { |
|
182 | + function($line) { |
|
183 | 183 | return trim($line); |
184 | 184 | }, |
185 | 185 | $lines |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | // Everything up to the first blank line goes in the description. |
189 | 189 | $description = array_shift($lines); |
190 | 190 | while ($this->nextLineIsNotEmpty($lines)) { |
191 | - $description .= ' ' . array_shift($lines); |
|
191 | + $description .= ' '.array_shift($lines); |
|
192 | 192 | } |
193 | 193 | |
194 | 194 | // Everything else goes in the help. |