phpcs fixes
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 17 Mar 2015 04:42:36 +0000 (17:42 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 17 Mar 2015 04:42:36 +0000 (17:42 +1300)
CRM/Batch/Form/Batch.php
api/v3/Case.php
api/v3/Contribution.php

index c638178ecf84a994aed2ce5fec237bfc173fe7cd..2c9c2d997de78111f104a9070621408e8651c96d 100755 (executable)
  */
 
 /**
- *
- * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
- */
-
-/**
- * This class generates form components for batch entry
- *
+ * This class generates form components for batch entry.
  */
 class CRM_Batch_Form_Batch extends CRM_Admin_Form {
 
+  /**
+   * PreProcess function.
+   */
   public function preProcess() {
     parent::preProcess();
-    // set the usercontext
+    // Set the user context.
     $session = CRM_Core_Session::singleton();
     $session->replaceUserContext(CRM_Utils_System::url('civicrm/batch', "reset=1"));
   }
 
   /**
    * Build the form object.
-   *
-   * @return void
    */
   public function buildQuickForm() {
     parent::buildQuickForm();
@@ -77,15 +69,12 @@ class CRM_Batch_Form_Batch extends CRM_Admin_Form {
 
   /**
    * Set default values for the form.
-   *
-   *
-   * @return void
    */
   public function setDefaultValues() {
     $defaults = array();
 
     if ($this->_action & CRM_Core_Action::ADD) {
-      // set batch name default
+      // Set batch name default.
       $defaults['title'] = CRM_Batch_BAO_Batch::generateBatchName();
     }
     else {
@@ -96,9 +85,6 @@ class CRM_Batch_Form_Batch extends CRM_Admin_Form {
 
   /**
    * Process the form submission.
-   *
-   *
-   * @return void
    */
   public function postProcess() {
     $params = $this->controller->exportValues($this->_name);
index a7fe9c4d52cd644c680a09bfa72e543a9ffd1fd8..4621a82d0af8060a7b89ef1ebed0899a84d4e255 100644 (file)
@@ -37,6 +37,7 @@
  * Open a new case, add client and manager roles, and standard timeline.
  *
  * @param array $params
+ *
  * @code
  * //REQUIRED:
  * 'case_type_id' => int OR
@@ -366,6 +367,7 @@ function civicrm_api3_case_update($params) {
  * Delete a specified case.
  *
  * @param array $params
+ *
  * @code
  *   //REQUIRED:
  *   'id' => int
index cf6c5f0b6b5fdebe1f2335d5be1fa81c0af6de2e..718560d99076bb2cb12bb5dd9bf46f7480c3984f 100644 (file)
@@ -527,7 +527,7 @@ function _ipn_process_transaction(&$params, $contribution, $input, $ids, $firstC
     static $domainFromName;
     static $domainFromEmail;
     if (empty($domainFromEmail) && (empty($params['receipt_from_name']) || empty($params['receipt_from_email']))) {
-      list($domainFromName, $domainFromEmail) =  CRM_Core_BAO_Domain::getNameAndEmail(TRUE);
+      list($domainFromName, $domainFromEmail) = CRM_Core_BAO_Domain::getNameAndEmail(TRUE);
     }
     $input['receipt_from_name'] = CRM_Utils_Array::value('receipt_from_name', $params, $domainFromName);
     $input['receipt_from_email'] = CRM_Utils_Array::value('receipt_from_email', $params, $domainFromEmail);