Merge pull request #5077 from eileenmcnaughton/comment-full-stops
[civicrm-core.git] / CRM / Admin / Form / PreferencesDate.php
index 82f29a8eef3320fc0a84cb67ed3221a361fc689d..2c2f05ddb94e46f7690cd2843383b53d4ea81798 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -43,7 +43,6 @@ class CRM_Admin_Form_PreferencesDate extends CRM_Admin_Form {
    * Build the form object
    *
    * @return void
-   * @access public
    */
   public function buildQuickForm() {
 
@@ -91,14 +90,14 @@ class CRM_Admin_Form_PreferencesDate extends CRM_Admin_Form {
   /**
    * Global validation rules for the form
    *
-   * @param array  $fields posted values of the form
+   * @param array $fields
+   *   Posted values of the form.
    *
-   * @return array    if errors then list of errors to be posted back to the form,
+   * @return array
+   *   if errors then list of errors to be posted back to the form,
    *                  true otherwise
-   * @static
-   * @access public
    */
-  static function formRule($fields) {
+  public static function formRule($fields) {
     $errors = array();
 
     if ($fields['name'] == 'activityDateTime' && !$fields['time_format']) {
@@ -111,7 +110,6 @@ class CRM_Admin_Form_PreferencesDate extends CRM_Admin_Form {
   /**
    * Process the form submission
    *
-   * @access public
    *
    * @return void
    */
@@ -125,18 +123,19 @@ class CRM_Admin_Form_PreferencesDate extends CRM_Admin_Form {
     $params = $this->controller->exportValues($this->_name);
 
     // action is taken depending upon the mode
-    $dao              = new CRM_Core_DAO_PreferencesDate();
-    $dao->id          = $this->_id;
+    $dao = new CRM_Core_DAO_PreferencesDate();
+    $dao->id = $this->_id;
     $dao->description = $params['description'];
-    $dao->start       = $params['start'];
-    $dao->end         = $params['end'];
+    $dao->start = $params['start'];
+    $dao->end = $params['end'];
     $dao->date_format = $params['date_format'];
     $dao->time_format = $params['time_format'];
 
     $dao->save();
 
     CRM_Core_Session::setStatus(ts("The date type '%1' has been saved.",
-        array(1 => $params['name'])
-      ), ts('Saved'), 'success');
+      array(1 => $params['name'])
+    ), ts('Saved'), 'success');
   }
+
 }