@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | /** |
591 | 591 | * Returns a mocked ast node instance. |
592 | 592 | * |
593 | - * @return \PDepend\Source\AST\ASTNode |
|
593 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
594 | 594 | */ |
595 | 595 | private function getNodeMock() |
596 | 596 | { |
@@ -796,7 +796,7 @@ discard block |
||
796 | 796 | * @param string $testCase |
797 | 797 | * @param boolean $ignoreAnnotations |
798 | 798 | * |
799 | - * @return \PDepend\Source\AST\ASTNamespace[] |
|
799 | + * @return ASTArtifactList |
|
800 | 800 | */ |
801 | 801 | public function parseTestCaseSource($testCase, $ignoreAnnotations = false) |
802 | 802 | { |
@@ -243,7 +243,6 @@ |
||
243 | 243 | /** |
244 | 244 | * Returns a node instance for the currently executed test case. |
245 | 245 | * |
246 | - * @param string $testCase Name of the calling test case. |
|
247 | 246 | * @return \PDepend\Source\AST\ASTStaticReference |
248 | 247 | */ |
249 | 248 | private function _getFirstStaticReferenceInClass() |
@@ -123,7 +123,6 @@ |
||
123 | 123 | /** |
124 | 124 | * Returns a node instance for the currently executed test case. |
125 | 125 | * |
126 | - * @param string $testCase Name of the calling test case. |
|
127 | 126 | * |
128 | 127 | * @return \PDepend\Source\AST\ASTVariableVariable |
129 | 128 | */ |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | * before an instance of this class gets serialized. It should return an |
327 | 327 | * array with those property names that should be serialized for this class. |
328 | 328 | * |
329 | - * @return array |
|
329 | + * @return string[] |
|
330 | 330 | * @since 0.10.0 |
331 | 331 | */ |
332 | 332 | public function __sleep() |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | * container. |
402 | 402 | * |
403 | 403 | * @param integer $index |
404 | - * @param mixed $value |
|
404 | + * @param integer $value |
|
405 | 405 | * @return void |
406 | 406 | * @since 0.10.4 |
407 | 407 | */ |
@@ -1816,7 +1816,7 @@ discard block |
||
1816 | 1816 | * Returns an iterator with all generated {@link \PDepend\Source\AST\ASTNamespace} |
1817 | 1817 | * objects. |
1818 | 1818 | * |
1819 | - * @return \PDepend\Source\AST\ASTNamespace[] |
|
1819 | + * @return ASTArtifactList |
|
1820 | 1820 | */ |
1821 | 1821 | public function getNamespaces() |
1822 | 1822 | { |
@@ -1830,7 +1830,7 @@ discard block |
||
1830 | 1830 | * Returns an iterator with all generated {@link \PDepend\Source\AST\ASTNamespace} |
1831 | 1831 | * objects. |
1832 | 1832 | * |
1833 | - * @return \PDepend\Source\AST\ASTArtifactList |
|
1833 | + * @return ASTNamespace[] |
|
1834 | 1834 | * @since 0.9.12 |
1835 | 1835 | */ |
1836 | 1836 | private function getPreparedNamespaces() |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | * |
214 | 214 | * @param \PDepend\Source\AST\ASTAllocationExpression $allocation |
215 | 215 | * |
216 | - * @return null|\PDepend\Source\AST\ASTAnonymousClass |
|
216 | + * @return null|ASTAllocationExpression |
|
217 | 217 | */ |
218 | 218 | protected function parseAnonymousClassDeclaration(ASTAllocationExpression $allocation) |
219 | 219 | { |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | /** |
325 | 325 | * In this method we implement parsing of PHP 7.0 specific expressions. |
326 | 326 | * |
327 | - * @return \PDepend\Source\AST\ASTNode |
|
327 | + * @return ASTExpression|null |
|
328 | 328 | * @since 2.3 |
329 | 329 | */ |
330 | 330 | protected function parseExpressionVersion70() |
@@ -57,9 +57,9 @@ |
||
57 | 57 | * by a visitor during tree traversal. |
58 | 58 | * |
59 | 59 | * @param \PDepend\Source\ASTVisitor\ASTVisitor $visitor The calling visitor instance. |
60 | - * @param mixed $data |
|
60 | + * @param integer $data |
|
61 | 61 | * |
62 | - * @return mixed |
|
62 | + * @return string |
|
63 | 63 | * @since 0.9.12 |
64 | 64 | */ |
65 | 65 | public function accept(\PDepend\Source\ASTVisitor\ASTVisitor $visitor, $data = null) |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | * Tests if the given token type is a reserved keyword in the supported PHP |
454 | 454 | * version. |
455 | 455 | * |
456 | - * @param $tokenType |
|
456 | + * @param integer $tokenType |
|
457 | 457 | * @return boolean |
458 | 458 | * @since 1.1.1 |
459 | 459 | */ |
@@ -942,7 +942,7 @@ discard block |
||
942 | 942 | * method. |
943 | 943 | * |
944 | 944 | * @param integer $modifiers |
945 | - * @return \PDepend\Source\AST\ASTMethod|\PDepend\Source\AST\ASTFieldDeclaration |
|
945 | + * @return ASTNode |
|
946 | 946 | * @since 0.9.6 |
947 | 947 | */ |
948 | 948 | private function parseMethodOrFieldDeclaration($modifiers = 0) |
@@ -1716,7 +1716,7 @@ discard block |
||
1716 | 1716 | /** |
1717 | 1717 | * Parses a cast-expression node. |
1718 | 1718 | * |
1719 | - * @return \PDepend\Source\AST\ASTCaseExpression |
|
1719 | + * @return \PDepend\Source\AST\ASTCastExpression |
|
1720 | 1720 | * @since 0.10.0 |
1721 | 1721 | */ |
1722 | 1722 | protected function parseCastExpression() |
@@ -2599,7 +2599,7 @@ discard block |
||
2599 | 2599 | * This method optionally parses an expression node and returns it. When no |
2600 | 2600 | * expression was found this method will return <b>null</b>. |
2601 | 2601 | * |
2602 | - * @return \PDepend\Source\AST\ASTNode |
|
2602 | + * @return null|ASTExpression |
|
2603 | 2603 | * @throws \PDepend\Source\Parser\ParserException |
2604 | 2604 | * @since 0.9.6 |
2605 | 2605 | */ |
@@ -6707,7 +6707,7 @@ discard block |
||
6707 | 6707 | * doc comment information. The returned value will be <b>null</b> when no |
6708 | 6708 | * type information exists. |
6709 | 6709 | * |
6710 | - * @return \PDepend\Source\AST\ASTType |
|
6710 | + * @return ASTNode |
|
6711 | 6711 | * @since 0.9.6 |
6712 | 6712 | */ |
6713 | 6713 | private function parseFieldDeclarationType() |
@@ -6758,7 +6758,7 @@ discard block |
||
6758 | 6758 | /** |
6759 | 6759 | * This method parses a yield-statement node. |
6760 | 6760 | * |
6761 | - * @return \PDepend\Source\AST\ASTYieldStatmenet |
|
6761 | + * @return ASTNode |
|
6762 | 6762 | */ |
6763 | 6763 | private function parseYield() |
6764 | 6764 | { |
@@ -219,6 +219,9 @@ |
||
219 | 219 | ); |
220 | 220 | } |
221 | 221 | |
222 | + /** |
|
223 | + * @param string $fileName |
|
224 | + */ |
|
222 | 225 | protected function getNormalizedPathXml($fileName) |
223 | 226 | { |
224 | 227 | return preg_replace( |