@@ -72,7 +72,7 @@ |
||
72 | 72 | /** |
73 | 73 | * Constructs a new AbstractScopeTest. |
74 | 74 | * |
75 | - * @param array $scopeTokens The type of scope the test wishes to listen to. |
|
75 | + * @param integer[] $scopeTokens The type of scope the test wishes to listen to. |
|
76 | 76 | * @param array $tokens The tokens that the test wishes to listen to |
77 | 77 | * within the scope. |
78 | 78 | * @param boolean $listenOutside If true this test will also alert the |
@@ -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 | { |
@@ -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, |
@@ -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 | { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | /** |
56 | 56 | * Returns the token types that this sniff is interested in. |
57 | 57 | * |
58 | - * @return int[] |
|
58 | + * @return string[] |
|
59 | 59 | */ |
60 | 60 | public function register() |
61 | 61 | { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | /** |
40 | 40 | * Returns the token types that this sniff is interested in. |
41 | 41 | * |
42 | - * @return int[] |
|
42 | + * @return integer[] |
|
43 | 43 | */ |
44 | 44 | public function register() |
45 | 45 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * @param int $stackPtr The position in the stack where |
56 | 56 | * the token was found. |
57 | 57 | * |
58 | - * @return void |
|
58 | + * @return null|integer |
|
59 | 59 | * @throws PHP_CodeSniffer_Exception If jslint.js could not be run |
60 | 60 | */ |
61 | 61 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
@@ -55,7 +55,7 @@ |
||
55 | 55 | * @param array $tokens The stack of tokens that make up |
56 | 56 | * the file. |
57 | 57 | * |
58 | - * @return void |
|
58 | + * @return boolean |
|
59 | 59 | */ |
60 | 60 | public function isMultiLineDeclaration(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $openBracket, $tokens) |
61 | 61 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Returns an array of tokens this test wants to listen for. |
43 | 43 | * |
44 | - * @return array |
|
44 | + * @return integer[] |
|
45 | 45 | */ |
46 | 46 | public function register() |
47 | 47 | { |