@@ -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, |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * Returns an array of tokens this test wants to listen for. |
32 | 32 | * |
33 | - * @return array |
|
33 | + * @return integer[] |
|
34 | 34 | */ |
35 | 35 | public function register() |
36 | 36 | { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * @param int $stackPtr The position in the tokens array of the |
94 | 94 | * potentially included class. |
95 | 95 | * |
96 | - * @return string |
|
96 | + * @return boolean |
|
97 | 97 | */ |
98 | 98 | protected function getIncludedClassFromToken( |
99 | 99 | PHP_CodeSniffer_File $phpcsFile, |
@@ -35,6 +35,9 @@ |
||
35 | 35 | |
36 | 36 | abstract class AbstractEditingScreenModeWidgetActions extends AbstractEditingModeWidgetActions { |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $systemName |
|
40 | + */ |
|
38 | 41 | public static function getScreens($systemName) |
39 | 42 | { |
40 | 43 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * Returns an array of tokens this test wants to listen for. |
34 | 34 | * |
35 | - * @return array |
|
35 | + * @return integer[] |
|
36 | 36 | */ |
37 | 37 | public function register() |
38 | 38 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @param int $stackPtr The position of the current token in |
49 | 49 | * the stack passed in $tokens. |
50 | 50 | * |
51 | - * @return void |
|
51 | + * @return integer |
|
52 | 52 | */ |
53 | 53 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
54 | 54 | { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * Returns an array of tokens this test wants to listen for. |
34 | 34 | * |
35 | - * @return array |
|
35 | + * @return integer[] |
|
36 | 36 | */ |
37 | 37 | public function register() |
38 | 38 | { |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * @param int $stackPtr The position of the current token in |
146 | 146 | * the stack passed in $tokens. |
147 | 147 | * |
148 | - * @return void |
|
148 | + * @return boolean |
|
149 | 149 | */ |
150 | 150 | private function _shouldIgnoreUse(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
151 | 151 | { |