src/DocblockParser.php
private function parseLines($lines)
    {
        foreach ($lines as $line) {
            $line = preg_replace('#^[ \t\*]*#', '', $line);
            if (strlen($line) < 2) {
                continue;
            }
            if (preg_match('#@([^ ]+)(.*)#', $line, $matches)) {
                $tag_name = $matches[1];
                $tag_value = trim($matches[2]);
                // If this tag was already parsed, make its value an array
                if (isset($this->tags[$tag_name])) {
                    if (!is_array($this->tags[$tag_name])) {
                        $this->tags[$tag_name] = [$this->tags[$tag_name]];
                    }
                    $this->tags[$tag_name][] = $tag_value;
                } else {
                    $this->tags[$tag_name] = $tag_value;
                }
                continue;
            }
            $this->comment .= "$line\n";
        }
        $this->comment = trim($this->comment);
    }
private function parseLines($lines)
    {
        foreach ($lines as $line) {
            $line = preg_replace('#^[ \t\*]*#', '', $line);
            if (strlen($line) < 2) {
                continue;
            }
            if (preg_match('#@([^ ]+)(.*)#', $line, $matches)) {
                $tag_name = $matches[1];
                $tag_value = trim($matches[2]);
                // If this tag was already parsed, make its value an array
                if (isset($this->tags[$tag_name])) {
                    if (!is_array($this->tags[$tag_name])) {
                        $this->tags[$tag_name] = [$this->tags[$tag_name]];
                    }
                    $this->tags[$tag_name][] = $tag_value;
                } else {
                    $this->tags[$tag_name] = $tag_value;
                }
                continue;
            }
            $this->comment .= "$line\n";
        }
        $this->comment = trim($this->comment);
    }
private function parseLines ( $ lines ) { foreach ( $ lines as $ line ) { $ line = preg_replace ( '#^[ \t\*]*#' , '' , $ line ) ; if ( strlen ( $ line ) < 2 ) { continue ; } if ( preg_match ( '#@([^ ]+)(.*)#' , $ line , $ matches ) ) { $ tag_name = $ matches [ 1 ] ; $ tag_value = trim ( $ matches [ 2 ] ) ; // If this tag was already parsed, make its value an array if ( isset ( $ this -> tags [ $ tag_name ] ) ) { if ( ! is_array ( $ this -> tags [ $ tag_name ] ) ) { $ this -> tags [ $ tag_name ] = [ $ this -> tags [ $ tag_name ] ] ; } $ this -> tags [ $ tag_name ] [ ] = $ tag_value ; } else { $ this -> tags [ $ tag_name ] = $ tag_value ; } continue ; } $ this -> comment .= "$line\n" ; } $ this -> comment = trim ( $ this -> comment ) ; }
Parse the lines from the docblock.

@param string[] $lines - all lines from the docblock
Parse the lines from the docblock .