X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCampaign%2FForm%2FTask.php;h=f6575049df618e512e81e0016657fe61c1c2c3ae;hb=f68ee4ec5e94cc51d5e4a6aa9335d913cb497ed6;hp=fb721b5e09b944acdb9addb2299743c1c4486894;hpb=2099e281172b0622067cc4791d032155c9156e42;p=civicrm-core.git diff --git a/CRM/Campaign/Form/Task.php b/CRM/Campaign/Form/Task.php index fb721b5e09..f6575049df 100644 --- a/CRM/Campaign/Form/Task.php +++ b/CRM/Campaign/Form/Task.php @@ -54,7 +54,7 @@ class CRM_Campaign_Form_Task extends CRM_Core_Form_Task { $taskName = CRM_Utils_Array::value($this->_task, $campaignTasks); $this->assign('taskName', $taskName); - $ids = array(); + $ids = []; if ($values['radio_ts'] == 'ts_sel') { foreach ($values as $name => $value) { if (substr($name, 0, CRM_Core_Form::CB_PREFIX_LEN) == CRM_Core_Form::CB_PREFIX) { @@ -108,18 +108,17 @@ class CRM_Campaign_Form_Task extends CRM_Core_Form_Task { * @param bool $submitOnce */ public function addDefaultButtons($title, $nextType = 'next', $backType = 'back', $submitOnce = FALSE) { - $this->addButtons(array( - array( - 'type' => $nextType, - 'name' => $title, - 'isDefault' => TRUE, - ), - array( - 'type' => $backType, - 'name' => ts('Cancel'), - ), - ) - ); + $this->addButtons([ + [ + 'type' => $nextType, + 'name' => $title, + 'isDefault' => TRUE, + ], + [ + 'type' => $backType, + 'name' => ts('Cancel'), + ], + ]); } }