Passed
Push — master ( 858c9f...d68e51 )
by Kyle
01:15 queued 10s
created
src/main/php/PHPMD/Rule/UnusedPrivateMethod.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
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/RuleSetTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/test/php/PHPMD/AbstractTest.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 = '*')
Please login to merge, or discard this patch.
src/main/php/PHPMD/Rule/CleanCode/ElseExpression.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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
      */
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
@@ -133,7 +133,7 @@
 block discarded – undo
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())
Please login to merge, or discard this patch.
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/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/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 ASTStatement[]
60
+     * @return AbstractNode[]
61 61
      */
62 62
     private function getStatements(AbstractNode $node)
63 63
     {
Please login to merge, or discard this patch.