@@ -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. |
@@ -2286,7 +2286,7 @@ discard block |
||
2286 | 2286 | * |
2287 | 2287 | * @param string $standard The name of the coding standard. |
2288 | 2288 | * |
2289 | - * @return string|null |
|
2289 | + * @return string |
|
2290 | 2290 | */ |
2291 | 2291 | public static function getInstalledStandardPath($standard) |
2292 | 2292 | { |
@@ -2455,7 +2455,7 @@ discard block |
||
2455 | 2455 | * |
2456 | 2456 | * @param string $path The path to use. |
2457 | 2457 | * |
2458 | - * @return mixed |
|
2458 | + * @return boolean |
|
2459 | 2459 | */ |
2460 | 2460 | public static function isPharFile($path) |
2461 | 2461 | { |
@@ -2475,7 +2475,7 @@ discard block |
||
2475 | 2475 | * |
2476 | 2476 | * @param string $path The path to use. |
2477 | 2477 | * |
2478 | - * @return mixed |
|
2478 | + * @return string|false |
|
2479 | 2479 | */ |
2480 | 2480 | public static function realpath($path) |
2481 | 2481 | { |
@@ -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 | { |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * @param boolean $showSources Show sources? |
50 | 50 | * @param int $width Maximum allowed line width. |
51 | 51 | * |
52 | - * @return boolean |
|
52 | + * @return null|boolean |
|
53 | 53 | */ |
54 | 54 | public function generateFileReport( |
55 | 55 | $report, |
@@ -51,7 +51,7 @@ |
||
51 | 51 | /** |
52 | 52 | * Registers the tokens that this sniff wants to listen for. |
53 | 53 | * |
54 | - * @return int[] |
|
54 | + * @return integer[] |
|
55 | 55 | */ |
56 | 56 | public function register() |
57 | 57 | { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Registers the tokens that this sniff wants to listen for. |
45 | 45 | * |
46 | - * @return int[] |
|
46 | + * @return integer[] |
|
47 | 47 | */ |
48 | 48 | public function register() |
49 | 49 | { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | /** |
41 | 41 | * Returns an array of tokens this test wants to listen for. |
42 | 42 | * |
43 | - * @return array |
|
43 | + * @return string[] |
|
44 | 44 | */ |
45 | 45 | public function register() |
46 | 46 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * Returns the token types that this sniff is interested in. |
57 | 57 | * |
58 | - * @return int[] |
|
58 | + * @return integer[] |
|
59 | 59 | */ |
60 | 60 | public function register() |
61 | 61 | { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @param int $stackPtr The position in the stack where |
72 | 72 | * the token was found. |
73 | 73 | * |
74 | - * @return void |
|
74 | + * @return null|integer |
|
75 | 75 | * @throws PHP_CodeSniffer_Exception If jslint.js could not be run |
76 | 76 | */ |
77 | 77 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |