private static function clean($doc)
    {
        if ($doc === null) {
            return null;
        }

        $result = null;
        $lines = preg_split('/\r/', $doc);
        foreach ($lines as $line) {

            $line = preg_replace('/^\s*\* /', '', trim($line, "\n/* \t\x0B\0"));
            if ($line === '') {
                continue;
            }

            if ($result != null) {
                $result .= ' ';
            }
            $result .= $line;
        }

        return $result;
    }
private static function clean($doc)
    {
        if ($doc === null) {
            return null;
        }

        $result = null;
        $lines = preg_split('/\r/', $doc);
        foreach ($lines as $line) {

            $line = preg_replace('/^\s*\* /', '', trim($line, "\n/* \t\x0B\0"));
            if ($line === '') {
                continue;
            }

            if ($result != null) {
                $result .= ' ';
            }
            $result .= $line;
        }

        return $result;
    }
private static function clean ( $ doc ) { if ( $ doc === null ) { return null ; } $ result = null ; $ lines = preg_split ( '/\r/' , $ doc ) ; foreach ( $ lines as $ line ) { $ line = preg_replace ( '/^\s*\* /' , '' , trim ( $ line , "\n/* \t\x0B\0" ) ) ; if ( $ line === '' ) { continue ; } if ( $ result != null ) { $ result .= ' ' ; } $ result .= $ line ; } return $ result ; }
Cleans the doc comment. Returns null if the doc comment is null.
Cleans the doc comment . Returns null if the doc comment is null .