phplinter\Lint\BaseLint::parse_string PHP Method

parse_string() protected method

----------------------------------------------------------------------+ Parse a string token
protected parse_string ( $pos )
    protected function parse_string($pos)
    {
        $token = $this->node->tokens[$pos];
        $ntp = $this->next($pos);
        $nt = $this->node->tokens[$ntp][0];
        if ($nt === T_PARENTHESIS_OPEN || $nt === T_DOUBLE_COLON) {
            $this->security($pos);
            if ($nt === T_DOUBLE_COLON) {
                $name = $token[1] . '::' . $this->node->tokens[$this->next($ntp)][1];
                if ($this->config->match_rule('DEP_DEPRECATED_NAME', $name)) {
                    $this->report('DEP_DEPRECATED_NAME', $name);
                }
                if ($this->config->match_rule('DEP_DEPRECATED_NAME_REPLACE', $name)) {
                    $this->report('DEP_DEPRECATED_NAME_REPLACE', $name);
                }
            }
        }
        if ($this->config->match_rule('DEP_DEPRECATED_NAME', $token[1])) {
            $this->report('DEP_DEPRECATED_NAME', $token[1]);
        }
        if ($this->config->match_rule('DEP_DEPRECATED_NAME_REPLACE', $token[1])) {
            $this->report('DEP_DEPRECATED_NAME_REPLACE', $token[1]);
        }
    }