@@ -1104,7 +1104,7 @@ |
||
| 1104 | 1104 | /** |
| 1105 | 1105 | * Returns an array of tokens this test wants to listen for. |
| 1106 | 1106 | * |
| 1107 | - * @return array |
|
| 1107 | + * @return integer[] |
|
| 1108 | 1108 | */ |
| 1109 | 1109 | public function register() |
| 1110 | 1110 | { |
@@ -1104,7 +1104,7 @@ |
||
| 1104 | 1104 | /** |
| 1105 | 1105 | * Returns an array of tokens this test wants to listen for. |
| 1106 | 1106 | * |
| 1107 | - * @return array |
|
| 1107 | + * @return integer[] |
|
| 1108 | 1108 | */ |
| 1109 | 1109 | public function register() |
| 1110 | 1110 | { |
@@ -1104,7 +1104,7 @@ |
||
| 1104 | 1104 | /** |
| 1105 | 1105 | * Returns an array of tokens this test wants to listen for. |
| 1106 | 1106 | * |
| 1107 | - * @return array |
|
| 1107 | + * @return integer[] |
|
| 1108 | 1108 | */ |
| 1109 | 1109 | public function register() |
| 1110 | 1110 | { |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * Assert no violation (warning or error) on a given line number |
| 143 | 143 | * |
| 144 | 144 | * @param PHP_CodeSniffer_File $file Codesniffer File object |
| 145 | - * @param mixed $lineNumber Line number |
|
| 145 | + * @param integer $lineNumber Line number |
|
| 146 | 146 | * @return bool |
| 147 | 147 | */ |
| 148 | 148 | public function assertNoViolation(PHP_CodeSniffer_File $file, $lineNumber = 0) |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | /** |
| 232 | 232 | * Gather all messages or a particular type by line number. |
| 233 | 233 | * |
| 234 | - * @param array $IssuesArray Array of a particular type of issues, |
|
| 234 | + * @param array $issuesArray Array of a particular type of issues, |
|
| 235 | 235 | * i.e. errors or warnings. |
| 236 | 236 | * @return array |
| 237 | 237 | */ |
@@ -1104,7 +1104,7 @@ |
||
| 1104 | 1104 | /** |
| 1105 | 1105 | * Returns an array of tokens this test wants to listen for. |
| 1106 | 1106 | * |
| 1107 | - * @return array |
|
| 1107 | + * @return integer[] |
|
| 1108 | 1108 | */ |
| 1109 | 1109 | public function register() |
| 1110 | 1110 | { |
@@ -1104,7 +1104,7 @@ |
||
| 1104 | 1104 | /** |
| 1105 | 1105 | * Returns an array of tokens this test wants to listen for. |
| 1106 | 1106 | * |
| 1107 | - * @return array |
|
| 1107 | + * @return integer[] |
|
| 1108 | 1108 | */ |
| 1109 | 1109 | public function register() |
| 1110 | 1110 | { |
@@ -1104,7 +1104,7 @@ |
||
| 1104 | 1104 | /** |
| 1105 | 1105 | * Returns an array of tokens this test wants to listen for. |
| 1106 | 1106 | * |
| 1107 | - * @return array |
|
| 1107 | + * @return integer[] |
|
| 1108 | 1108 | */ |
| 1109 | 1109 | public function register() |
| 1110 | 1110 | { |
@@ -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) |