Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / settings / setting / PhabricatorOlderInlinesSetting.php
blobe7f7ab3dd18e688c14f75fc575c51af58d93f570
1 <?php
3 final class PhabricatorOlderInlinesSetting
4 extends PhabricatorSelectSetting {
6 const SETTINGKEY = 'diff-ghosts';
8 const VALUE_GHOST_INLINES_ENABLED = 'default';
9 const VALUE_GHOST_INLINES_DISABLED = 'disabled';
11 public function getSettingName() {
12 return pht('Show Older Inlines');
15 protected function getSettingOrder() {
16 return 200;
19 public function getSettingPanelKey() {
20 return PhabricatorDiffPreferencesSettingsPanel::PANELKEY;
23 protected function getControlInstructions() {
24 return pht(
25 'When a revision is updated, this software attempts to bring inline '.
26 'comments on the older version forward to the new changes. You can '.
27 'disable this behavior if you prefer comments stay anchored in one '.
28 'place.');
31 public function getSettingDefaultValue() {
32 return self::VALUE_GHOST_INLINES_ENABLED;
35 protected function getSelectOptions() {
36 return array(
37 self::VALUE_GHOST_INLINES_ENABLED => pht('Enabled'),
38 self::VALUE_GHOST_INLINES_DISABLED => pht('Disabled'),