public function generateUnifiedDiff()
    {
        $builder = new PhpDiffBuilder();

        return $builder->buildPatch(
            'a/' . $this->path,
            'b/' . $this->path,
            $this->buffer
        );
    }
public function generateUnifiedDiff()
    {
        $builder = new PhpDiffBuilder();

        return $builder->buildPatch(
            'a/' . $this->path,
            'b/' . $this->path,
            $this->buffer
        );
    }
public function generateUnifiedDiff ( ) { $ builder = new PhpDiffBuilder ( ) ; return $ builder -> buildPatch ( 'a/' . $ this -> path , 'b/' . $ this -> path , $ this -> buffer ) ; }
Generate a unified diff of all operations performed on the current file.

@return string
Generate a unified diff of all operations performed on the current file .