Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / files / document / PhabricatorVoidDocumentEngine.php
blobc5395632ebdb30758eb9b17018ea4f040620898a
1 <?php
3 final class PhabricatorVoidDocumentEngine
4 extends PhabricatorDocumentEngine {
6 const ENGINEKEY = 'void';
8 public function getViewAsLabel(PhabricatorDocumentRef $ref) {
9 return null;
12 protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) {
13 return 'fa-file';
16 protected function getContentScore(PhabricatorDocumentRef $ref) {
17 return 1000;
20 protected function getByteLengthLimit() {
21 return null;
24 protected function canRenderDocumentType(PhabricatorDocumentRef $ref) {
25 return true;
28 protected function newDocumentContent(PhabricatorDocumentRef $ref) {
29 $message = pht(
30 'No document engine can render the contents of this file.');
32 $container = phutil_tag(
33 'div',
34 array(
35 'class' => 'document-engine-message',
37 $message);
39 return $container;