public function dumpBody()
    {
        $lines = file($this->getFileName());
        $startLine = $this->getStartLine();
        $endLine = $this->getEndLine();
        $lines[$startLine - 1] = explode('{', $lines[$startLine - 1]);
        $lines[$startLine - 1] = end($lines[$startLine - 1]);
        $end = mb_strrpos($lines[$endLine - 1], '}');
        if ($end !== false) {
            $lines[$endLine - 1] = mb_substr($lines[$endLine - 1], 0, $end);
        }
        $lines[$endLine - 1] .= '}';

        $code = '';
        for ($line = $startLine - 1; $line < $endLine; $line++) {
            $code .= $lines[$line];
        }

        return $code;
    }
public function dumpBody()
    {
        $lines = file($this->getFileName());
        $startLine = $this->getStartLine();
        $endLine = $this->getEndLine();
        $lines[$startLine - 1] = explode('{', $lines[$startLine - 1]);
        $lines[$startLine - 1] = end($lines[$startLine - 1]);
        $end = mb_strrpos($lines[$endLine - 1], '}');
        if ($end !== false) {
            $lines[$endLine - 1] = mb_substr($lines[$endLine - 1], 0, $end);
        }
        $lines[$endLine - 1] .= '}';

        $code = '';
        for ($line = $startLine - 1; $line < $endLine; $line++) {
            $code .= $lines[$line];
        }

        return $code;
    }
public function dumpBody ( ) { $ lines = file ( $ this -> getFileName ( ) ) ; $ startLine = $ this -> getStartLine ( ) ; $ endLine = $ this -> getEndLine ( ) ; $ lines [ $ startLine - 1 ] = explode ( '{' , $ lines [ $ startLine - 1 ] ) ; $ lines [ $ startLine - 1 ] = end ( $ lines [ $ startLine - 1 ] ) ; $ end = mb_strrpos ( $ lines [ $ endLine - 1 ] , '}' ) ; if ( $ end !== false ) { $ lines [ $ endLine - 1 ] = mb_substr ( $ lines [ $ endLine - 1 ] , 0 , $ end ) ; } $ lines [ $ endLine - 1 ] .= '}' ; $ code = '' ; for ( $ line = $ startLine - 1 ; $ line < $ endLine ; $ line ++ ) { $ code .= $ lines [ $ line ] ; } return $ code ; }
Dump function body contained inside brackets.

@return string
Dump function body contained inside brackets .