INFRA-132 - Drupal.WhiteSpace.Comma.NoSpace
authorTim Otten <totten@civicrm.org>
Tue, 20 Jan 2015 03:19:56 +0000 (19:19 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 20 Jan 2015 03:19:56 +0000 (19:19 -0800)
api/v3/Generic/Setvalue.php
api/v3/LineItem.php
api/v3/MailingEventQueue.php
tests/phpunit/api/v3/ContributionTest.php

index ce58034bc44a32cbde635e8cddc1ee2def8cad32..ea92e2cdb7c3c38a04038478b6213e5869a4f3a1 100644 (file)
@@ -67,7 +67,7 @@ function civicrm_api3_generic_setValue($apiRequest) {
       break;
 
     case CRM_Utils_Type::T_DATE:
-      $value = CRM_Utils_Type::escape($value,"Date",false);
+      $value = CRM_Utils_Type::escape($value, "Date", false);
       if (!$value)
         return civicrm_api3_create_error("Param '$field' is not a date. format YYYYMMDD or YYYYMMDDHHMMSS");
       break;
index a35b50afedff1ed431e305d266239a95d07297de..2314d7edc95ed48404880c4bd28e512056f6bd47 100644 (file)
@@ -47,7 +47,7 @@
  * {@getfields line_item_create}
  */
 function civicrm_api3_line_item_create($params) {
-  $params = CRM_Contribute_BAO_Contribution::checkTaxAmount($params,True);
+  $params = CRM_Contribute_BAO_Contribution::checkTaxAmount($params, True);
   return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
 }
 
index e1aea37f7044d62cea4659246c4f2b21eb184d30..adada75eb31d70dedf42daf20098b3f49bae2148 100644 (file)
@@ -52,7 +52,7 @@ function civicrm_api3_mailing_event_queue_create($params) {
   }
   civicrm_api3_verify_mandatory($params,
     'CRM_Mailing_DAO_MailingJob',
-    array('job_id','contact_id'),
+    array('job_id', 'contact_id'),
     FALSE
   );
   return _civicrm_api3_basic_create('CRM_Mailing_Event_BAO_Queue', $params);
index b6dafb75b0bc3109304b7fb947d9e9bc2f281af8..bb21ceeb5cb51341ad9425e6893daa20e8f90344 100644 (file)
@@ -460,9 +460,9 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->assertArrayHasKey('payment_instrument', $contribution['values'][0]);
     $this->assertEquals('Cash', $contribution['values'][0]['payment_instrument']);
     $this->assertEquals(1, $contribution['count']);
-    $contribution = $this->callAPISuccess('contribution', 'get',array('sequential' => 1, 'payment_instrument' => 'Cash'));
+    $contribution = $this->callAPISuccess('contribution', 'get', array('sequential' => 1, 'payment_instrument' => 'Cash'));
     $this->assertArrayHasKey('payment_instrument', $contribution['values'][0]);
-    $this->assertEquals('Cash',$contribution['values'][0]['payment_instrument']);
+    $this->assertEquals('Cash', $contribution['values'][0]['payment_instrument']);
     $this->assertEquals(1, $contribution['count']);
     $contribution = $this->callAPISuccess('contribution', 'get', array(
       'sequential' => 1,