From fc5d3de568cfd843b60851a7c058d065865f231d Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 20 Jul 2022 08:38:45 +0200 Subject: [PATCH] PropertyModifierReplaceNull: code style fix --- .../PropertyModifier/PropertyModifierReplaceNull.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/Director/PropertyModifier/PropertyModifierReplaceNull.php b/library/Director/PropertyModifier/PropertyModifierReplaceNull.php index f59f5b83..d6f9fd34 100644 --- a/library/Director/PropertyModifier/PropertyModifierReplaceNull.php +++ b/library/Director/PropertyModifier/PropertyModifierReplaceNull.php @@ -15,11 +15,11 @@ class PropertyModifierReplaceNull extends PropertyModifierHook public static function addSettingsFormFields(QuickForm $form) { - $form->addElement('text', 'string', array( + $form->addElement('text', 'string', [ 'label' => 'Replacement String', 'description' => $form->translate('Your replacement string'), 'required' => true, - )); + ]); } public function transform($value) @@ -27,7 +27,7 @@ class PropertyModifierReplaceNull extends PropertyModifierHook if ($value === null) { return $this->getSetting('string'); } else { - return $value; - } + return $value; + } } }