Lines Matching refs:tokens

60         $tokens = $phpcsFile->getTokens();
63 if (substr(strtolower($tokens[$className]['content']), -10) !== 'widgettype') {
68 …$create = $phpcsFile->findNext(T_PROPERTY, $stackPtr, $tokens[$stackPtr]['bracket_closer'], null, …
74 if ($tokens[$function]['code'] !== T_FUNCTION
75 && $tokens[$function]['code'] !== T_CLOSURE
80 $start = ($tokens[$function]['scope_opener'] + 1);
81 $end = ($tokens[$function]['scope_closer'] - 1);
84 …$arg = $phpcsFile->findNext(T_WHITESPACE, ($tokens[$function]['parenthesis_opener'] + 1), null, tr…
85 if ($tokens[$arg]['content'] !== 'callback') {
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) {
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) {
147 if (isset($tokens[$bracket]['parenthesis_owner']) === true) {
154 $endBracket = end($tokens[$i]['nested_parenthesis']);
155 $bracket = key($tokens[$i]['nested_parenthesis']);
164 if ($tokens[$prev]['code'] !== T_STRING) {
177 if ($tokens[$arg]['content'] !== 'this'
178 && $tokens[$arg]['content'] !== 'self'
187 $endBracket = $tokens[($i + 3)]['parenthesis_closer'];
192 if (isset(PHP_CodeSniffer_Tokens::$emptyTokens[$tokens[$next]['code']]) === true) {
197 if ($tokens[$next]['code'] === T_CLOSE_CURLY_BRACKET) {
204 if ($tokens[$next]['line'] === $tokens[$endBracket]['line']) {
211 if ($next !== $tokens[$function]['scope_closer']
212 && $tokens[$next]['code'] !== T_RETURN