@@ -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])) { |
@@ -44,6 +44,9 @@ discard block |
||
44 | 44 | $this->optionsMap[$command][$shortOption]['long'] : $shortOption; |
45 | 45 | } |
46 | 46 | |
47 | + /** |
|
48 | + * @param string|boolean $remainder |
|
49 | + */ |
|
47 | 50 | private function getValueFromRemainder($remainder) |
48 | 51 | { |
49 | 52 | $remainder = substr($remainder, 1); |
@@ -80,6 +83,9 @@ discard block |
||
80 | 83 | } |
81 | 84 | } |
82 | 85 | |
86 | + /** |
|
87 | + * @param string $argument |
|
88 | + */ |
|
83 | 89 | public function parse($argument, $command) |
84 | 90 | { |
85 | 91 | $this->skippedShorts = ''; |