@@ -230,6 +230,9 @@ |
||
| 230 | 230 | return !empty($nextLine); |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | + /** |
|
| 234 | + * @param DocblockTag[] $tags |
|
| 235 | + */ |
|
| 233 | 236 | protected function processAllTags($tags) |
| 234 | 237 | { |
| 235 | 238 | // Iterate over all of the tags, and process them as necessary. |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | protected function processCommandTag($tag) |
| 60 | 60 | { |
| 61 | 61 | if (!$tag->hasWordAndDescription($matches)) { |
| 62 | - throw new \Exception('Could not determine command name from tag ' . (string)$tag); |
|
| 62 | + throw new \Exception('Could not determine command name from tag '.(string)$tag); |
|
| 63 | 63 | } |
| 64 | 64 | $commandName = $matches['word']; |
| 65 | 65 | $this->commandInfo->setName($commandName); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | protected function processArgumentTag($tag) |
| 87 | 87 | { |
| 88 | 88 | if (!$tag->hasVariable($matches)) { |
| 89 | - throw new \Exception('Could not determine parameter name from tag ' . (string)$tag); |
|
| 89 | + throw new \Exception('Could not determine parameter name from tag '.(string)$tag); |
|
| 90 | 90 | } |
| 91 | 91 | if ($matches['variable'] == $this->optionParamName()) { |
| 92 | 92 | return; |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | protected function processOptionTag($tag) |
| 101 | 101 | { |
| 102 | 102 | if (!$tag->hasVariable($matches)) { |
| 103 | - throw new \Exception('Could not determine parameter name from tag ' . (string)$tag); |
|
| 103 | + throw new \Exception('Could not determine parameter name from tag '.(string)$tag); |
|
| 104 | 104 | } |
| 105 | 105 | $this->addOptionOrArgumentTag($tag, $this->commandInfo->options(), $matches['variable'], $matches['description']); |
| 106 | 106 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | protected function processDefaultTag($tag) |
| 120 | 120 | { |
| 121 | 121 | if (!$tag->hasWordAndDescription($matches)) { |
| 122 | - throw new \Exception('Could not determine parameter name from tag ' . (string)$tag); |
|
| 122 | + throw new \Exception('Could not determine parameter name from tag '.(string)$tag); |
|
| 123 | 123 | } |
| 124 | 124 | $variableName = $matches['word']; |
| 125 | 125 | $defaultValue = $this->interpretDefaultValue($matches['description']); |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | { |
| 141 | 141 | $lines = explode("\n", $tag->getContent()); |
| 142 | 142 | $usage = trim(array_shift($lines)); |
| 143 | - $description = static::removeLineBreaks(implode("\n", array_map(function ($line) { |
|
| 143 | + $description = static::removeLineBreaks(implode("\n", array_map(function($line) { |
|
| 144 | 144 | return trim($line); |
| 145 | 145 | }, $lines))); |
| 146 | 146 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | protected function processReturnTag($tag) |
| 162 | 162 | { |
| 163 | 163 | if (!$tag->hasWordAndDescription($matches)) { |
| 164 | - throw new \Exception('Could not determine return type from tag ' . (string)$tag); |
|
| 164 | + throw new \Exception('Could not determine return type from tag '.(string)$tag); |
|
| 165 | 165 | } |
| 166 | 166 | // TODO: look at namespace and `use` statments to make returnType a fqdn |
| 167 | 167 | $returnType = $matches['word']; |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | // Trim all of the lines individually. |
| 202 | 202 | $lines = |
| 203 | 203 | array_map( |
| 204 | - function ($line) { |
|
| 204 | + function($line) { |
|
| 205 | 205 | return trim($line); |
| 206 | 206 | }, |
| 207 | 207 | $lines |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | // Everything up to the first blank line goes in the description. |
| 211 | 211 | $description = array_shift($lines); |
| 212 | 212 | while ($this->nextLineIsNotEmpty($lines)) { |
| 213 | - $description .= ' ' . array_shift($lines); |
|
| 213 | + $description .= ' '.array_shift($lines); |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | // Everything else goes in the help. |