@@ -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()) |
@@ -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 | { |
@@ -18,7 +18,6 @@ |
||
18 | 18 | namespace PHPMD\Renderer; |
19 | 19 | |
20 | 20 | use PHPMD\AbstractTest; |
21 | -use PHPMD\ProcessingError; |
|
22 | 21 | use PHPMD\Stubs\WriterStub; |
23 | 22 | |
24 | 23 | /** |
@@ -223,7 +223,7 @@ |
||
223 | 223 | * <b>null</b> when no such metric exists. |
224 | 224 | * |
225 | 225 | * @param string $name The metric name or abbreviation. |
226 | - * @return mixed |
|
226 | + * @return AbstractNode |
|
227 | 227 | */ |
228 | 228 | public function getMetric($name) |
229 | 229 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * as private and are not used in the same class' context. |
51 | 51 | * |
52 | 52 | * @param ClassNode $class |
53 | - * @return ASTMethodPostfix[] |
|
53 | + * @return MethodNode[] |
|
54 | 54 | */ |
55 | 55 | private function collectUnusedPrivateMethods(ClassNode $class) |
56 | 56 | { |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * |
104 | 104 | * @param ClassNode $class |
105 | 105 | * @param MethodNode[] $methods |
106 | - * @return ASTMethodPostfix[] |
|
106 | + * @return MethodNode[] |
|
107 | 107 | */ |
108 | 108 | private function removeUsedMethods(ClassNode $class, array $methods) |
109 | 109 | { |
@@ -18,7 +18,6 @@ |
||
18 | 18 | namespace PHPMD\Rule\CleanCode; |
19 | 19 | |
20 | 20 | use PDepend\Source\AST\ASTArray; |
21 | -use PDepend\Source\AST\ASTClass; |
|
22 | 21 | use PDepend\Source\AST\ASTUnaryExpression; |
23 | 22 | use PDepend\Source\AST\ASTVariable; |
24 | 23 | use PDepend\Source\AST\State; |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | * Creates a mocked report instance. |
383 | 383 | * |
384 | 384 | * @param integer $expectedInvokes Number of expected invokes. |
385 | - * @return Report|PHPUnit_Framework_MockObject_MockObject |
|
385 | + * @return Report |
|
386 | 386 | */ |
387 | 387 | protected function getReportMock($expectedInvokes = -1) |
388 | 388 | { |
@@ -460,8 +460,8 @@ discard block |
||
460 | 460 | * Creates a mocked rule-set instance. |
461 | 461 | * |
462 | 462 | * @param string $expectedClass Optional class name for apply() expected at least once. |
463 | - * @param int|string $count How often should apply() be called? |
|
464 | - * @return RuleSet|PHPUnit_Framework_MockObject_MockObject |
|
463 | + * @param integer $count How often should apply() be called? |
|
464 | + * @return RuleSet |
|
465 | 465 | */ |
466 | 466 | protected function getRuleSetMock($expectedClass = null, $count = '*') |
467 | 467 | { |
@@ -183,7 +183,7 @@ |
||
183 | 183 | * |
184 | 184 | * Prefix self:: and static:: properties with "::". |
185 | 185 | * |
186 | - * @param ASTVariable|ASTPropertyPostfix|ASTVariableDeclarator $variable |
|
186 | + * @param ASTNode $variable |
|
187 | 187 | * @return string |
188 | 188 | */ |
189 | 189 | protected function getVariableImage($variable) |