INFRA-132 - Civi - PHPStorm cleanup
[civicrm-core.git] / CRM / Event / Form / Task / PickProfile.php
index caa0801e123d2d397e86556db8974ed3d92b8155..932b05b95c13c0687ccaad2db9f87a76cecd0b30 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -47,13 +47,11 @@ class CRM_Event_Form_Task_PickProfile extends CRM_Event_Form_Task {
 
   /**
    * Maximum event participations that should be allowed to update
-   *
    */
   protected $_maxParticipations = 100;
 
   /**
    * Variable to store redirect path
-   *
    */
   protected $_userContext;
 
@@ -61,9 +59,8 @@ class CRM_Event_Form_Task_PickProfile extends CRM_Event_Form_Task {
    * Build all the data structures needed to build the form
    *
    * @return void
-   * @access public
    */
-  function preProcess() {
+  public function preProcess() {
     // initialize the task and row fields
     parent::preProcess();
 
@@ -88,11 +85,10 @@ class CRM_Event_Form_Task_PickProfile extends CRM_Event_Form_Task {
   /**
    * Build the form object
    *
-   * @access public
    *
    * @return void
    */
-  function buildQuickForm() {
+  public function buildQuickForm() {
     $types = array('Participant');
     $profiles = CRM_Core_BAO_UFGroup::getProfiles($types, TRUE);
 
@@ -105,37 +101,36 @@ class CRM_Event_Form_Task_PickProfile extends CRM_Event_Form_Task {
       array(
         '' => ts('- select profile -')) + $profiles, TRUE
     );
-    $this->addDefaultButtons(ts('Continue >>'));
+    $this->addDefaultButtons(ts('Continue'));
   }
 
   /**
    * Add local and global form rules
    *
-   * @access protected
    *
    * @return void
    */
-  function addRules() {
+  public function addRules() {
     $this->addFormRule(array('CRM_Event_Form_Task_PickProfile', 'formRule'));
   }
 
   /**
    * Global validation rules for the form
    *
-   * @param array $fields posted values of the form
+   * @param array $fields
+   *   Posted values of the form.
    *
-   * @return array list of errors to be posted back to the form
+   * @return array
+   *   list of errors to be posted back to the form
    * @static
-   * @access public
    */
-  static function formRule($fields) {
+  public static function formRule($fields) {
     return TRUE;
   }
 
   /**
    * Process the form after the input has been submitted and validated
    *
-   * @access public
    *
    * @return void
    */
@@ -148,4 +143,3 @@ class CRM_Event_Form_Task_PickProfile extends CRM_Event_Form_Task {
     $this->controller->resetPage('Batch');
   }
 }
-