Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/document/PhabricatorSourceDocumentEngine.php
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | protected function newDocumentContent(PhabricatorDocumentRef $ref) { | ||||
$options = array(); | $options = array(); | ||||
if ($ref->getBlameURI()) { | if ($ref->getBlameURI()) { | ||||
$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()) { | |||||
$options['coverage'] = $ref->getCoverage(); | |||||
} | |||||
return array( | return array( | ||||
$messages, | $messages, | ||||
$this->newTextDocumentContent($ref, $content, $options), | $this->newTextDocumentContent($ref, $content, $options), | ||||
); | ); | ||||
} | } | ||||
} | } |