@@ -213,6 +213,9 @@ discard block |
||
| 213 | 213 | return $this->executeCommand($this->command, $this->parsedOptions); |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | + /** |
|
| 217 | + * @return string |
|
| 218 | + */ |
|
| 216 | 219 | public function getLookAheadArgument() |
| 217 | 220 | { |
| 218 | 221 | return $this->arguments[$this->argumentPointer + 1]; |
@@ -351,6 +354,9 @@ discard block |
||
| 351 | 354 | return $command; |
| 352 | 355 | } |
| 353 | 356 | |
| 357 | + /** |
|
| 358 | + * @param string $command |
|
| 359 | + */ |
|
| 354 | 360 | private function stringCommandToArray($command) |
| 355 | 361 | { |
| 356 | 362 | return array( |
@@ -382,6 +388,9 @@ discard block |
||
| 382 | 388 | } |
| 383 | 389 | } |
| 384 | 390 | |
| 391 | + /** |
|
| 392 | + * @param string $option |
|
| 393 | + */ |
|
| 385 | 394 | private function stringOptionToArray($option) |
| 386 | 395 | { |
| 387 | 396 | $newOption = array(); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * |
| 81 | 81 | * @param array $commands An array of associative arrays with infomation |
| 82 | 82 | * about all commands configured into ClearIce. |
| 83 | - * @return array |
|
| 83 | + * @return string[] |
|
| 84 | 84 | */ |
| 85 | 85 | private function getCommandsHelp($commands) |
| 86 | 86 | { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * stated in this argument. |
| 104 | 104 | * @param string $title A descriptive title for the header of this set |
| 105 | 105 | * of options. |
| 106 | - * @return array |
|
| 106 | + * @return string[] |
|
| 107 | 107 | */ |
| 108 | 108 | private function getOptionsHelp($options, $command = '', $title = 'Options:') |
| 109 | 109 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @param string $argumentPart |
| 176 | 176 | * @param string $help |
| 177 | 177 | * @param integer $minSize |
| 178 | - * @return array |
|
| 178 | + * @return string |
|
| 179 | 179 | */ |
| 180 | 180 | private function wrapHelp($argumentPart, &$help, $minSize = 29) |
| 181 | 181 | { |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | * sring with your option and and wrapping the help message around it. |
| 195 | 195 | * |
| 196 | 196 | * @param type $option |
| 197 | - * @return string |
|
| 197 | + * @return string[] |
|
| 198 | 198 | */ |
| 199 | 199 | private function formatOptionHelp($option) |
| 200 | 200 | { |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * help message for a given command around the command. |
| 217 | 217 | * |
| 218 | 218 | * @param type $command |
| 219 | - * @return string |
|
| 219 | + * @return string[] |
|
| 220 | 220 | */ |
| 221 | 221 | private function formatCommandHelp($command) |
| 222 | 222 | { |
@@ -230,6 +230,9 @@ discard block |
||
| 230 | 230 | return $commandHelp; |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | + /** |
|
| 234 | + * @param string $section |
|
| 235 | + */ |
|
| 233 | 236 | private function getDescriptionMessage(array $params, array &$sections, $section) |
| 234 | 237 | { |
| 235 | 238 | if(isset($params[$section])) { |
@@ -42,6 +42,9 @@ discard block |
||
| 42 | 42 | $this->optionsMap[$command][$shortOption]['long'] : $shortOption; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string|boolean $remainder |
|
| 47 | + */ |
|
| 45 | 48 | private function getValueFromRemainder($remainder) |
| 46 | 49 | { |
| 47 | 50 | $remainder = substr($remainder, 1); |
@@ -83,6 +86,9 @@ discard block |
||
| 83 | 86 | } |
| 84 | 87 | } |
| 85 | 88 | |
| 89 | + /** |
|
| 90 | + * @param string $argument |
|
| 91 | + */ |
|
| 86 | 92 | public function parse($argument, $command) |
| 87 | 93 | { |
| 88 | 94 | $this->skippedShorts = ''; |