@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | */ |
228 | 228 | public function replaceRawAnnotations($annotationData) |
229 | 229 | { |
230 | - $this->otherAnnotations = new AnnotationData((array) $annotationData); |
|
230 | + $this->otherAnnotations = new AnnotationData((array)$annotationData); |
|
231 | 231 | return $this; |
232 | 232 | } |
233 | 233 | |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | // Convert to an array and merge if there are multiple |
337 | 337 | // instances of the same annotation defined. |
338 | 338 | if (isset($this->otherAnnotations[$name])) { |
339 | - $content = array_merge((array) $this->otherAnnotations[$name], (array)$content); |
|
339 | + $content = array_merge((array)$this->otherAnnotations[$name], (array)$content); |
|
340 | 340 | } |
341 | 341 | $this->otherAnnotations[$name] = $content; |
342 | 342 | } |
@@ -693,8 +693,8 @@ discard block |
||
693 | 693 | */ |
694 | 694 | protected function convertName($camel) |
695 | 695 | { |
696 | - $splitter="-"; |
|
697 | - $camel=preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel)); |
|
696 | + $splitter = "-"; |
|
697 | + $camel = preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel)); |
|
698 | 698 | $camel = preg_replace("/$splitter/", ':', $camel, 1); |
699 | 699 | return strtolower($camel); |
700 | 700 | } |
@@ -133,6 +133,9 @@ discard block |
||
133 | 133 | return filemtime($path) != $cache['mtime']; |
134 | 134 | } |
135 | 135 | |
136 | + /** |
|
137 | + * @param string $methodName |
|
138 | + */ |
|
136 | 139 | protected function constructFromClassAndMethod($classNameOrInstance, $methodName) |
137 | 140 | { |
138 | 141 | $this->otherAnnotations = new AnnotationData(); |
@@ -260,7 +263,6 @@ discard block |
||
260 | 263 | /** |
261 | 264 | * Return a specific named annotation for this command as a list. |
262 | 265 | * |
263 | - * @param string $name The name of the annotation. |
|
264 | 266 | * @return array|null |
265 | 267 | */ |
266 | 268 | public function getAnnotationList($annotation) |
@@ -439,7 +441,7 @@ discard block |
||
439 | 441 | /** |
440 | 442 | * Return the list of refleaction parameters. |
441 | 443 | * |
442 | - * @return ReflectionParameter[] |
|
444 | + * @return \ReflectionParameter[] |
|
443 | 445 | */ |
444 | 446 | public function getParameters() |
445 | 447 | { |
@@ -579,7 +581,7 @@ discard block |
||
579 | 581 | * Examine the parameters of the method for this command, and |
580 | 582 | * build a list of commandline arguements for them. |
581 | 583 | * |
582 | - * @return array |
|
584 | + * @return DefaultsWithDescriptions |
|
583 | 585 | */ |
584 | 586 | protected function determineAgumentClassifications() |
585 | 587 | { |
@@ -599,6 +601,7 @@ discard block |
||
599 | 601 | * Examine the provided parameter, and determine whether it |
600 | 602 | * is a parameter that will be filled in with a positional |
601 | 603 | * commandline argument. |
604 | + * @param DefaultsWithDescriptions $result |
|
602 | 605 | */ |
603 | 606 | protected function addParameterToResult($result, $param) |
604 | 607 | { |
@@ -689,6 +692,8 @@ discard block |
||
689 | 692 | /** |
690 | 693 | * Given a list that might be 'a b c' or 'a, b, c' or 'a,b,c', |
691 | 694 | * convert the data into the last of these forms. |
695 | + * @param string $text |
|
696 | + * @return string |
|
692 | 697 | */ |
693 | 698 | protected static function convertListToCommaSeparated($text) |
694 | 699 | { |