Library/CodePrinter.php
public function outputDocBlock($docblock, $replaceTab = true)
    {
        $code = '';
        $docblock = '/'.$docblock.'/';

        foreach (explode("\n", $docblock) as $line) {
            if ($replaceTab) {
                $code .= str_repeat("\t", $this->level).preg_replace('/^[ \t]+/', ' ', $line).PHP_EOL;
            } else {
                $code .= $line.PHP_EOL;
            }
        }

        $this->lastLine = $code;
        $this->code .= $code;
        ++$this->currentPrints;
    }
public function outputDocBlock($docblock, $replaceTab = true)
    {
        $code = '';
        $docblock = '/'.$docblock.'/';

        foreach (explode("\n", $docblock) as $line) {
            if ($replaceTab) {
                $code .= str_repeat("\t", $this->level).preg_replace('/^[ \t]+/', ' ', $line).PHP_EOL;
            } else {
                $code .= $line.PHP_EOL;
            }
        }

        $this->lastLine = $code;
        $this->code .= $code;
        ++$this->currentPrints;
    }
public function outputDocBlock ( $ docblock , $ replaceTab = true ) { $ code = '' ; $ docblock = '/' . $ docblock . '/' ; foreach ( explode ( "\n" , $ docblock ) as $ line ) { if ( $ replaceTab ) { $ code .= str_repeat ( "\t" , $ this -> level ) . preg_replace ( '/^[ \t]+/' , ' ' , $ line ) . PHP_EOL ; } else { $ code .= $ line . PHP_EOL ; } } $ this -> lastLine = $ code ; $ this -> code .= $ code ; ++ $ this -> currentPrints ; }
Adds a comment to the output with indentation level.

@param $docblock
@param bool $replaceTab
Adds a comment to the output with indentation level .