@@ -4,6 +4,9 @@ |
||
4 | 4 | |
5 | 5 | class ProjectTestCase extends \PHPUnit_Framework_TestCase |
6 | 6 | { |
7 | + /** |
|
8 | + * @param string $projectDir |
|
9 | + */ |
|
7 | 10 | protected function setUpDir($projectDir) |
8 | 11 | { |
9 | 12 | $this->rootDir = realpath($projectDir . '/prj'); |
@@ -129,6 +129,9 @@ |
||
129 | 129 | } |
130 | 130 | } |
131 | 131 | |
132 | + /** |
|
133 | + * @param string $lines |
|
134 | + */ |
|
132 | 135 | protected function indent($lines) |
133 | 136 | { |
134 | 137 | return trim(str_replace("\n", "\n ", $lines)); |
@@ -98,6 +98,9 @@ |
||
98 | 98 | ); |
99 | 99 | } |
100 | 100 | |
101 | + /** |
|
102 | + * @param string $content |
|
103 | + */ |
|
101 | 104 | private function createDOMDocument($content) |
102 | 105 | { |
103 | 106 | $document = new DOMDocument; |
@@ -326,6 +326,9 @@ |
||
326 | 326 | $this->assertEquals(array(true), $this->exporter->toArray(true)); |
327 | 327 | } |
328 | 328 | |
329 | + /** |
|
330 | + * @param string $string |
|
331 | + */ |
|
329 | 332 | private function trimNewline($string) |
330 | 333 | { |
331 | 334 | return preg_replace('/[ ]*\n/', "\n", $string); |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | /** |
475 | 475 | * Sets the internal CLI object. |
476 | 476 | * |
477 | - * @param object $cli The CLI object controlling the run. |
|
477 | + * @param PHP_CodeSniffer_CLI $cli The CLI object controlling the run. |
|
478 | 478 | * |
479 | 479 | * @return void |
480 | 480 | */ |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | * @param string|array $files The files and directories to process. For |
492 | 492 | * directories, each sub directory will also |
493 | 493 | * be traversed for source files. |
494 | - * @param string|array $standards The set of code sniffs we are testing |
|
494 | + * @param string $standards The set of code sniffs we are testing |
|
495 | 495 | * against. |
496 | 496 | * @param array $restrictions The sniff codes to restrict the |
497 | 497 | * violations to. |
@@ -2280,7 +2280,7 @@ discard block |
||
2280 | 2280 | * |
2281 | 2281 | * @param string $standard The name of the coding standard. |
2282 | 2282 | * |
2283 | - * @return string|null |
|
2283 | + * @return string |
|
2284 | 2284 | */ |
2285 | 2285 | public static function getInstalledStandardPath($standard) |
2286 | 2286 | { |
@@ -2449,7 +2449,7 @@ discard block |
||
2449 | 2449 | * |
2450 | 2450 | * @param string $path The path to use. |
2451 | 2451 | * |
2452 | - * @return mixed |
|
2452 | + * @return boolean |
|
2453 | 2453 | */ |
2454 | 2454 | public static function isPharFile($path) |
2455 | 2455 | { |
@@ -2469,7 +2469,7 @@ discard block |
||
2469 | 2469 | * |
2470 | 2470 | * @param string $path The path to use. |
2471 | 2471 | * |
2472 | - * @return mixed |
|
2472 | + * @return string|false |
|
2473 | 2473 | */ |
2474 | 2474 | public static function realpath($path) |
2475 | 2475 | { |
@@ -1334,7 +1334,7 @@ |
||
1334 | 1334 | * @param int $width The width of the report. If "auto" then will |
1335 | 1335 | * be replaced by the terminal width. |
1336 | 1336 | * |
1337 | - * @return void |
|
1337 | + * @return integer |
|
1338 | 1338 | */ |
1339 | 1339 | private function _validateReportWidth($width) |
1340 | 1340 | { |
@@ -157,7 +157,7 @@ |
||
157 | 157 | * |
158 | 158 | * The TOC is just an unordered list of bookmarks to sniffs on the page. |
159 | 159 | * |
160 | - * @param array $standardFiles An array of paths to the XML standard files. |
|
160 | + * @param string[] $standardFiles An array of paths to the XML standard files. |
|
161 | 161 | * |
162 | 162 | * @return void |
163 | 163 | */ |
@@ -866,7 +866,7 @@ discard block |
||
866 | 866 | * @param string $error The error message. |
867 | 867 | * @param int $line The line on which the error occurred. |
868 | 868 | * @param string $code A violation code unique to the sniff message. |
869 | - * @param array $data Replacements for the error message. |
|
869 | + * @param string[] $data Replacements for the error message. |
|
870 | 870 | * @param int $severity The severity level for this error. A value of 0 will be converted into the default severity level. |
871 | 871 | * will be converted into the default severity level. |
872 | 872 | * |
@@ -890,7 +890,7 @@ discard block |
||
890 | 890 | * @param string $warning The error message. |
891 | 891 | * @param int $line The line on which the warning occurred. |
892 | 892 | * @param string $code A violation code unique to the sniff message. |
893 | - * @param array $data Replacements for the warning message. |
|
893 | + * @param string[] $data Replacements for the warning message. |
|
894 | 894 | * @param int $severity The severity level for this warning. A value of 0 will be converted into the default severity level. |
895 | 895 | * will be converted into the default severity level. |
896 | 896 | * |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | /** |
357 | 357 | * Start recording actions for a changeset. |
358 | 358 | * |
359 | - * @return void |
|
359 | + * @return false|null |
|
360 | 360 | */ |
361 | 361 | public function beginChangeset() |
362 | 362 | { |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | /** |
384 | 384 | * Stop recording actions for a changeset, and apply logged changes. |
385 | 385 | * |
386 | - * @return boolean |
|
386 | + * @return false|null |
|
387 | 387 | */ |
388 | 388 | public function endChangeset() |
389 | 389 | { |