@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * Returns an array of tokens this test wants to listen for. |
| 23 | 23 | * |
| 24 | - * @return array |
|
| 24 | + * @return integer[] |
|
| 25 | 25 | */ |
| 26 | 26 | public function register() |
| 27 | 27 | { |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | /** |
| 102 | 102 | * Could the current token an potentially be a binary integer ? |
| 103 | 103 | * |
| 104 | - * @param array $token Token stack. |
|
| 104 | + * @param array $tokens Token stack. |
|
| 105 | 105 | * @param int $stackPtr The current position in the token stack. |
| 106 | 106 | * |
| 107 | 107 | * @return bool |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | /** |
| 127 | 127 | * Is the current token an invalid binary integer ? |
| 128 | 128 | * |
| 129 | - * @param array $token Token stack. |
|
| 129 | + * @param array $tokens Token stack. |
|
| 130 | 130 | * @param int $stackPtr The current position in the token stack. |
| 131 | 131 | * |
| 132 | 132 | * @return bool |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | * Retrieve the content of the tokens which together look like a binary integer. |
| 150 | 150 | * |
| 151 | 151 | * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. |
| 152 | - * @param array $token Token stack. |
|
| 152 | + * @param array $tokens Token stack. |
|
| 153 | 153 | * @param int $stackPtr The position of the current token in |
| 154 | 154 | * the stack. |
| 155 | 155 | * |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | /** |
| 173 | 173 | * Is the current token an invalid octal integer ? |
| 174 | 174 | * |
| 175 | - * @param array $token Token stack. |
|
| 175 | + * @param array $tokens Token stack. |
|
| 176 | 176 | * @param int $stackPtr The current position in the token stack. |
| 177 | 177 | * |
| 178 | 178 | * @return bool |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | /** |
| 191 | 191 | * Is the current token a hexidecimal numeric string ? |
| 192 | 192 | * |
| 193 | - * @param array $token Token stack. |
|
| 193 | + * @param array $tokens Token stack. |
|
| 194 | 194 | * @param int $stackPtr The current position in the token stack. |
| 195 | 195 | * |
| 196 | 196 | * @return bool |
@@ -46,7 +46,6 @@ |
||
| 46 | 46 | * @dataProvider dataBinaryInteger |
| 47 | 47 | * |
| 48 | 48 | * @param int $line Line number where the error should occur. |
| 49 | - * @param string $octal (Start of) Binary number as a string. |
|
| 50 | 49 | * @param bool $testNoViolation Whether or not to test for noViolation. |
| 51 | 50 | * Defaults to true. Set to false if another error is |
| 52 | 51 | * expected on the same line (invalid binary) |