Lines Matching refs:token
80 $token = $tokens[$stackPtr];
85 if ($token['code'] === T_BREAK
86 || $token['code'] === T_LIST
87 || $token['code'] === T_DEFAULT
88 || $token['code'] === T_SWITCH
89 || $token['code'] === T_FOR
90 || $token['code'] === T_FOREACH
91 || $token['code'] === T_WHILE
92 || $token['code'] === T_DEC
94 $token['type'] = 'T_STRING';
95 $token['code'] = T_STRING;
99 $type = $token['type'];
100 $content = PHP_CodeSniffer::prepareForOutput($token['content']);
104 if ($token['code'] === T_BITWISE_XOR
137 if ($token['code'] === T_GOTO_LABEL) {
143 'content' => substr($token['content'], 0, -1),
155 if ($token['code'] === T_FUNCTION) {
160 'content' => $token['content'],
167 if ($token['code'] === T_COMMENT
168 && substr($token['content'], 0, 2) === '/*'
175 if ($token['code'] === T_COMMENT
177 && (substr($token['content'], 0, 2) === '//'
178 || $token['content']{0} === '#')
180 $content = ltrim($token['content'], '#/');
201 if ($token['content']{0} === '#') {
223 … $trimmed = substr($token['content'], 0, (strlen($token['content']) - strlen($content)));
252 if ($token['code'] === T_COMMENT
253 && substr($token['content'], -2) === '*/'
259 $finalTokens[$newStackPtr] = $token;
278 $token = $finalTokens[$stackPtr];
281 $type = $token['type'];
282 $content = PHP_CodeSniffer::prepareForOutput($token['content']);
286 switch ($token['code']) {
383 if (strtolower($token['content']) === 'url') {