@@ -121,7 +121,7 @@ |
||
| 121 | 121 | * before an instance of this class gets serialized. It should return an |
| 122 | 122 | * array with those property names that should be serialized for this class. |
| 123 | 123 | * |
| 124 | - * @return array |
|
| 124 | + * @return string[] |
|
| 125 | 125 | * @since 0.10.0 |
| 126 | 126 | */ |
| 127 | 127 | public function __sleep() |
@@ -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) |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | * before an instance of this class gets serialized. It should return an |
| 118 | 118 | * array with those property names that should be serialized for this class. |
| 119 | 119 | * |
| 120 | - * @return array |
|
| 120 | + * @return string[] |
|
| 121 | 121 | */ |
| 122 | 122 | public function __sleep() |
| 123 | 123 | { |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | /** |
| 333 | 333 | * Assign CLI arguments to current runner instance |
| 334 | 334 | * |
| 335 | - * @return bool |
|
| 335 | + * @return boolean|null |
|
| 336 | 336 | */ |
| 337 | 337 | protected function assignArguments() |
| 338 | 338 | { |
@@ -628,7 +628,7 @@ discard block |
||
| 628 | 628 | } |
| 629 | 629 | |
| 630 | 630 | /** |
| 631 | - * @param $startTime |
|
| 631 | + * @param integer $startTime |
|
| 632 | 632 | */ |
| 633 | 633 | private function printStatistics($startTime) |
| 634 | 634 | { |
@@ -247,7 +247,7 @@ |
||
| 247 | 247 | * Starts the main PDepend process and returns <b>true</b> after a successful |
| 248 | 248 | * execution. |
| 249 | 249 | * |
| 250 | - * @return boolean |
|
| 250 | + * @return integer |
|
| 251 | 251 | * @throws \RuntimeException An exception with a readable error message and |
| 252 | 252 | * an exit code. |
| 253 | 253 | */ |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | * Returns the percentage code coverage for the given item instance. |
| 106 | 106 | * |
| 107 | 107 | * @param \PDepend\Source\AST\AbstractASTArtifact $artifact |
| 108 | - * @return float |
|
| 108 | + * @return integer |
|
| 109 | 109 | */ |
| 110 | 110 | public function getCoverage(AbstractASTArtifact $artifact) |
| 111 | 111 | { |
@@ -270,7 +270,7 @@ |
||
| 270 | 270 | /** |
| 271 | 271 | * Returns an array with all package/extension names. |
| 272 | 272 | * |
| 273 | - * @return array(string) |
|
| 273 | + * @return string |
|
| 274 | 274 | */ |
| 275 | 275 | public static function getInternalNamespaces() |
| 276 | 276 | { |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | /** |
| 206 | 206 | * Create a TextUi Runner |
| 207 | 207 | * |
| 208 | - * @return Runner |
|
| 208 | + * @return TextUI\Runner |
|
| 209 | 209 | */ |
| 210 | 210 | protected function createTextUiRunner() |
| 211 | 211 | { |
@@ -560,6 +560,9 @@ discard block |
||
| 560 | 560 | return new Engine($configuration, $cacheFactory, $analyzerFactory); |
| 561 | 561 | } |
| 562 | 562 | |
| 563 | + /** |
|
| 564 | + * @param TextUI\Runner $runner |
|
| 565 | + */ |
|
| 563 | 566 | protected function silentRun($runner) |
| 564 | 567 | { |
| 565 | 568 | ob_start(); |
@@ -808,7 +811,7 @@ discard block |
||
| 808 | 811 | * Parses the test code associated with the calling test method. |
| 809 | 812 | * |
| 810 | 813 | * @param boolean $ignoreAnnotations The parser should ignore annotations. |
| 811 | - * @return \PDepend\Source\AST\ASTNamespace[] |
|
| 814 | + * @return Source\AST\ASTArtifactList |
|
| 812 | 815 | */ |
| 813 | 816 | protected function parseCodeResourceForTest($ignoreAnnotations = false) |
| 814 | 817 | { |
@@ -824,7 +827,7 @@ discard block |
||
| 824 | 827 | * |
| 825 | 828 | * @param string $testCase |
| 826 | 829 | * @param boolean $ignoreAnnotations |
| 827 | - * @return \PDepend\Source\AST\ASTNamespace[] |
|
| 830 | + * @return Source\AST\ASTArtifactList |
|
| 828 | 831 | */ |
| 829 | 832 | public function parseTestCaseSource($testCase, $ignoreAnnotations = false) |
| 830 | 833 | { |
@@ -848,7 +851,7 @@ discard block |
||
| 848 | 851 | * |
| 849 | 852 | * @param string $fileOrDirectory |
| 850 | 853 | * @param boolean $ignoreAnnotations |
| 851 | - * @return \PDepend\Source\AST\ASTNamespace[] |
|
| 854 | + * @return Source\AST\ASTArtifactList |
|
| 852 | 855 | */ |
| 853 | 856 | public function parseSource($fileOrDirectory, $ignoreAnnotations = false) |
| 854 | 857 | { |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | /** |
| 156 | 156 | * Sets a command line argument vector. |
| 157 | 157 | * |
| 158 | - * @param array(string) $argv The temporary command line argument vector |
|
| 158 | + * @param string[] $argv The temporary command line argument vector |
|
| 159 | 159 | * |
| 160 | 160 | * @return void |
| 161 | 161 | */ |