Lines Matching refs:x
783 for ($x = ($stackPtr + 1); $x < $numTokens; $x++) {
784 if (is_array($tokens[$x]) === false
785 || isset(PHP_CodeSniffer_Tokens::$emptyTokens[$tokens[$x][0]]) === false
792 if ($x < $numTokens && is_array($tokens[$x]) === true) {
793 $tokens[$x][0] = T_STRING;
864 for ($x = ($newStackPtr - 1); $x > 0; $x--) {
865 if (isset($stopTokens[$finalTokens[$x]['code']]) === true) {
870 if ($finalTokens[$x]['code'] !== T_CASE
871 && $finalTokens[$x]['code'] !== T_INLINE_THEN
1163 for ($x = ($i + 1); $x < $numTokens; $x++) {
1164 … if (isset(PHP_CodeSniffer_Tokens::$emptyTokens[$tokens[$x]['code']]) === false
1165 && $tokens[$x]['code'] !== T_BITWISE_AND
1171 if ($tokens[$x]['code'] === T_OPEN_PARENTHESIS) {
1179 … for ($x = ($tokens[$i]['scope_opener'] + 1); $x < $tokens[$i]['scope_closer']; $x++) {
1180 if (isset($tokens[$x]['conditions'][$i]) === false) {
1184 $tokens[$x]['conditions'][$i] = T_CLOSURE;
1186 $type = $tokens[$x]['type'];
1187 echo "\t\t* cleaned $x ($type) *".PHP_EOL;
1195 for ($x = ($tokens[$i]['parenthesis_closer'] + 1); $x < $numTokens; $x++) {
1196 if ($tokens[$x]['code'] === T_SEMICOLON) {
1197 $tokenAfterReturnTypeHint = $x;
1216 for ($x = ($tokenAfterReturnTypeHint - 1); $x > $i; $x--) {
1217 … if (isset(PHP_CodeSniffer_Tokens::$emptyTokens[$tokens[$x]['code']]) === false) {
1218 …if (in_array($tokens[$x]['code'], array(T_STRING, T_ARRAY, T_ARRAY_HINT, T_CALLABLE, T_SELF, T_PAR…
1220 $line = $tokens[$x]['line'];
1221 $type = $tokens[$x]['type'];
1222 … echo "\t* token $x on line $line changed from $type to T_RETURN_TYPE".PHP_EOL;
1225 $tokens[$x]['code'] = T_RETURN_TYPE;
1226 $tokens[$x]['type'] = 'T_RETURN_TYPE';
1239 for ($x = ($i + 1); $x < $numTokens; $x++) {
1240 … if (isset(PHP_CodeSniffer_Tokens::$emptyTokens[$tokens[$x]['code']]) === false) {
1245 if ($tokens[$x]['code'] === T_OPEN_PARENTHESIS
1246 || $tokens[$x]['code'] === T_OPEN_CURLY_BRACKET
1247 || $tokens[$x]['code'] === T_EXTENDS
1248 || $tokens[$x]['code'] === T_IMPLEMENTS
1257 … for ($x = ($tokens[$i]['scope_opener'] + 1); $x < $tokens[$i]['scope_closer']; $x++) {
1258 if (isset($tokens[$x]['conditions'][$i]) === false) {
1262 $tokens[$x]['conditions'][$i] = T_ANON_CLASS;
1264 $type = $tokens[$x]['type'];
1265 echo "\t\t* cleaned $x ($type) *".PHP_EOL;
1289 for ($x = ($i - 1); $x > 0; $x--) {
1293 if (isset($tokens[$x]['scope_opener']) === true) {
1298 … if (isset(PHP_CodeSniffer_Tokens::$emptyTokens[$tokens[$x]['code']]) === false) {
1299 if (isset($allowed[$tokens[$x]['code']]) === false) {
1324 for ($x = ($i - 1); $x > 0; $x--) {
1325 … if (isset(PHP_CodeSniffer_Tokens::$emptyTokens[$tokens[$x]['code']]) === false) {
1330 if ($tokens[$x]['code'] === T_INSTANCEOF) {
1354 for ($x = ($i + 1); $i < $numTokens; $x++) {
1355 … if (isset(PHP_CodeSniffer_Tokens::$emptyTokens[$tokens[$x]['code']]) === false) {
1366 if (isset($context[$tokens[$x]['code']]) === true) {
1378 for ($x = ($i + 1); $i < $numTokens; $x++) {
1379 … if (isset(PHP_CodeSniffer_Tokens::$emptyTokens[$tokens[$x]['code']]) === false) {
1385 if ($tokens[$x]['code'] !== T_STRING) {
1387 $line = $tokens[$x]['line'];
1388 $type = $tokens[$x]['type'];
1389 echo "\t* token $x on line $line changed from $type to T_STRING".PHP_EOL;
1392 $tokens[$x]['code'] = T_STRING;
1393 $tokens[$x]['type'] = 'T_STRING';
1412 for ($x = ($scopeOpener + 1); $x < $numTokens; $x++) {
1413 if (isset(PHP_CodeSniffer_Tokens::$emptyTokens[$tokens[$x]['code']]) === false) {
1419 if ($tokens[$x]['code'] === T_CASE || $tokens[$x]['code'] === T_DEFAULT) {
1424 $newCloser = $tokens[$x]['scope_closer'];
1436 if ($tokens[$x]['code'] !== T_OPEN_CURLY_BRACKET
1437 || isset($tokens[$x]['scope_condition']) === true
1446 $newCloser = $tokens[$x]['bracket_closer'];
1447 foreach (array($i, $x, $newCloser) as $index) {
1449 $tokens[$index]['scope_opener'] = $x;
1459 unset($tokens[$x]['bracket_opener']);
1460 unset($tokens[$x]['bracket_closer']);
1470 $newType = $tokens[$x]['type'];
1471 …i ($tokenType) on line $line opener changed from $scopeOpener ($oldType) to $x ($newType)".PHP_EOL;
1480 for ($x = $newCloser; $x < $scopeCloser; $x++) {
1481 foreach ($tokens[$x]['conditions'] as $num => $oldCond) {
1483 $oldConditions = $tokens[$x]['conditions'];
1484 unset($tokens[$x]['conditions'][$num]);
1487 $type = $tokens[$x]['type'];
1496 foreach ($tokens[$x]['conditions'] as $condition) {
1502 echo "\t\t* cleaned $x ($type) *".PHP_EOL;