Passed
Push — feature/issue-601-unused-prope... ( eaf05f...8392ca )
by Kyle
07:11
created
src/test/php/PHPMD/Rule/Design/TooManyPublicMethodsTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
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())
Please login to merge, or discard this patch.
src/test/php/PHPMD/ParserTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/test/php/PHPMD/Renderer/HTMLRendererTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/main/php/PHPMD/AbstractNode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/main/php/PHPMD/Rule/UnusedPrivateMethod.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/main/php/PHPMD/Rule/CleanCode/UndefinedVariable.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/test/php/PHPMD/AbstractTest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/main/php/PHPMD/Rule/AbstractLocalVariable.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.