src/DocblockParser.php
private function parse()
    {
        $this->rawDocblock = $this->reflection->getDocComment();
        $raw = str_replace("\r\n", "\n", $this->rawDocblock);
        $lines = explode("\n", $raw);
        $matches = null;

        switch (count($lines)) {
            case 1:
                if (!preg_match('#\\/\\*\\*([^*]*)\\*\\/#', $lines[0], $matches)) {
                    return;
                }
                $lines[0] = substr($lines[0], 3, -2);
                break;
            case 2:
                break;
            default:
                array_shift($lines);
                array_pop($lines);
                break;
        }
        $this->parseLines($lines);
    }
private function parse()
    {
        $this->rawDocblock = $this->reflection->getDocComment();
        $raw = str_replace("\r\n", "\n", $this->rawDocblock);
        $lines = explode("\n", $raw);
        $matches = null;

        switch (count($lines)) {
            case 1:
                if (!preg_match('#\\/\\*\\*([^*]*)\\*\\/#', $lines[0], $matches)) {
                    return;
                }
                $lines[0] = substr($lines[0], 3, -2);
                break;
            case 2:
                break;
            default:
                array_shift($lines);
                array_pop($lines);
                break;
        }
        $this->parseLines($lines);
    }
private function parse ( ) { $ this -> rawDocblock = $ this -> reflection -> getDocComment ( ) ; $ raw = str_replace ( "\r\n" , "\n" , $ this -> rawDocblock ) ; $ lines = explode ( "\n" , $ raw ) ; $ matches = null ; switch ( count ( $ lines ) ) { case 1 : if ( ! preg_match ( '#\\/\\*\\*([^*]*)\\*\\/#' , $ lines [ 0 ] , $ matches ) ) { return ; } $ lines [ 0 ] = substr ( $ lines [ 0 ] , 3 , - 2 ) ; break ; case 2 : break ; default : array_shift ( $ lines ) ; array_pop ( $ lines ) ; break ; } $ this -> parseLines ( $ lines ) ; }
Parse the docblock.
Parse the docblock .