@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * as private and are not used in the same class' context. |
77 | 77 | * |
78 | 78 | * @param \PHPMD\Node\ClassNode $class |
79 | - * @return \PHPMD\AbstractNode[] |
|
79 | + * @return MethodNode[] |
|
80 | 80 | */ |
81 | 81 | private function collectUnusedPrivateMethods(ClassNode $class) |
82 | 82 | { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * |
127 | 127 | * @param \PHPMD\Node\ClassNode $class |
128 | 128 | * @param \PHPMD\Node\MethodNode[] $methods |
129 | - * @return \PHPMD\AbstractNode[] |
|
129 | + * @return MethodNode[] |
|
130 | 130 | */ |
131 | 131 | private function removeUsedMethods(ClassNode $class, array $methods) |
132 | 132 | { |
@@ -162,7 +162,7 @@ |
||
162 | 162 | * |
163 | 163 | * @param integer $numberOfMethods |
164 | 164 | * @param array|null $publicMethods |
165 | - * @param array|null $privateMethods |
|
165 | + * @param string[] $privateMethods |
|
166 | 166 | * @return \PHPMD\Node\ClassNode |
167 | 167 | */ |
168 | 168 | private function createClassMock($numberOfMethods, array $publicMethods = array(), array $privateMethods = array()) |
@@ -115,7 +115,7 @@ |
||
115 | 115 | * Creates a rule set instance with a variable amount of appended rule |
116 | 116 | * objects. |
117 | 117 | * |
118 | - * @return \PHPMD\AbstractRule |
|
118 | + * @return RuleSet |
|
119 | 119 | */ |
120 | 120 | private function createRuleSetFixture() |
121 | 121 | { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
136 | - * @return \PHPMD\Node\InterfaceNode |
|
136 | + * @return TraitNode |
|
137 | 137 | */ |
138 | 138 | protected function getTrait() |
139 | 139 | { |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * Parses the source code for the calling test method and returns the first |
222 | 222 | * package node found in the parsed file. |
223 | 223 | * |
224 | - * @return PHP_Depend_Code_Package |
|
224 | + * @return \PDepend\Source\AST\ASTNamespace |
|
225 | 225 | */ |
226 | 226 | private function parseTestCaseSource() |
227 | 227 | { |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | /** |
232 | 232 | * Returns the trace frame of the calling test case. |
233 | 233 | * |
234 | - * @return array |
|
234 | + * @return string |
|
235 | 235 | * @throws \ErrorException |
236 | 236 | */ |
237 | 237 | private static function getCallingTestCase() |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | * Creates a mocked class node instance. |
296 | 296 | * |
297 | 297 | * @param string $metric |
298 | - * @param mixed $value |
|
298 | + * @param integer $value |
|
299 | 299 | * @return \PHPMD\Node\ClassNode |
300 | 300 | */ |
301 | 301 | protected function getClassMock($metric = null, $value = null) |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | * Creates a mocked method node instance. |
322 | 322 | * |
323 | 323 | * @param string $metric |
324 | - * @param mixed $value |
|
324 | + * @param integer $value |
|
325 | 325 | * @return \PHPMD\Node\MethodNode |
326 | 326 | */ |
327 | 327 | protected function getMethodMock($metric = null, $value = null) |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | /** |
402 | 402 | * Creates a mocked {@link \PHPMD\AbstractRule} instance. |
403 | 403 | * |
404 | - * @return \PHPMD\AbstractRule |
|
404 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
405 | 405 | */ |
406 | 406 | protected function getRuleMock() |
407 | 407 | { |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | * Creates a mocked rule-set instance. |
413 | 413 | * |
414 | 414 | * @param string $expectedClass Optional class name for apply() expected at least once. |
415 | - * @param mixed $count How often should apply() be called? |
|
415 | + * @param integer $count How often should apply() be called? |
|
416 | 416 | * @return \PHPMD\RuleSet |
417 | 417 | */ |
418 | 418 | protected function getRuleSetMock($expectedClass = null, $count = '*') |
@@ -86,7 +86,7 @@ |
||
86 | 86 | /** |
87 | 87 | * Whether the given scope is an else clause |
88 | 88 | * |
89 | - * @param $scope |
|
89 | + * @param AbstractNode $scope |
|
90 | 90 | * @param ASTNode $parent |
91 | 91 | * @return bool |
92 | 92 | */ |
@@ -133,7 +133,7 @@ |
||
133 | 133 | * Constructs a new command line options instance. |
134 | 134 | * |
135 | 135 | * @param array $args |
136 | - * @param array $availableRuleSets |
|
136 | + * @param string[] $availableRuleSets |
|
137 | 137 | * @throws \InvalidArgumentException |
138 | 138 | */ |
139 | 139 | public function __construct(array $args, array $availableRuleSets = array()) |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * has no child of the given type. |
102 | 102 | * |
103 | 103 | * @param string $type The searched child type. |
104 | - * @return \PHPMD\AbstractNode |
|
104 | + * @return null|ASTNode |
|
105 | 105 | */ |
106 | 106 | public function getFirstChildOfType($type) |
107 | 107 | { |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | * <b>null</b> when no such metric exists. |
220 | 220 | * |
221 | 221 | * @param string $name The metric name or abbreviation. |
222 | - * @return mixed |
|
222 | + * @return AbstractNode |
|
223 | 223 | */ |
224 | 224 | public function getMetric($name) |
225 | 225 | { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * Creates a mocked PHP_Depend function instance. |
179 | 179 | * |
180 | 180 | * @param string $fileName Optional file name for the source file. |
181 | - * @return PHP_Depend_Code_Function |
|
181 | + * @return \PDepend\Source\AST\ASTFunction |
|
182 | 182 | */ |
183 | 183 | protected function getPHPDependFunctionMock($fileName = '/foo/bar.php') |
184 | 184 | { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * Creates a mocked PHP_Depend method instance. |
195 | 195 | * |
196 | 196 | * @param string $fileName Optional file name for the source file. |
197 | - * @return PHP_Depend_Code_CodeMethod |
|
197 | + * @return \PDepend\Source\AST\ASTMethod |
|
198 | 198 | */ |
199 | 199 | protected function getPHPDependMethodMock($fileName = '/foo/bar.php') |
200 | 200 | { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * Extracts if and elseif statements from method/function body |
58 | 58 | * |
59 | 59 | * @param AbstractNode $node An instance of MethodNode or FunctionNode class |
60 | - * @return ASTStatement[] |
|
60 | + * @return AbstractNode[] |
|
61 | 61 | */ |
62 | 62 | private function getStatements(AbstractNode $node) |
63 | 63 | { |