Merge pull request #15976 from eileenmcnaughton/5.20
[civicrm-core.git] / CRM / Contribute / Form.php
index 7beab54f86d78c0df890efbb8e7cdfbf28478704..745b0d7c66cbb9d1893dc5120304a82e1d7f67ec 100644 (file)
@@ -42,10 +42,10 @@ class CRM_Contribute_Form extends CRM_Admin_Form {
    * @return array
    */
   public function setDefaultValues() {
-    $defaults = array();
+    $defaults = [];
 
     if (isset($this->_id)) {
-      $params = array('id' => $this->_id);
+      $params = ['id' => $this->_id];
       if (!empty($this->_BAOName)) {
         $baoName = $this->_BAOName;
         $baoName::retrieve($params, $defaults);