INFRA-132 - s/true/TRUE/
[civicrm-core.git] / CRM / Contact / Form / Task / Batch.php
index 337922f0eae8a10855580b15c4c7118e7445282c..2a9a9d9a1d469cfa61431855d4b670ea4b715aaa 100644 (file)
@@ -72,9 +72,8 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task {
    * Build all the data structures needed to build the form
    *
    * @return void
-   * @access public
    */
-  function preProcess() {
+  public function preProcess() {
     /*
      * initialize the task and row fields
      */
@@ -84,11 +83,10 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task {
   /**
    * Build the form object
    *
-   * @access public
    *
    * @return void
    */
-  function buildQuickForm() {
+  public function buildQuickForm() {
     $ufGroupId = $this->get('ufGroupId');
 
     if (!$ufGroupId) {
@@ -168,11 +166,10 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task {
   /**
    * Set default values for the form.
    *
-   * @access public
    *
    * @return array
    */
-  function setDefaultValues() {
+  public function setDefaultValues() {
     if (empty($this->_fields)) {
       return;
     }
@@ -198,13 +195,13 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task {
   /**
    * Global form rule
    *
-   * @param array $fields  the input form values
+   * @param array $fields
+   *   The input form values.
    *
    * @return true if no errors, else array of errors
-   * @access public
    * @static
    */
-  static function formRule($fields) {
+  public static function formRule($fields) {
     $errors = array();
     $externalIdentifiers = array();
     foreach ($fields['field'] as $componentId => $field) {
@@ -226,7 +223,6 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task {
   /**
    * Process the form after the input has been submitted and validated
    *
-   * @access public
    *
    * @return void
    */
@@ -267,8 +263,10 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task {
 
   /**
    * Parse street address
-   * @param array $contactValues contact values
-   * @param CRM_Core_Form $form form object
+   * @param array $contactValues
+   *   Contact values.
+   * @param CRM_Core_Form $form
+   *   Form object.
    */
   public static function parseStreetAddress(&$contactValues, &$form) {
     if (!is_array($contactValues) || !is_array($form->_fields)) {
@@ -326,4 +324,3 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task {
     }
   }
 }
-