@@ -137,6 +137,9 @@ discard block |
||
| 137 | 137 | return filemtime($path) != $cache['mtime']; |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @param string $methodName |
|
| 142 | + */ |
|
| 140 | 143 | protected function constructFromClassAndMethod($classNameOrInstance, $methodName) |
| 141 | 144 | { |
| 142 | 145 | $this->otherAnnotations = new AnnotationData(); |
@@ -400,7 +403,7 @@ discard block |
||
| 400 | 403 | /** |
| 401 | 404 | * Return the list of refleaction parameters. |
| 402 | 405 | * |
| 403 | - * @return ReflectionParameter[] |
|
| 406 | + * @return \ReflectionParameter[] |
|
| 404 | 407 | */ |
| 405 | 408 | public function getParameters() |
| 406 | 409 | { |
@@ -540,7 +543,7 @@ discard block |
||
| 540 | 543 | * Examine the parameters of the method for this command, and |
| 541 | 544 | * build a list of commandline arguements for them. |
| 542 | 545 | * |
| 543 | - * @return array |
|
| 546 | + * @return DefaultsWithDescriptions |
|
| 544 | 547 | */ |
| 545 | 548 | protected function determineAgumentClassifications() |
| 546 | 549 | { |
@@ -560,6 +563,7 @@ discard block |
||
| 560 | 563 | * Examine the provided parameter, and determine whether it |
| 561 | 564 | * is a parameter that will be filled in with a positional |
| 562 | 565 | * commandline argument. |
| 566 | + * @param DefaultsWithDescriptions $result |
|
| 563 | 567 | */ |
| 564 | 568 | protected function addParameterToResult($result, $param) |
| 565 | 569 | { |
@@ -650,6 +654,8 @@ discard block |
||
| 650 | 654 | /** |
| 651 | 655 | * Given a list that might be 'a b c' or 'a, b, c' or 'a,b,c', |
| 652 | 656 | * convert the data into the last of these forms. |
| 657 | + * @param string $text |
|
| 658 | + * @return string |
|
| 653 | 659 | */ |
| 654 | 660 | protected static function convertListToCommaSeparated($text) |
| 655 | 661 | { |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function replaceRawAnnotations($annotationData) |
| 211 | 211 | { |
| 212 | - $this->otherAnnotations = new AnnotationData((array) $annotationData); |
|
| 212 | + $this->otherAnnotations = new AnnotationData((array)$annotationData); |
|
| 213 | 213 | return $this; |
| 214 | 214 | } |
| 215 | 215 | |
@@ -627,8 +627,8 @@ discard block |
||
| 627 | 627 | */ |
| 628 | 628 | protected function convertName($camel) |
| 629 | 629 | { |
| 630 | - $splitter="-"; |
|
| 631 | - $camel=preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel)); |
|
| 630 | + $splitter = "-"; |
|
| 631 | + $camel = preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel)); |
|
| 632 | 632 | $camel = preg_replace("/$splitter/", ':', $camel, 1); |
| 633 | 633 | return strtolower($camel); |
| 634 | 634 | } |