Merge pull request #5076 from colemanw/Attachment
[civicrm-core.git] / CRM / Campaign / Form / Survey / Delete.php
index 2f42b2a9e04d40e76552765f8e6d9593430631cf..73ebf36d1e102ee5f6c89f10261d847d3cdeae64 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        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -57,7 +57,6 @@ class CRM_Campaign_Form_Survey_Delete extends CRM_Core_Form {
    * Set variables up before form is built
    *
    * @return void
-   * @access public
    */
   public function preProcess() {
     if (!CRM_Campaign_BAO_Campaign::accessCampaign()) {
@@ -76,7 +75,6 @@ class CRM_Campaign_Form_Survey_Delete extends CRM_Core_Form {
    * Build the form object
    *
    * @return void
-   * @access public
    */
   public function buildQuickForm() {
     $this->addButtons(array(
@@ -97,16 +95,16 @@ class CRM_Campaign_Form_Survey_Delete extends CRM_Core_Form {
    * Process the form when submitted
    *
    * @return void
-   * @access public
    */
   public function postProcess() {
     if ($this->_surveyId) {
       CRM_Campaign_BAO_Survey::del($this->_surveyId);
       CRM_Core_Session::setStatus('', ts("'%1' survey has been deleted.", array(1 => $this->_surveyTitle)), 'success');
       CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/campaign', 'reset=1&subPage=survey'));
-    } else {
+    }
+    else {
       CRM_Core_Error::fatal(ts('Delete action is missing expected survey ID.'));
     }
   }
-}
 
+}