X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FForm%2FManagePremiums.php;h=bbb5543e20f049081e9e5f8915f196f48d449f64;hb=144dacf19067161923f93ddd7178bb938b04c969;hp=6cfbe11798cdd96f9d9a56843fb5df77b5d0a8f5;hpb=758eba6812e4d76ebb41f40659af438aebcb25cf;p=civicrm-core.git diff --git a/CRM/Contribute/Form/ManagePremiums.php b/CRM/Contribute/Form/ManagePremiums.php index 6cfbe11798..bbb5543e20 100644 --- a/CRM/Contribute/Form/ManagePremiums.php +++ b/CRM/Contribute/Form/ManagePremiums.php @@ -92,9 +92,9 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form { $this->applyFilter('__ALL__', 'trim'); $this->add('text', 'name', ts('Name'), CRM_Core_DAO::getAttribute('CRM_Contribute_DAO_Product', 'name'), TRUE); $this->addRule('name', ts('A product with this name already exists. Please select another name.'), 'objectExists', [ - 'CRM_Contribute_DAO_Product', - $this->_id, - ]); + 'CRM_Contribute_DAO_Product', + $this->_id, + ]); $this->add('text', 'sku', ts('SKU'), CRM_Core_DAO::getAttribute('CRM_Contribute_DAO_Product', 'sku')); $this->add('textarea', 'description', ts('Description'), 'rows=3, cols=60'); @@ -124,10 +124,10 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form { $this->add('textarea', 'options', ts('Options'), 'rows=3, cols=60'); $this->add('select', 'period_type', ts('Period Type'), [ - '' => '- select -', - 'rolling' => 'Rolling', - 'fixed' => 'Fixed', - ]); + '' => '- select -', + 'rolling' => 'Rolling', + 'fixed' => 'Fixed', + ]); $this->add('text', 'fixed_period_start_day', ts('Fixed Period Start Day'), CRM_Core_DAO::getAttribute('CRM_Contribute_DAO_Product', 'fixed_period_start_day')); @@ -181,17 +181,16 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form { $this->addFormRule(['CRM_Contribute_Form_ManagePremiums', 'formRule']); $this->addButtons([ - [ - 'type' => 'upload', - 'name' => ts('Save'), - 'isDefault' => TRUE, - ], - [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ], - ] - ); + [ + 'type' => 'upload', + 'name' => ts('Save'), + 'isDefault' => TRUE, + ], + [ + 'type' => 'cancel', + 'name' => ts('Cancel'), + ], + ]); $this->assign('productId', $this->_id); }