Lines Matching refs:nextToken

359         for ($nextToken = ($stackPtr + 1); $nextToken < $arrayEnd; $nextToken++) {
361 if ($tokens[$nextToken]['code'] === T_OPEN_PARENTHESIS
362 && (isset($tokens[$nextToken]['parenthesis_owner']) === false
363 || $tokens[$nextToken]['parenthesis_owner'] !== $stackPtr)
365 $nextToken = $tokens[$nextToken]['parenthesis_closer'];
369 if ($tokens[$nextToken]['code'] === T_ARRAY
370 || $tokens[$nextToken]['code'] === T_OPEN_SHORT_ARRAY
371 || $tokens[$nextToken]['code'] === T_CLOSURE
375 $indices[] = array('value' => $nextToken);
376 $lastToken = $nextToken;
379 if ($tokens[$nextToken]['code'] === T_ARRAY) {
380 … $nextToken = $tokens[$tokens[$nextToken]['parenthesis_opener']]['parenthesis_closer'];
381 } else if ($tokens[$nextToken]['code'] === T_OPEN_SHORT_ARRAY) {
382 $nextToken = $tokens[$nextToken]['bracket_closer'];
385 $nextToken = $tokens[$nextToken]['scope_closer'];
388 $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($nextToken + 1), null, true);
389 if ($tokens[$nextToken]['code'] !== T_COMMA) {
390 $nextToken--;
392 $lastToken = $nextToken;
398 if ($tokens[$nextToken]['code'] !== T_DOUBLE_ARROW
399 && $tokens[$nextToken]['code'] !== T_COMMA
406 if ($tokens[$nextToken]['code'] === T_COMMA) {
413 if (isset($tokens[$nextToken]['nested_parenthesis']) === true) {
414 $commaCount = count($tokens[$nextToken]['nested_parenthesis']);
430 $phpcsFile->addError($error, $nextToken, 'NoKeySpecified');
435 if ($tokens[($nextToken - 1)]['code'] === T_WHITESPACE) {
436 $content = $tokens[($nextToken - 2)]['content'];
437 if ($tokens[($nextToken - 1)]['content'] === $phpcsFile->eolChar) {
440 $spaceLength = $tokens[($nextToken - 1)]['length'];
449 … $fix = $phpcsFile->addFixableError($error, $nextToken, 'SpaceBeforeComma', $data);
451 $phpcsFile->fixer->replaceToken(($nextToken - 1), '');
458 $nextToken,
466 $lastToken = $nextToken;
470 if ($tokens[$nextToken]['code'] === T_DOUBLE_ARROW) {
473 $phpcsFile->addError($error, $nextToken, 'KeySpecified');
477 $currentEntry['arrow'] = $nextToken;
481 … $indexEnd = $phpcsFile->findPrevious(T_WHITESPACE, ($nextToken - 1), $arrayStart, true);
500 ($nextToken + 1),
507 $lastToken = $nextToken;