Merge pull request #4979 from xurizaemon/codingstandards-12
[civicrm-core.git] / CRM / Event / Form / Task / Delete.php
index a9714d6ca60a2502ad13f26bd2a26db00df8c4be..6f23ff5ab5d7abbbd3c9b5f1590cc10932733781 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -52,9 +52,8 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task {
    * Build all the data structures needed to build the form
    *
    * @return void
-   * @access public
    */
-  function preProcess() {
+  public function preProcess() {
 
     //check for delete
     if (!CRM_Core_Permission::checkActionPermission('CiviEvent', CRM_Core_Action::DELETE)) {
@@ -71,16 +70,15 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task {
   /**
    * Build the form object
    *
-   * @access public
    *
    * @return void
    */
-  function buildQuickForm() {
-    $deleteParticipants = array(1 => ts('Delete this participant record along with associated participant record(s).'),
+  public function buildQuickForm() {
+    $deleteParticipants = array(
+      1 => ts('Delete this participant record along with associated participant record(s).'),
       2 => ts('Delete only this participant record.'),
     );
 
-
     $this->addRadio('delete_participant', NULL, $deleteParticipants, NULL, '<br />');
     $this->setDefaults(array('delete_participant' => 1));
 
@@ -90,7 +88,6 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task {
   /**
    * Process the form after the input has been submitted and validated
    *
-   * @access public
    *
    * @return void
    */
@@ -126,13 +123,17 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task {
       $deletedParticipants += $additionalCount;
     }
 
-    $status = array(ts('Participant(s) Deleted: %1 (Total Selected: %2)', array(1 => $deletedParticipants, 2 => count($this->_participantIds))));
+    $status = array(
+      ts('Participant(s) Deleted: %1 (Total Selected: %2)', array(
+          1 => $deletedParticipants,
+          2 => count($this->_participantIds),
+        )),
+    );
     if (!empty($participantLinks)) {
-      $status[] = ts('The following participants no longer have an event fee recorded. You can edit their registration and record a replacement contribution by clicking the links below:') . '<br>' . $participantLinks;
+      $status[] = ts('The following participants no longer have an event fee recorded. You can edit their registration and record a replacement contribution by clicking the links below:') . '<br/>' . $participantLinks;
     }
     foreach ($status as $text) {
       CRM_Core_Session::setStatus($text, '', 'info');
     }
   }
 }
-