Lines Matching refs:next
72 $next = $phpcsFile->findNext(
81 if ($next === false) {
116 $next = $stackPtr;
119 while ($next !== false) {
122 if (isset($tokens[$next]['nested_parenthesis']) === true) {
123 $brackets = $tokens[$next]['nested_parenthesis'];
127 if (isset($tokens[$next]['conditions']) === true) {
128 $conditions = $tokens[$next]['conditions'];
133 $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($next - 1), $stackPtr, true);
134 $indent = $tokens[($next - 1)];
135 if ($tokens[$prev]['line'] !== $tokens[$next]['line']
138 if ($indent['line'] === $tokens[$next]['line']) {
151 $fix = $phpcsFile->addFixableError($error, $next, 'Incorrect', $data);
155 $phpcsFile->fixer->addContentBefore($next, $spaces);
157 $phpcsFile->fixer->replaceToken(($next - 1), $spaces);
164 $content = $phpcsFile->findNext(T_WHITESPACE, ($next + 1), null, true);
165 if ($tokens[$content]['line'] !== $tokens[$next]['line']) {
167 $fix = $phpcsFile->addFixableError($error, $next, 'StartOfLine');
170 for ($x = ($next + 1); $x < $content; $x++) {
174 $phpcsFile->fixer->addNewlineBefore($next);
180 $next = $phpcsFile->findNext(
182 ($next + 1),