@@ -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 = ''; |
@@ -208,6 +208,9 @@ discard block |
||
| 208 | 208 | return $this->executeCommand($this->command, $this->parsedOptions); |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | + /** |
|
| 212 | + * @return string |
|
| 213 | + */ |
|
| 211 | 214 | public function getLookAheadArgument() |
| 212 | 215 | { |
| 213 | 216 | return $this->arguments[$this->argumentPointer + 1]; |
@@ -324,6 +327,9 @@ discard block |
||
| 324 | 327 | return $command; |
| 325 | 328 | } |
| 326 | 329 | |
| 330 | + /** |
|
| 331 | + * @param string $command |
|
| 332 | + */ |
|
| 327 | 333 | private function stringCommandToArray($command) |
| 328 | 334 | { |
| 329 | 335 | return [ |
@@ -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 | { |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | * @param string $argumentPart |
| 185 | 185 | * @param string $help |
| 186 | 186 | * @param integer $minSize |
| 187 | - * @return array |
|
| 187 | + * @return string |
|
| 188 | 188 | */ |
| 189 | 189 | private function wrapHelp($argumentPart, &$help, $minSize = 29) |
| 190 | 190 | { |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * sring with your option and and wrapping the help message around it. |
| 204 | 204 | * |
| 205 | 205 | * @param type $option |
| 206 | - * @return string |
|
| 206 | + * @return string[] |
|
| 207 | 207 | */ |
| 208 | 208 | private function formatOptionHelp($option) |
| 209 | 209 | { |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | * help message for a given command around the command. |
| 226 | 226 | * |
| 227 | 227 | * @param type $command |
| 228 | - * @return string |
|
| 228 | + * @return string[] |
|
| 229 | 229 | */ |
| 230 | 230 | private function formatCommandHelp($command) |
| 231 | 231 | { |
@@ -239,6 +239,9 @@ discard block |
||
| 239 | 239 | return $commandHelp; |
| 240 | 240 | } |
| 241 | 241 | |
| 242 | + /** |
|
| 243 | + * @param string $section |
|
| 244 | + */ |
|
| 242 | 245 | private function getDescriptionMessage(array $params, array &$sections, $section) |
| 243 | 246 | { |
| 244 | 247 | if(isset($params[$section])) { |