public/phpmyadmin/vendor/squizlabs/php_codesniffer/src/Tokenizers/PHP.php
/**
     * Converts simple tokens into a format that conforms to complex tokens
     * produced by token_get_all().
     *
     * Simple tokens are tokens that are not in array form when produced from
     * token_get_all().
     *
     * @param string $token The simple token to convert.
     *
     * @return array The new token in array format.
     */
Converts simple tokens into a format that conforms to complex tokens
produced by token_get_all().

Simple tokens are tokens that are not in array form when produced from
token_get_all().

@param string $token The simple token to convert.

@return array The new token in array format.
Converts simple tokens into a format that conforms to complex tokens produced by token_get_all () . Simple tokens are tokens that are not in array form when produced from token_get_all () . @param string $token The simple token to convert . @return array The new token in array format .
public static function resolveSimpleToken($token)
    {
        $newToken = [];
        switch ($token) {
        case '{':
            $newToken['type'] = 'T_OPEN_CURLY_BRACKET';
            break;
        case '}':
            $newToken['type'] = 'T_CLOSE_CURLY_BRACKET';
            break;
        case '[':
            $newToken['type'] = 'T_OPEN_SQUARE_BRACKET';
            break;
        case ']':
            $newToken['type'] = 'T_CLOSE_SQUARE_BRACKET';
            break;
        case '(':
            $newToken['type'] = 'T_OPEN_PARENTHESIS';
            break;
        case ')':
            $newToken['type'] = 'T_CLOSE_PARENTHESIS';
            break;
        case ':':
            $newToken['type'] = 'T_COLON';
            break;
        case '.':
            $newToken['type'] = 'T_STRING_CONCAT';
            break;
        case ';':
            $newToken['type'] = 'T_SEMICOLON';
            break;
        case '=':
            $newToken['type'] = 'T_EQUAL';
            break;
        case '*':
            $newToken['type'] = 'T_MULTIPLY';
            break;
        case '/':
            $newToken['type'] = 'T_DIVIDE';
            break;
        case '+':
            $newToken['type'] = 'T_PLUS';
            break;
        case '-':
            $newToken['type'] = 'T_MINUS';
            break;
        case '%':
            $newToken['type'] = 'T_MODULUS';
            break;
        case '^':
            $newToken['type'] = 'T_BITWISE_XOR';
            break;
        case '&':
            $newToken['type'] = 'T_BITWISE_AND';
            break;
        case '|':
            $newToken['type'] = 'T_BITWISE_OR';
            break;
        case '<':
            $newToken['type'] = 'T_LESS_THAN';
            break;
        case '>':
            $newToken['type'] = 'T_GREATER_THAN';
            break;
        case '!':
            $newToken['type'] = 'T_BOOLEAN_NOT';
            break;
        case ',':
            $newToken['type'] = 'T_COMMA';
            break;
        case '@':
            $newToken['type'] = 'T_ASPERAND';
            break;
        case '$':
            $newToken['type'] = 'T_DOLLAR';
            break;
        case '`':
            $newToken['type'] = 'T_BACKTICK';
            break;
        default:
            $newToken['type'] = 'T_NONE';
            break;
        }
        $newToken['code']    = constant($newToken['type']);
        $newToken['content'] = $token;
        self::$resolveTokenCache[$token] = $newToken;
        return $newToken;
    }
public static function resolveSimpleToken ( $ token ) { $ newToken = [ ] ; switch ( $ token ) { case '{' : $ newToken [ 'type' ] = 'T_OPEN_CURLY_BRACKET' ; break ; case '}' : $ newToken [ 'type' ] = 'T_CLOSE_CURLY_BRACKET' ; break ; case '[' : $ newToken [ 'type' ] = 'T_OPEN_SQUARE_BRACKET' ; break ; case ']' : $ newToken [ 'type' ] = 'T_CLOSE_SQUARE_BRACKET' ; break ; case '(' : $ newToken [ 'type' ] = 'T_OPEN_PARENTHESIS' ; break ; case ')' : $ newToken [ 'type' ] = 'T_CLOSE_PARENTHESIS' ; break ; case ':' : $ newToken [ 'type' ] = 'T_COLON' ; break ; case '.' : $ newToken [ 'type' ] = 'T_STRING_CONCAT' ; break ; case ';' : $ newToken [ 'type' ] = 'T_SEMICOLON' ; break ; case '=' : $ newToken [ 'type' ] = 'T_EQUAL' ; break ; case '*' : $ newToken [ 'type' ] = 'T_MULTIPLY' ; break ; case '/' : $ newToken [ 'type' ] = 'T_DIVIDE' ; break ; case '+' : $ newToken [ 'type' ] = 'T_PLUS' ; break ; case '-' : $ newToken [ 'type' ] = 'T_MINUS' ; break ; case '%' : $ newToken [ 'type' ] = 'T_MODULUS' ; break ; case '^' : $ newToken [ 'type' ] = 'T_BITWISE_XOR' ; break ; case '&' : $ newToken [ 'type' ] = 'T_BITWISE_AND' ; break ; case '|' : $ newToken [ 'type' ] = 'T_BITWISE_OR' ; break ; case '<' : $ newToken [ 'type' ] = 'T_LESS_THAN' ; break ; case '>' : $ newToken [ 'type' ] = 'T_GREATER_THAN' ; break ; case '!' : $ newToken [ 'type' ] = 'T_BOOLEAN_NOT' ; break ; case ',' : $ newToken [ 'type' ] = 'T_COMMA' ; break ; case '@' : $ newToken [ 'type' ] = 'T_ASPERAND' ; break ; case '$' : $ newToken [ 'type' ] = 'T_DOLLAR' ; break ; case '`' : $ newToken [ 'type' ] = 'T_BACKTICK' ; break ; default : $ newToken [ 'type' ] = 'T_NONE' ; break ; } $ newToken [ 'code' ] = constant ( $ newToken [ 'type' ] ) ; $ newToken [ 'content' ] = $ token ; self :: $ resolveTokenCache [ $ token ] = $ newToken ; return $ newToken ; }
Converts simple tokens into a format that conforms to complex tokens
 produced by token_get_all().
Converts simple tokens into a format that conforms to complex tokens produced by token_get_all () .
//end switch