| @@ -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 = ''; | 
| @@ -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])) { |