Lines Matching refs:i
102 for ($i = $start; $i <= $end; $i++) {
105 if ($i === $nestedFunction) {
109 } else if (($tokens[$i]['code'] === T_FUNCTION
110 || $tokens[$i]['code'] === T_CLOSURE)
111 && isset($tokens[$i]['scope_closer']) === true
113 $nestedFunction = $tokens[$i]['scope_closer'];
117 if ($nestedFunction === null && $tokens[$i]['code'] === T_RETURN) {
119 if ($tokens[($i + 1)]['code'] !== T_SEMICOLON) {
121 $phpcsFile->addError($error, $i, 'ReturnValue');
125 } else if ($tokens[$i]['code'] !== T_STRING
126 || $tokens[$i]['content'] !== 'callback'
133 if ($tokens[($i + 1)]['code'] !== T_OBJECT_OPERATOR
134 || $tokens[($i + 2)]['content'] !== 'call'
135 || $tokens[($i + 3)]['code'] !== T_OPEN_PARENTHESIS
140 if (isset($tokens[$i]['nested_parenthesis']) === false) {
146 foreach ($tokens[$i]['nested_parenthesis'] as $bracket) {
154 $endBracket = end($tokens[$i]['nested_parenthesis']);
155 $bracket = key($tokens[$i]['nested_parenthesis']);
176 $arg = $phpcsFile->findNext(T_WHITESPACE, ($i + 4), null, true);
187 $endBracket = $tokens[($i + 3)]['parenthesis_closer'];
215 $phpcsFile->addError($error, $i, 'NoReturn');