Merge pull request #15590 from alifrumin/subjecthelp
[civicrm-core.git] / CRM / Admin / Form / Mapping.php
index bffc60447765ef8dd7e6c1d210fce25b96933801..2dac50e76328981f46d75f97ef9df7d6e7529c85 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018                                |
+ | Copyright CiviCRM LLC (c) 2004-2019                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
  */
 
 /**
@@ -60,10 +60,10 @@ class CRM_Admin_Form_Mapping extends CRM_Admin_Form {
       $this->add('text', 'name', ts('Name'),
         CRM_Core_DAO::getAttribute('CRM_Core_DAO_Mapping', 'name'), TRUE
       );
-      $this->addRule('name', ts('Name already exists in Database.'), 'objectExists', array(
-          'CRM_Core_DAO_Mapping',
-          $this->_id,
-        ));
+      $this->addRule('name', ts('Name already exists in Database.'), 'objectExists', [
+        'CRM_Core_DAO_Mapping',
+        $this->_id,
+      ]);
 
       $this->addElement('text', 'description', ts('Description'),
         CRM_Core_DAO::getAttribute('CRM_Core_DAO_Mapping', 'description')