Differential D21769 Diff 51905 src/applications/files/document/PhabricatorRemarkupDocumentEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/document/PhabricatorRemarkupDocumentEngine.php
Show All 9 Lines | final class PhabricatorRemarkupDocumentEngine | ||||
} | } | ||||
protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { | protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { | ||||
return 'fa-file-text-o'; | return 'fa-file-text-o'; | ||||
} | } | ||||
protected function getContentScore(PhabricatorDocumentRef $ref) { | protected function getContentScore(PhabricatorDocumentRef $ref) { | ||||
$name = $ref->getName(); | $name = $ref->getName(); | ||||
if ($name !== null) { | |||||
if (preg_match('/\\.remarkup\z/i', $name)) { | if (preg_match('/\\.remarkup\z/i', $name)) { | ||||
return 2000; | return 2000; | ||||
} | } | ||||
} | |||||
return 500; | return 500; | ||||
} | } | ||||
protected function canRenderDocumentType(PhabricatorDocumentRef $ref) { | protected function canRenderDocumentType(PhabricatorDocumentRef $ref) { | ||||
return $ref->isProbablyText(); | return $ref->isProbablyText(); | ||||
} | } | ||||
Show All 19 Lines |