private function appendChangeDetailsForMail(PhabricatorLiskDAO $object, DifferentialDiff $diff, $patch, PhabricatorMetaMTAMailBody $body) { $section = id(new DifferentialChangeDetailMailView())->setViewer($this->getActor())->setDiff($diff)->setPatch($patch)->buildMailSection(); $header = pht('CHANGE DETAILS'); $section_text = "\n" . $section->getPlaintext(); $style = array('margin: 6px 0 12px 0;'); $section_html = phutil_tag('div', array('style' => implode(' ', $style)), $section->getHTML()); $body->addPlaintextSection($header, $section_text, false); $body->addHTMLSection($header, $section_html); }