Test Failed
Push — master ( 75ff29...35f862 )
by Andru
59s
created
src/main/php/PHPMD/AbstractNode.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/main/php/PHPMD/Rule/CleanCode/IfStatementAssignment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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 array<ASTStatement>
60
+     * @return AbstractNode[]
61 61
      */
62 62
     private function getStatements(AbstractNode $node)
63 63
     {
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
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * as private and are not used in the same class' context.
50 50
      *
51 51
      * @param \PHPMD\Node\ClassNode $class
52
-     * @return \PHPMD\AbstractNode[]
52
+     * @return MethodNode[]
53 53
      */
54 54
     private function collectUnusedPrivateMethods(ClassNode $class)
55 55
     {
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      *
100 100
      * @param \PHPMD\Node\ClassNode $class
101 101
      * @param \PHPMD\Node\MethodNode[] $methods
102
-     * @return \PHPMD\AbstractNode[]
102
+     * @return MethodNode[]
103 103
      */
104 104
     private function removeUsedMethods(ClassNode $class, array $methods)
105 105
     {
Please login to merge, or discard this patch.
src/main/php/PHPMD/TextUI/CommandLineOptions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
      * Constructs a new command line options instance.
130 130
      *
131 131
      * @param array $args
132
-     * @param array $availableRuleSets
132
+     * @param string[] $availableRuleSets
133 133
      * @throws \InvalidArgumentException
134 134
      */
135 135
     public function __construct(array $args, array $availableRuleSets = array())
Please login to merge, or discard this patch.
src/main/php/PHPMD/Rule/CleanCode/ElseExpression.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * Whether the given scope is an else clause
64 64
      *
65
-     * @param $scope
65
+     * @param AbstractNode $scope
66 66
      * @param ASTNode $parent
67 67
      * @return bool
68 68
      */
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     /**
89 89
      * Whether the given scope has a yield or yield from clause
90 90
      *
91
-     * @param $scope
91
+     * @param AbstractNode $scope
92 92
      * @return bool
93 93
      */
94 94
     private function hasYieldOrYieldFrom($scope)
Please login to merge, or discard this patch.
tests/php/PHPMD/AbstractTest.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     }
106 106
 
107 107
     /**
108
-     * @return \PHPMD\Node\InterfaceNode
108
+     * @return TraitNode
109 109
      */
110 110
     protected function getTrait()
111 111
     {
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      * Parses the source code for the calling test method and returns the first
193 193
      * package node found in the parsed file.
194 194
      *
195
-     * @return PHP_Depend_Code_Package
195
+     * @return \PDepend\Source\AST\ASTNamespace
196 196
      */
197 197
     private function parseTestCaseSource()
198 198
     {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     /**
203 203
      * Returns the trace frame of the calling test case.
204 204
      *
205
-     * @return array
205
+     * @return string
206 206
      * @throws \ErrorException
207 207
      */
208 208
     private static function getCallingTestCase()
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      * Creates a mocked class node instance.
267 267
      *
268 268
      * @param string $metric
269
-     * @param mixed $value
269
+     * @param integer $value
270 270
      * @return \PHPMD\Node\ClassNode
271 271
      */
272 272
     protected function getClassMock($metric = null, $value = null)
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
      * Creates a mocked method node instance.
293 293
      *
294 294
      * @param string $metric
295
-     * @param mixed $value
295
+     * @param integer $value
296 296
      * @return \PHPMD\Node\MethodNode
297 297
      */
298 298
     protected function getMethodMock($metric = null, $value = null)
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
     /**
371 371
      * Creates a mocked {@link \PHPMD\AbstractRule} instance.
372 372
      *
373
-     * @return \PHPMD\AbstractRule
373
+     * @return \PHPUnit_Framework_MockObject_MockObject
374 374
      */
375 375
     protected function getRuleMock()
376 376
     {
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
      * Creates a mocked rule-set instance.
382 382
      *
383 383
      * @param string $expectedClass Optional class name for apply() expected at least once.
384
-     * @param mixed $count How often should apply() be called?
384
+     * @param integer $count How often should apply() be called?
385 385
      * @return \PHPMD\RuleSet
386 386
      */
387 387
     protected function getRuleSetMock($expectedClass = null, $count = '*')
Please login to merge, or discard this patch.
tests/php/PHPMD/ParserTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * Creates a mocked PHP_Depend function instance.
187 187
      *
188 188
      * @param string $fileName Optional file name for the source file.
189
-     * @return PHP_Depend_Code_Function
189
+     * @return ASTFunction
190 190
      */
191 191
     protected function getPHPDependFunctionMock($fileName = '/foo/bar.php')
192 192
     {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      * Creates a mocked PHP_Depend method instance.
203 203
      *
204 204
      * @param string $fileName Optional file name for the source file.
205
-     * @return PHP_Depend_Code_CodeMethod
205
+     * @return ASTMethod
206 206
      */
207 207
     protected function getPHPDependMethodMock($fileName = '/foo/bar.php')
208 208
     {
Please login to merge, or discard this patch.
tests/php/PHPMD/Rule/Design/TooManyPublicMethodsTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
      *
131 131
      * @param integer $numberOfMethods
132 132
      * @param array|null $publicMethods
133
-     * @param array|null $privateMethods
133
+     * @param string[] $privateMethods
134 134
      * @return \PHPMD\Node\ClassNode
135 135
      */
136 136
     private function createClassMock($numberOfMethods, array $publicMethods = array(), array $privateMethods = array())
Please login to merge, or discard this patch.
tests/php/PHPMD/RuleSetTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      * Creates a rule set instance with a variable amount of appended rule
86 86
      * objects.
87 87
      *
88
-     * @return \PHPMD\AbstractRule
88
+     * @return RuleSet
89 89
      */
90 90
     private function createRuleSetFixture()
91 91
     {
Please login to merge, or discard this patch.