Lines Matching refs:tokens

83         $tokens = $phpcsFile->getTokens();
85 if (isset($tokens[$stackPtr]['scope_opener']) === true) {
91 if ($tokens[$stackPtr]['code'] === T_ELSE) {
93 if ($tokens[$next]['code'] === T_IF) {
98 if ($tokens[$stackPtr]['code'] === T_WHILE) {
101 if ($tokens[$lastContent]['code'] === T_CLOSE_CURLY_BRACKET) {
102 $brace = $tokens[$lastContent];
104 $condition = $tokens[$brace['scope_condition']];
143 if (isset($tokens[$stackPtr]['parenthesis_closer']) === true) {
144 $closer = $tokens[$stackPtr]['parenthesis_closer'];
149 if ($tokens[($closer + 1)]['code'] === T_WHITESPACE
150 || $tokens[($closer + 1)]['code'] === T_SEMICOLON
161 if ($tokens[$end]['code'] === T_SEMICOLON) {
165 if ($tokens[$end]['code'] === T_CLOSE_TAG) {
170 if (in_array($tokens[$end]['code'], $fixableScopeOpeners) === true
171 && isset($tokens[$end]['scope_opener']) === false
179 if (isset($tokens[$end]['scope_opener']) === true) {
180 $type = $tokens[$end]['code'];
181 $end = $tokens[$end]['scope_closer'];
188 $nextType = $tokens[$next]['code'];
206 $end = $tokens[$next]['scope_closer'];
210 if ($tokens[$end]['code'] !== T_END_HEREDOC
211 && $tokens[$end]['code'] !== T_END_NOWDOC
217 if (isset($tokens[$end]['parenthesis_closer']) === true) {
218 $end = $tokens[$end]['parenthesis_closer'];
223 if ($tokens[$end]['code'] !== T_WHITESPACE) {
234 if ($next === false || $tokens[$next]['line'] !== $tokens[$end]['line']) {
240 if (isset($tokens[($endLine + 1)]) === false
241 || $tokens[$endLine]['line'] !== $tokens[($endLine + 1)]['line']
247 if ($tokens[$endLine]['code'] !== T_COMMENT) {
263 if ($tokens[$end]['code'] !== T_SEMICOLON
264 && $tokens[$end]['code'] !== T_CLOSE_CURLY_BRACKET
272 && ($tokens[$next]['code'] === T_ELSE
273 || $tokens[$next]['code'] === T_ELSEIF)
280 || $tokens[($first - 1)]['line'] !== $tokens[$first]['line']
286 if ($tokens[$first]['code'] === T_WHITESPACE) {
287 $indent = $tokens[$first]['content'];
288 } else if ($tokens[$first]['code'] === T_INLINE_HTML
289 || $tokens[$first]['code'] === T_OPEN_TAG
295 if ($next !== false && $tokens[$endToken]['code'] === T_COMMENT) {