Gitonomy\Git\Parser\CommitParser::consumeNameEmailDate PHP Méthode

consumeNameEmailDate() protected méthode

protected consumeNameEmailDate ( )
    protected function consumeNameEmailDate()
    {
        if (!preg_match('/(([^\\n]*) <([^\\n]*)> (\\d+ [+-]\\d{4}))/A', $this->content, $vars, 0, $this->cursor)) {
            throw new RuntimeException('Unable to parse name, email and date');
        }
        $this->cursor += strlen($vars[1]);
        return array($vars[2], $vars[3], $vars[4]);
    }