Merge pull request #4971 from kurund/batch-16
[civicrm-core.git] / CRM / PCP / Form / PCPAccount.php
index 091c5babbc5200fb7d5ca1ef875cf54bb3c0d9f2..9c4447f06c297c17114b7acfc1b169e49e30cee5 100644 (file)
@@ -41,7 +41,6 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form {
 
   /**
    * Variable defined for Contribution Page Id
-   *
    */
 
   public $_pageId = NULL;
@@ -64,12 +63,12 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form {
 
 
   public function preProcess() {
-    $session          = CRM_Core_Session::singleton();
-    $config           = CRM_Core_Config::singleton();
-    $this->_action    = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE);
-    $this->_pageId    = CRM_Utils_Request::retrieve('pageId', 'Positive', $this);
+    $session = CRM_Core_Session::singleton();
+    $config = CRM_Core_Config::singleton();
+    $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE);
+    $this->_pageId = CRM_Utils_Request::retrieve('pageId', 'Positive', $this);
     $this->_component = CRM_Utils_Request::retrieve('component', 'String', $this);
-    $this->_id        = CRM_Utils_Request::retrieve('id', 'Positive', $this);
+    $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
 
     if (!$this->_pageId && $config->userFramework == 'Joomla' && $config->userFrameworkFrontend) {
       $this->_pageId = $this->_id;
@@ -196,7 +195,7 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form {
     if ($this->_single) {
       $button = array(
         array(
-      'type' => 'next',
+          'type' => 'next',
           'name' => ts('Save'),
           'spacing' => '         ',
           'isDefault' => TRUE,
@@ -229,8 +228,8 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form {
    * @param $self
    *
    *
-   * @return true if no errors, else array of errors
-   * @static
+   * @return bool|array
+   *   true if no errors, else array of errors
    */
   public static function formRule($fields, $files, $self) {
     $errors = array();