Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/document/PhabricatorSourceDocumentEngine.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | if ($highlighting !== null) { | ||||
} else { | } else { | ||||
$content = PhabricatorSyntaxHighlighter::highlightWithFilename( | $content = PhabricatorSyntaxHighlighter::highlightWithFilename( | ||||
$ref->getName(), | $ref->getName(), | ||||
$content); | $content); | ||||
} | } | ||||
} | } | ||||
$options = array(); | $options = array(); | ||||
if ($ref->getBlameURI()) { | if ($ref->getBlameURI() && $this->getBlameEnabled()) { | ||||
$content = phutil_split_lines($content); | $content = phutil_split_lines($content); | ||||
$blame = range(1, count($content)); | $blame = range(1, count($content)); | ||||
$blame = array_fuse($blame); | $blame = array_fuse($blame); | ||||
$options['blame'] = $blame; | $options['blame'] = $blame; | ||||
} | } | ||||
if ($ref->getCoverage()) { | if ($ref->getCoverage()) { | ||||
$options['coverage'] = $ref->getCoverage(); | $options['coverage'] = $ref->getCoverage(); | ||||
Show All 9 Lines |