mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Unuse short ternary operator
Summary: We still support PHP 5.2. Test Plan: $ arc lint Reviewers: nh, epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D3503
This commit is contained in:
parent
8e7ae7b33a
commit
cfea1d29ee
1 changed files with 3 additions and 1 deletions
|
@ -75,6 +75,8 @@ EXAMPLE;
|
||||||
$font_default = PhabricatorEnv::getEnvConfig('style.monospace');
|
$font_default = PhabricatorEnv::getEnvConfig('style.monospace');
|
||||||
$font_default = phutil_escape_html($font_default);
|
$font_default = phutil_escape_html($font_default);
|
||||||
|
|
||||||
|
$pref_symbols_value = $preferences->getPreference($pref_symbols);
|
||||||
|
|
||||||
$form = id(new AphrontFormView())
|
$form = id(new AphrontFormView())
|
||||||
->setUser($user)
|
->setUser($user)
|
||||||
->appendChild(
|
->appendChild(
|
||||||
|
@ -117,7 +119,7 @@ EXAMPLE;
|
||||||
id(new AphrontFormRadioButtonControl())
|
id(new AphrontFormRadioButtonControl())
|
||||||
->setLabel('Symbol Links')
|
->setLabel('Symbol Links')
|
||||||
->setName($pref_symbols)
|
->setName($pref_symbols)
|
||||||
->setValue($preferences->getPreference($pref_symbols) ?: 'enabled')
|
->setValue($pref_symbols_value ? $pref_symbols_value : 'enabled')
|
||||||
->addButton('enabled', 'Enabled (default)',
|
->addButton('enabled', 'Enabled (default)',
|
||||||
'Use this setting to disable linking symbol names in Differential '.
|
'Use this setting to disable linking symbol names in Differential '.
|
||||||
'and Diffusion to their definitions. This is enabled by default.')
|
'and Diffusion to their definitions. This is enabled by default.')
|
||||||
|
|
Loading…
Reference in a new issue