whitepace y, std is => array( on same line,
[civicrm-core.git] / CRM / Mailing / Form / Subscribe.php
index 2386f04daaaea17d8ac3972336273c23467bb0a1..2f662050ea20313af3ac5b3cf1acb2ce454d4cec 100644 (file)
@@ -78,7 +78,7 @@ SELECT   title, description
   }
 
   /**
-   * Function to actually build the form
+   * Build the form object
    *
    * @return void
    * @access public
@@ -93,7 +93,7 @@ SELECT   title, description
       ),
       TRUE
     );
-    $this->addRule('email', ts("Please enter a valid email address (e.g. 'yourname@example.com')."), 'email');
+    $this->addRule('email', ts("Please enter a valid email address."), 'email');
 
     if (!$this->_groupID) {
       // create a selector box of all public groups
@@ -135,7 +135,7 @@ ORDER BY title";
     $config = CRM_Core_Config::singleton();
     $session   = CRM_Core_Session::singleton();
     $contactID = $session->get('userID');
-    
+
     if (empty($config->recaptchaPublicKey) ||
       empty($config->recaptchaPrivateKey) ||
       $contactID) {
@@ -173,6 +173,11 @@ ORDER BY title";
     );
   }
 
+  /**
+   * @param $fields
+   *
+   * @return array|bool
+   */
   static function formRule($fields) {
     foreach ($fields as $name => $dontCare) {
       if (substr($name, 0, CRM_Core_Form::CB_PREFIX_LEN) == CRM_Core_Form::CB_PREFIX) {
@@ -183,7 +188,6 @@ ORDER BY title";
   }
 
   /**
-   *
    * @access public
    *
    * @return void