Differential D21864 Diff 52157 src/applications/diffusion/document/DiffusionDocumentRenderingEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/document/DiffusionDocumentRenderingEngine.php
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | final class DiffusionDocumentRenderingEngine | ||||
} | } | ||||
protected function willRenderRef(PhabricatorDocumentRef $ref) { | protected function willRenderRef(PhabricatorDocumentRef $ref) { | ||||
$drequest = $this->getDiffusionRequest(); | $drequest = $this->getDiffusionRequest(); | ||||
$ref->setSymbolMetadata($this->getSymbolMetadata()); | $ref->setSymbolMetadata($this->getSymbolMetadata()); | ||||
$coverage = $drequest->loadCoverage(); | $coverage = $drequest->loadCoverage(); | ||||
if (strlen($coverage)) { | if ($coverage !== null && strlen($coverage)) { | ||||
$ref->addCoverage($coverage); | $ref->addCoverage($coverage); | ||||
} | } | ||||
} | } | ||||
private function getSymbolMetadata() { | private function getSymbolMetadata() { | ||||
$drequest = $this->getDiffusionRequest(); | $drequest = $this->getDiffusionRequest(); | ||||
$repo = $drequest->getRepository(); | $repo = $drequest->getRepository(); | ||||
Show All 13 Lines |