lib/CrEOF/Geo/WKT/Lexer.php
protected function getType(&$value)
    {
        if (is_numeric($value)) {
            $value += 0;

            if (is_int($value)) {
                return self::T_INTEGER;
            }

            return self::T_FLOAT;
        }

        if (ctype_alpha($value)) {
            $name = __CLASS__ . '::T_' . strtoupper($value);

            if (defined($name)) {
                return constant($name);
            }

            return self::T_STRING;
        }

        switch ($value) {
            case ',':
                return self::T_COMMA;
            case '(':
                return self::T_OPEN_PARENTHESIS;
            case ')':
                return self::T_CLOSE_PARENTHESIS;
            case '=':
                return self::T_EQUALS;
            case ';':
                return self::T_SEMICOLON;
            default:
                return self::T_NONE;
        }
    }
protected function getType(&$value)
    {
        if (is_numeric($value)) {
            $value += 0;

            if (is_int($value)) {
                return self::T_INTEGER;
            }

            return self::T_FLOAT;
        }

        if (ctype_alpha($value)) {
            $name = __CLASS__ . '::T_' . strtoupper($value);

            if (defined($name)) {
                return constant($name);
            }

            return self::T_STRING;
        }

        switch ($value) {
            case ',':
                return self::T_COMMA;
            case '(':
                return self::T_OPEN_PARENTHESIS;
            case ')':
                return self::T_CLOSE_PARENTHESIS;
            case '=':
                return self::T_EQUALS;
            case ';':
                return self::T_SEMICOLON;
            default:
                return self::T_NONE;
        }
    }
@param string $value

@return int