Merge pull request #4955 from atif-shaikh/master-cleanup
[civicrm-core.git] / CRM / Mailing / Form / Approve.php
index 68c02afe197e228d8edc51a8ba3b3d82e3c15b29..3477152a076cc271c752f79dd080f61853c354f9 100644 (file)
@@ -47,7 +47,6 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form {
    * Set variables up before form is built
    *
    * @return void
-   * @access public
    */
   public function preProcess() {
     if (CRM_Mailing_Info::workflowEnabled()) {
@@ -59,7 +58,6 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form {
       $this->redirectToListing();
     }
 
-
     // when user come from search context.
     $this->_searchBasedMailing = CRM_Contact_Form_Search::isSearchContext($this->get('context'));
 
@@ -84,11 +82,10 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form {
   /**
    * Set default values for the form.
    *
-   * @access public
    *
    * @return void
    */
-  function setDefaultValues() {
+  public function setDefaultValues() {
     $defaults = array();
     if ($this->_mailingID) {
       $defaults['approval_status_id'] = $this->_mailing->approval_status_id;
@@ -104,7 +101,6 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form {
    * @param
    *
    * @return void
-   * @access public
    */
   public function buildQuickform() {
     $title = ts('Approve/Reject Mailing') . " - {$this->_mailing->name}";
@@ -126,7 +122,8 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form {
     $this->addRadio('approval_status_id', ts('Approval Status'), $mailApprovalStatus, TRUE, NULL, TRUE);
 
     $buttons = array(
-      array('type' => 'next',
+      array(
+        'type' => 'next',
         'name' => ts('Save'),
         'spacing' => '                 ',
         'isDefault' => TRUE,
@@ -165,7 +162,6 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form {
    * @param
    *
    * @return void
-   * @access public
    */
   public function postProcess() {
     // get the submitted form values.
@@ -212,7 +208,6 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form {
 
     CRM_Mailing_BAO_Mailing::create($params, $ids);
 
-
     //when user perform mailing from search context
     //redirect it to search result CRM-3711
     $ssID = $this->get('ssID');
@@ -245,14 +240,13 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form {
 
     $session = CRM_Core_Session::singleton();
     $session->pushUserContext(CRM_Utils_System::url('civicrm/mailing/browse/scheduled',
-        'reset=1&scheduled=true'
-      ));
+      'reset=1&scheduled=true'
+    ));
   }
 
   /**
    * Display Name of the form
    *
-   * @access public
    *
    * @return string
    */
@@ -260,4 +254,3 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form {
     return ts('Approve/Reject Mailing');
   }
 }
-