@@ -270,7 +270,7 @@ |
||
270 | 270 | /** |
271 | 271 | * Retrieve a list of misspellings based on an array of matched variations on the target word. |
272 | 272 | * |
273 | - * @param array $match_stack Array of matched variations of the target word. |
|
273 | + * @param string[] $match_stack Array of matched variations of the target word. |
|
274 | 274 | * @return array Array containing only the misspelled variants. |
275 | 275 | */ |
276 | 276 | protected function retrieve_misspellings( $match_stack ) { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | /** |
29 | 29 | * Returns an array of tokens this test wants to listen for. |
30 | 30 | * |
31 | - * @return array |
|
31 | + * @return string[] |
|
32 | 32 | */ |
33 | 33 | public function register() { |
34 | 34 | return array( |
@@ -51,7 +51,7 @@ |
||
51 | 51 | /** |
52 | 52 | * Returns an array of tokens this test wants to listen for. |
53 | 53 | * |
54 | - * @return array |
|
54 | + * @return integer[] |
|
55 | 55 | */ |
56 | 56 | public function register() { |
57 | 57 | /* |
@@ -115,7 +115,7 @@ |
||
115 | 115 | /** |
116 | 116 | * Returns an array of tokens this test wants to listen for. |
117 | 117 | * |
118 | - * @return array |
|
118 | + * @return integer[] |
|
119 | 119 | */ |
120 | 120 | public function register() { |
121 | 121 | if ( \defined( '\PHP_CODESNIFFER_IN_TESTS' ) ) { |
@@ -155,7 +155,7 @@ |
||
155 | 155 | * |
156 | 156 | * @since 1.1.0 |
157 | 157 | * |
158 | - * @return array |
|
158 | + * @return string[] |
|
159 | 159 | */ |
160 | 160 | public function register() { |
161 | 161 | $this->empty_tokens = Tokens::$emptyTokens; |
@@ -62,7 +62,7 @@ |
||
62 | 62 | * @param mixed $val Assigned value. |
63 | 63 | * @param int $line Token line. |
64 | 64 | * @param array $group Group definition. |
65 | - * @return mixed FALSE if no match, TRUE if matches, STRING if matches |
|
65 | + * @return string|false FALSE if no match, TRUE if matches, STRING if matches |
|
66 | 66 | * with custom error message passed to ->process(). |
67 | 67 | */ |
68 | 68 | public function callback( $key, $val, $line, $group ) { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * Returns an array of tokens this test wants to listen for. |
67 | 67 | * |
68 | - * @return array |
|
68 | + * @return integer[] |
|
69 | 69 | */ |
70 | 70 | public function register() |
71 | 71 | { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * Returns an array of tokens this test wants to listen for. |
67 | 67 | * |
68 | - * @return array |
|
68 | + * @return integer[] |
|
69 | 69 | */ |
70 | 70 | public function register() |
71 | 71 | { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * Returns an array of tokens this test wants to listen for. |
67 | 67 | * |
68 | - * @return array |
|
68 | + * @return integer[] |
|
69 | 69 | */ |
70 | 70 | public function register() |
71 | 71 | { |