mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
PropertyModifierReplaceNull: code style fix
This commit is contained in:
parent
02bed9265a
commit
fc5d3de568
@ -15,11 +15,11 @@ class PropertyModifierReplaceNull extends PropertyModifierHook
|
|||||||
|
|
||||||
public static function addSettingsFormFields(QuickForm $form)
|
public static function addSettingsFormFields(QuickForm $form)
|
||||||
{
|
{
|
||||||
$form->addElement('text', 'string', array(
|
$form->addElement('text', 'string', [
|
||||||
'label' => 'Replacement String',
|
'label' => 'Replacement String',
|
||||||
'description' => $form->translate('Your replacement string'),
|
'description' => $form->translate('Your replacement string'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
));
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function transform($value)
|
public function transform($value)
|
||||||
@ -27,7 +27,7 @@ class PropertyModifierReplaceNull extends PropertyModifierHook
|
|||||||
if ($value === null) {
|
if ($value === null) {
|
||||||
return $this->getSetting('string');
|
return $this->getSetting('string');
|
||||||
} else {
|
} else {
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user