protected function applyIntraline(&$render, $intra, $corpus) { $line_break = "<span class=\"over-the-line\">⬅</span><br />"; foreach ($render as $key => $text) { if (isset($intra[$key])) { $render[$key] = ArcanistDiffUtils::applyIntralineDiff($text, $intra[$key]); } if (isset($corpus[$key]) && strlen($corpus[$key]) > $this->lineWidth) { $lines = phutil_utf8_hard_wrap_html($render[$key], $this->lineWidth); $render[$key] = implode($line_break, $lines); } } }
protected function applyIntraline(&$render, $intra, $corpus) { foreach ($render as $key => $text) { if (isset($intra[$key])) { $render[$key] = ArcanistDiffUtils::applyIntralineDiff($text, $intra[$key]); } if (isset($corpus[$key]) && strlen($corpus[$key]) > $this->lineWidth) { $render[$key] = $this->lineWrap($render[$key]); } } }
private function applyIntraline(&$render, $intra, $corpus) { foreach ($render as $key => $text) { if (isset($intra[$key])) { $render[$key] = ArcanistDiffUtils::applyIntralineDiff($text, $intra[$key]); } } }