INFRA-132 - Trailing commas for multiline arrays
authorTim Otten <totten@civicrm.org>
Fri, 9 Jan 2015 00:06:46 +0000 (16:06 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 9 Jan 2015 00:06:46 +0000 (16:06 -0800)
295 files changed:
CRM/Activity/BAO/Activity.php
CRM/Activity/BAO/ActivityContact.php
CRM/Activity/Form/Activity.php
CRM/Activity/Import/Form/MapField.php
CRM/Activity/Import/Parser/Activity.php
CRM/Activity/Page/AJAX.php
CRM/Admin/Form/LabelFormats.php
CRM/Admin/Form/Options.php
CRM/Admin/Form/PaymentProcessor.php
CRM/Admin/Form/Preferences/Event.php
CRM/Admin/Form/ScheduleReminders.php
CRM/Admin/Form/Setting.php
CRM/Admin/Form/Setting/Url.php
CRM/Admin/Page/AJAX.php
CRM/Admin/Page/Options.php
CRM/Badge/BAO/Badge.php
CRM/Badge/Form/Layout.php
CRM/Batch/BAO/Batch.php
CRM/Batch/Form/Entry.php
CRM/Campaign/BAO/Petition.php
CRM/Campaign/BAO/Survey.php
CRM/Campaign/Form/Petition.php
CRM/Campaign/Form/Survey/Questions.php
CRM/Campaign/Form/Survey/Results.php
CRM/Campaign/Form/Task/Interview.php
CRM/Case/BAO/Case.php
CRM/Case/Form/Activity.php
CRM/Case/Form/Activity/ChangeCaseStatus.php
CRM/Case/ManagedEntities.php
CRM/Contact/BAO/Contact.php
CRM/Contact/BAO/Group.php
CRM/Contact/BAO/GroupContactCache.php
CRM/Contact/BAO/ProximityQuery.php
CRM/Contact/BAO/Query.php
CRM/Contact/BAO/Relationship.php
CRM/Contact/Form/DedupeRules.php
CRM/Contact/Form/Merge.php
CRM/Contact/Form/ProfileContact.php
CRM/Contact/Form/Relationship.php
CRM/Contact/Form/Search/Criteria.php
CRM/Contact/Form/Task/PDFLetterCommon.php
CRM/Contact/Page/AJAX.php
CRM/Contact/Page/ImageFile.php
CRM/Contact/Page/View/Summary.php
CRM/Contact/Selector.php
CRM/Contribute/BAO/Contribution.php
CRM/Contribute/BAO/ContributionPage.php
CRM/Contribute/BAO/ContributionRecur.php
CRM/Contribute/BAO/ContributionSoft.php
CRM/Contribute/Form/AbstractEditPayment.php
CRM/Contribute/Form/AdditionalInfo.php
CRM/Contribute/Form/AdditionalPayment.php
CRM/Contribute/Form/CancelSubscription.php
CRM/Contribute/Form/Contribution.php
CRM/Contribute/Form/Contribution/Confirm.php
CRM/Contribute/Form/ContributionPage/Settings.php
CRM/Contribute/Form/Task/Invoice.php
CRM/Contribute/Form/Task/PDFLetterCommon.php
CRM/Contribute/Form/UpdateBilling.php
CRM/Contribute/Form/UpdateSubscription.php
CRM/Contribute/Import/Form/MapField.php
CRM/Contribute/Import/Parser/Contribution.php
CRM/Contribute/Selector/Search.php
CRM/Core/BAO/Address.php
CRM/Core/BAO/Block.php
CRM/Core/BAO/CMSUser.php
CRM/Core/BAO/CustomField.php
CRM/Core/BAO/CustomGroup.php
CRM/Core/BAO/CustomValueTable.php
CRM/Core/BAO/Domain.php
CRM/Core/BAO/File.php
CRM/Core/BAO/FinancialTrxn.php
CRM/Core/BAO/Mapping.php
CRM/Core/BAO/SchemaHandler.php
CRM/Core/BAO/UFField.php
CRM/Core/BAO/UFGroup.php
CRM/Core/BAO/UFMatch.php
CRM/Core/ClassLoader.php
CRM/Core/Config.php
CRM/Core/Form.php
CRM/Core/Form/RecurringEntity.php
CRM/Core/InnoDBIndexer.php
CRM/Core/ManagedEntities.php
CRM/Core/Payment.php
CRM/Core/Payment/PayPalProIPN.php
CRM/Core/Payment/Realex.php
CRM/Core/Permission.php
CRM/Core/Reference/Basic.php
CRM/Core/Reference/Dynamic.php
CRM/Core/SelectValues.php
CRM/Custom/Form/Group.php
CRM/Custom/Form/MoveField.php
CRM/Dedupe/Merger.php
CRM/Event/BAO/Event.php
CRM/Event/BAO/Participant.php
CRM/Event/Form/ManageEvent/Fee.php
CRM/Event/Form/ManageEvent/Repeat.php
CRM/Event/Form/Participant.php
CRM/Event/Form/ParticipantFeeSelection.php
CRM/Event/Form/Registration/Register.php
CRM/Event/Form/Task/Batch.php
CRM/Event/Import/Parser/Participant.php
CRM/Event/Page/ManageEvent.php
CRM/Export/BAO/Export.php
CRM/Extension/Downloader.php
CRM/Financial/BAO/PaymentProcessor.php
CRM/Financial/Form/BatchTransaction.php
CRM/Financial/Form/FinancialAccount.php
CRM/Financial/Form/FinancialTypeAccount.php
CRM/Financial/Form/Search.php
CRM/Financial/Page/AJAX.php
CRM/Financial/Page/BatchTransaction.php
CRM/Friend/BAO/Friend.php
CRM/Logging/ReportSummary.php
CRM/Logging/Schema.php
CRM/Mailing/BAO/Mailing.php
CRM/Mailing/BAO/Query.php
CRM/Mailing/Form/Component.php
CRM/Mailing/Form/Group.php
CRM/Mailing/Selector/Search.php
CRM/Member/BAO/Membership.php
CRM/Member/Form.php
CRM/Member/Form/Membership.php
CRM/Member/Form/MembershipConfig.php
CRM/Member/Form/MembershipRenewal.php
CRM/Member/Form/MembershipType.php
CRM/Member/Form/MembershipView.php
CRM/PCP/BAO/PCP.php
CRM/Price/BAO/LineItem.php
CRM/Price/Page/Field.php
CRM/Price/Page/Set.php
CRM/Profile/Form.php
CRM/Profile/Page/MultipleRecordFieldsListing.php
CRM/Report/Form.php
CRM/Report/Form/Activity.php
CRM/Report/Form/ActivitySummary.php
CRM/Report/Form/Campaign/SurveyDetails.php
CRM/Report/Form/Case/Demographics.php
CRM/Report/Form/Case/Detail.php
CRM/Report/Form/Case/Summary.php
CRM/Report/Form/Case/TimeSpent.php
CRM/Report/Form/Contact/CurrentEmployer.php
CRM/Report/Form/Contact/Detail.php
CRM/Report/Form/Contact/Relationship.php
CRM/Report/Form/Contact/Summary.php
CRM/Report/Form/Contribute/Bookkeeping.php
CRM/Report/Form/Contribute/Detail.php
CRM/Report/Form/Contribute/History.php
CRM/Report/Form/Contribute/HouseholdSummary.php
CRM/Report/Form/Contribute/Lybunt.php
CRM/Report/Form/Contribute/PCP.php
CRM/Report/Form/Contribute/Recur.php
CRM/Report/Form/Contribute/Repeat.php
CRM/Report/Form/Contribute/SoftCredit.php
CRM/Report/Form/Contribute/Summary.php
CRM/Report/Form/Contribute/Sybunt.php
CRM/Report/Form/Contribute/TopDonor.php
CRM/Report/Form/Event/IncomeCountSummary.php
CRM/Report/Form/Event/ParticipantListCount.php
CRM/Report/Form/Event/ParticipantListing.php
CRM/Report/Form/Event/Summary.php
CRM/Report/Form/Extended.php
CRM/Report/Form/Grant/Detail.php
CRM/Report/Form/Grant/Statistics.php
CRM/Report/Form/Instance.php
CRM/Report/Form/Mailing/Bounce.php
CRM/Report/Form/Mailing/Clicks.php
CRM/Report/Form/Mailing/Detail.php
CRM/Report/Form/Mailing/Opened.php
CRM/Report/Form/Member/ContributionDetail.php
CRM/Report/Form/Member/Detail.php
CRM/Report/Form/Member/Lapse.php
CRM/Report/Form/Membership/Summary.php
CRM/Report/Form/Pledge/Detail.php
CRM/Report/Form/Pledge/Pbnp.php
CRM/Report/Form/Walklist/Walklist.php
CRM/Report/Utils/Report.php
CRM/SMS/Provider.php
CRM/UF/Form/Preview.php
CRM/Upgrade/Form.php
CRM/Upgrade/Incremental/Legacy.php
CRM/Upgrade/Incremental/php/FourFour.php
CRM/Upgrade/Incremental/php/FourThree.php
CRM/Upgrade/Incremental/php/FourTwo.php
CRM/Utils/Geocode/Yahoo.php
CRM/Utils/HttpClient.php
CRM/Utils/Migrate/Export.php
CRM/Utils/Migrate/ExportJSON.php
CRM/Utils/Migrate/Import.php
CRM/Utils/Rule.php
api/v3/Attachment.php
api/v3/Constant.php
api/v3/Contact.php
api/v3/Contribution.php
api/v3/Domain.php
api/v3/GroupContact.php
api/v3/Job.php
api/v3/Mailing.php
api/v3/MailingAB.php
api/v3/MailingContact.php
api/v3/Membership.php
api/v3/Pledge.php
api/v3/Profile.php
api/v3/Setting.php
settings/Event.setting.php
tests/phpunit/CRM/Case/BAO/CaseTypeForkTest.php
tests/phpunit/CRM/Contact/BAO/QueryTest.php
tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php
tests/phpunit/CRM/Core/BAO/SettingTest.php
tests/phpunit/CRM/Core/BAO/UFFieldTest.php
tests/phpunit/CRM/Core/CommunityMessagesTest.php
tests/phpunit/CRM/Core/Config/MailerTest.php
tests/phpunit/CRM/Core/InnoDBIndexerTest.php
tests/phpunit/CRM/Core/ManagedEntitiesTest.php
tests/phpunit/CRM/Core/Page/RedirectTest.php
tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php
tests/phpunit/CRM/Core/Payment/BaseIPNTest.php
tests/phpunit/CRM/Core/Payment/PayPalProIPNTest.php
tests/phpunit/CRM/Core/Permission/JoomlaTest.php
tests/phpunit/CRM/Core/RegionTest.php
tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php
tests/phpunit/CRM/Extension/Container/BasicTest.php
tests/phpunit/CRM/Member/Import/Parser/MembershipTest.php
tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php
tests/phpunit/CRM/Utils/API/MatchOptionTest.php
tests/phpunit/CRM/Utils/API/ReloadOptionTest.php
tests/phpunit/CRM/Utils/ArrayTest.php
tests/phpunit/CRM/Utils/Migrate/ImportExportTest.php
tests/phpunit/CRM/Utils/SQL/InsertTest.php
tests/phpunit/CRM/Utils/SQL/SelectTest.php
tests/phpunit/CRM/Utils/versionCheckTest.php
tests/phpunit/Civi/API/Subscriber/DynamicFKAuthorizationTest.php
tests/phpunit/Civi/API/Subscriber/TransactionSubscriberTest.php
tests/phpunit/CiviTest/CiviCaseTestCase.php
tests/phpunit/CiviTest/CiviSeleniumTestCase.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/WebTest/Activity/StandaloneAddTest.php
tests/phpunit/WebTest/Campaign/CampaignDescriptionTest.php
tests/phpunit/WebTest/Contact/AddressParsingTest.php
tests/phpunit/WebTest/Contact/MergeContactsTest.php
tests/phpunit/WebTest/Contact/RelationshipAddTest.php
tests/phpunit/WebTest/Contact/SearchBuilderTest.php
tests/phpunit/WebTest/Contribute/AddBatchesTest.php
tests/phpunit/WebTest/Contribute/OfflineContributionTest.php
tests/phpunit/WebTest/Contribute/OnlineContributionTest.php
tests/phpunit/WebTest/Contribute/StandaloneAddTest.php
tests/phpunit/WebTest/Event/AddParticipationTest.php
tests/phpunit/WebTest/Event/AddPricesetTest.php
tests/phpunit/WebTest/Export/ContactTest.php
tests/phpunit/WebTest/Financial/FinancialAccountTest.php
tests/phpunit/WebTest/Financial/FinancialBatchExport.php
tests/phpunit/WebTest/Grant/CustomFieldsetTest.php
tests/phpunit/WebTest/Mailing/MailingTest.php
tests/phpunit/WebTest/Member/InheritedMembershipTest.php
tests/phpunit/WebTest/Member/StandaloneAddTest.php
tests/phpunit/WebTest/Profile/BatchUpdateTest.php
tests/phpunit/WebTest/Profile/MultiRecordProfileAddTest.php
tests/phpunit/WebTest/Profile/ProfileAddTest.php
tests/phpunit/WebTest/Report/LoggingReportTest.php
tests/phpunit/WebTest/Report/RolePermissionReportTest.php
tests/phpunit/WebTest/Utils/RestTest.php
tests/phpunit/api/v3/ACLPermissionTest.php
tests/phpunit/api/v3/ActionScheduleTest.php
tests/phpunit/api/v3/ActivityTest.php
tests/phpunit/api/v3/AddressTest.php
tests/phpunit/api/v3/AttachmentTest.php
tests/phpunit/api/v3/CRM11793Test.php
tests/phpunit/api/v3/CaseTypeTest.php
tests/phpunit/api/v3/ContactTest.php
tests/phpunit/api/v3/ContributionPageTest.php
tests/phpunit/api/v3/ContributionTest.php
tests/phpunit/api/v3/DashboardContactTest.php
tests/phpunit/api/v3/DomainTest.php
tests/phpunit/api/v3/JobTest.php
tests/phpunit/api/v3/MailingABTest.php
tests/phpunit/api/v3/MailingTest.php
tests/phpunit/api/v3/MembershipTest.php
tests/phpunit/api/v3/MessageTemplateTest.php
tests/phpunit/api/v3/OptionValueTest.php
tests/phpunit/api/v3/ParticipantTest.php
tests/phpunit/api/v3/PledgeTest.php
tests/phpunit/api/v3/PriceFieldValueTest.php
tests/phpunit/api/v3/ProfileTest.php
tests/phpunit/api/v3/RelationshipTest.php
tests/phpunit/api/v3/ReportTemplateTest.php
tests/phpunit/api/v3/SettingTest.php
tests/phpunit/api/v3/SurveyRespondantTest.php
tests/phpunit/api/v3/SyntaxConformanceTest.php
tests/phpunit/api/v3/SystemTest.php
tests/phpunit/api/v3/TagTest.php
tests/phpunit/api/v3/TaxContributionPageTest.php
tests/phpunit/api/v3/UFGroupTest.php
tests/phpunit/api/v3/UtilsTest.php
tests/phpunit/api/v3/WebsiteTest.php
tests/qunit/crm-translate/test.php

index 1324e97092af0687e0722a64b44550d1cd550bd7..00d06152c2625f936bf26352f7215f9f2c47606a 100644 (file)
@@ -351,7 +351,7 @@ class CRM_Activity_BAO_Activity extends CRM_Activity_DAO_Activity {
       $acParams = array(
         'activity_id' => $activityId,
         'contact_id' => $params['source_contact_id'],
-        'record_type_id' => $sourceID
+        'record_type_id' => $sourceID,
       );
       self::deleteActivityContact($activityId, $sourceID);
       CRM_Activity_BAO_ActivityContact::create($acParams);
@@ -1564,7 +1564,7 @@ LEFT JOIN civicrm_activity_contact src ON (src.activity_id = ac.activity_id AND
     $activityTargetParams = array(
       'activity_id' => $activityID,
       'contact_id' => $toID,
-      'record_type_id' => $targetID
+      'record_type_id' => $targetID,
     );
     CRM_Activity_BAO_ActivityContact::create($activityTargetParams);
 
@@ -1648,7 +1648,7 @@ LEFT JOIN civicrm_activity_contact src ON (src.activity_id = ac.activity_id AND
     $activityTargetParams = array(
       'activity_id' => $activityID,
       'contact_id' => $toID,
-      'record_type_id' => $targetID
+      'record_type_id' => $targetID,
     );
     CRM_Activity_BAO_ActivityContact::create($activityTargetParams);
     return TRUE;
@@ -2182,7 +2182,7 @@ AND cl.modified_id  = c.id
           'case_recent_activity_date' => array('title' => ts('Activity Actual Date'), 'type' => CRM_Utils_Type::T_DATE),
           'case_scheduled_activity_date' => array(
             'title' => ts('Activity Scheduled Date'),
-            'type' => CRM_Utils_Type::T_DATE
+            'type' => CRM_Utils_Type::T_DATE,
           ),
           'case_recent_activity_type' => array('title' => ts('Activity Type'), 'type' => CRM_Utils_Type::T_STRING),
           'case_activity_status' => array('title' => ts('Activity Status'), 'type' => CRM_Utils_Type::T_STRING),
@@ -2191,7 +2191,7 @@ AND cl.modified_id  = c.id
           'case_activity_details' => array('title' => ts('Activity Details'), 'type' => CRM_Utils_Type::T_TEXT),
           'case_activity_is_auto' => array(
             'title' => ts('Activity Auto-generated?'),
-            'type' => CRM_Utils_Type::T_BOOLEAN
+            'type' => CRM_Utils_Type::T_BOOLEAN,
           ),
         );
 
index 106144f505c02cc57d793f5424e760793beb692e..f6bfceaad187905cf3c9f737e12cde5d9213e26b 100644 (file)
@@ -93,7 +93,7 @@ AND        contact_a.is_deleted = 0
 ";
     $params = array(
       1 => array($activityID, 'Integer'),
-      2 => array($recordTypeID, 'Integer')
+      2 => array($recordTypeID, 'Integer'),
     );
 
     $dao = CRM_Core_DAO::executeQuery($query, $params);
@@ -130,7 +130,7 @@ AND        civicrm_contact.is_deleted = 0
 ";
     $params = array(
       1 => array($activityID, 'Integer'),
-      2 => array($recordTypeID, 'Integer')
+      2 => array($recordTypeID, 'Integer'),
     );
 
     $dao = CRM_Core_DAO::executeQuery($sql, $params);
index ffb4e76678252b9bfb9e1e375b31df3dd2e4b67f..7dfd55927a1648fb747df1f7f551bbc0a4a3b58a 100644 (file)
@@ -146,14 +146,14 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
         'type' => 'text',
         'label' => ts('Location'),
         'attributes' => CRM_Core_DAO::getAttribute('CRM_Activity_DAO_Activity', 'location'),
-        'required' => FALSE
+        'required' => FALSE,
       ),
       'details' => array(
         'type' => 'wysiwyg',
         'label' => ts('Details'),
         // forces a smaller edit window
         'attributes' => array('rows' => 4, 'cols' => 60),
-        'required' => FALSE
+        'required' => FALSE,
       ),
       'status_id' => array(
         'type' => 'select',
@@ -166,12 +166,12 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
       'source_contact_id' => array(
         'type' => 'entityRef',
         'label' => ts('Added By'),
-        'required' => FALSE
+        'required' => FALSE,
       ),
       'target_contact_id' => array(
         'type' => 'entityRef',
         'label' => ts('With Contact'),
-        'attributes' => array('multiple' => TRUE, 'create' => TRUE)
+        'attributes' => array('multiple' => TRUE, 'create' => TRUE),
       ),
       'assignee_contact_id' => array(
         'type' => 'entityRef',
@@ -195,8 +195,8 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
         'label' => ts('Subject'),
         'attributes' => CRM_Core_DAO::getAttribute('CRM_Activity_DAO_Activity',
           'subject'
-        )
-      )
+        ),
+      ),
     );
 
     if (($this->_context == 'standalone') &&
@@ -279,7 +279,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
     if ($this->_activityId &&
       in_array($this->_action, array(
         CRM_Core_Action::UPDATE,
-        CRM_Core_Action::VIEW
+        CRM_Core_Action::VIEW,
       )) &&
       !CRM_Activity_BAO_Activity::checkPermission($this->_activityId, $this->_action)
     ) {
@@ -417,7 +417,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
       'standalone',
       'home',
       'dashlet',
-      'dashletFullscreen'
+      'dashletFullscreen',
     ))
     ) {
       $urlParams = 'reset=1';
@@ -610,12 +610,12 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
           'type' => 'next',
           'name' => $button,
           'spacing' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;',
-          'isDefault' => TRUE
+          'isDefault' => TRUE,
         ),
         array(
           'type' => 'cancel',
-          'name' => ts('Cancel')
-        )
+          'name' => ts('Cancel'),
+        ),
       ));
       return;
     }
@@ -765,7 +765,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
       $buttons = array();
       $buttons[] = array(
         'type' => 'cancel',
-        'name' => ts('Done')
+        'name' => ts('Done'),
       );
       $this->addButtons($buttons);
     }
@@ -780,12 +780,12 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
             'type' => 'upload',
             'name' => ts('Save'),
             'js' => $js,
-            'isDefault' => TRUE
+            'isDefault' => TRUE,
           ),
           array(
             'type' => 'cancel',
-            'name' => ts('Cancel')
-          )
+            'name' => ts('Cancel'),
+          ),
         )
       );
     }
@@ -875,7 +875,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
       // delete tags for the entity
       $tagParams = array(
         'entity_table' => 'civicrm_activity',
-        'entity_id' => $this->_activityId
+        'entity_id' => $this->_activityId,
       );
 
       CRM_Core_BAO_EntityTag::del($tagParams);
@@ -987,7 +987,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
         ),
         'linkedColumns' => array('activity_id'),
         'isRecurringEntityRecord' => FALSE,
-      )
+      ),
     );
     CRM_Core_Form_RecurringEntity::postProcess($params, 'civicrm_activity', $linkedEntities);
 
@@ -1129,7 +1129,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
       array(
         1 => $subject,
         2 => $followupStatus,
-        3 => $mailStatus
+        3 => $mailStatus,
       )
     ), ts('Saved'), 'success');
 
index 6b10ff32fa2aa64402f50fcf436c2e1280b5b26c..7ee9c42ce329d6027fa9b1fd2025712459084979 100644 (file)
@@ -325,7 +325,7 @@ class CRM_Activity_Import_Form_MapField extends CRM_Import_Form_MapField {
               $errors['_qf_default'] .= ts('Missing required field: Provide %1 or %2',
                 array(
                   1 => $title,
-                  2 => 'Activity Type Label'
+                  2 => 'Activity Type Label',
                 )) . '<br />';
             }
           }
index 9748f71f1de41639cfda6c38ba9f3dedad36d2fa..bdd45567e0279429d313cc4daf97bb74330f2057 100644 (file)
@@ -82,7 +82,7 @@ class CRM_Activity_Import_Parser_Activity extends CRM_Activity_Import_Parser {
       'activity_label' => array(
         'title' => ts('Activity Type Label'),
         'headerPattern' => '/(activity.)?type label?/i',
-      )
+      ),
     ));
 
     foreach ($fields as $name => $field) {
index 7ae6a638da6bb127cd5599c348c18b5f8bd8ff56..5d35324ae3588b78c2972fd270a57f469696394c 100644 (file)
@@ -118,7 +118,7 @@ class CRM_Activity_Page_AJAX {
       0 => 'relation',
     1 => 'name',
     2 => 'phone',
-    3 => 'email'
+    3 => 'email',
     );
 
     $sEcho     = CRM_Utils_Type::escape($_REQUEST['sEcho'], 'Integer');
@@ -183,7 +183,7 @@ class CRM_Activity_Page_AJAX {
     1 => 'name',
     2 => 'phone',
     3 => 'email',
-    4 => 'actions'
+    4 => 'actions',
     );
 
     $sEcho     = CRM_Utils_Type::escape($_REQUEST['sEcho'], 'Integer');
@@ -374,7 +374,7 @@ class CRM_Activity_Page_AJAX {
       }
       else {
         $otherActivity->subject = ts('(Filed on case %1)', array(
-            1 => $params['caseID']
+            1 => $params['caseID'],
           )) . ' ' . $otherActivity->subject;
       }
       $otherActivity->activity_date_time = $actDateTime;
@@ -398,7 +398,7 @@ class CRM_Activity_Page_AJAX {
     $src_params = array(
       'activity_id' => $mainActivityId,
       'contact_id' => $sourceContactID,
-      'record_type_id' => $sourceID
+      'record_type_id' => $sourceID,
     );
     CRM_Activity_BAO_ActivityContact::create($src_params);
 
@@ -406,7 +406,7 @@ class CRM_Activity_Page_AJAX {
       $targ_params = array(
         'activity_id' => $mainActivityId,
         'contact_id' => $value,
-        'record_type_id' => $targetID
+        'record_type_id' => $targetID,
       );
       CRM_Activity_BAO_ActivityContact::create($targ_params);
     }
@@ -420,7 +420,7 @@ class CRM_Activity_Page_AJAX {
       $assigneeParams = array(
         'activity_id' => $mainActivityId,
         'contact_id' => $value,
-        'record_type_id' => $assigneeID
+        'record_type_id' => $assigneeID,
       );
       CRM_Activity_BAO_ActivityContact::create($assigneeParams);
     }
index b7dadd2c2ceceb5d86dbdc536bee450f8d5c8e41..3548ef1a59cae65c9bc80e1b0dee8b0c79f8ebcc 100644 (file)
@@ -103,16 +103,16 @@ class CRM_Admin_Form_LabelFormats extends CRM_Admin_Form {
 
     $this->add('select', 'paper_size', ts('Sheet Size'),
       array(
-        0 => ts('- default -')
+        0 => ts('- default -'),
       ) + CRM_Core_BAO_PaperSize::getList(TRUE), FALSE,
       array(
-        'onChange' => "selectPaper( this.value );"
+        'onChange' => "selectPaper( this.value );",
       ) + $disabled
     );
     $this->add('static', 'paper_dimensions', NULL, ts('Sheet Size (w x h)'));
     $this->add('select', 'orientation', ts('Orientation'), CRM_Core_BAO_LabelFormat::getPageOrientations(), FALSE,
       array(
-        'onChange' => "updatePaperDimensions();"
+        'onChange' => "updatePaperDimensions();",
       ) + $disabled
     );
     $this->add('select', 'font_name', ts('Font Name'), CRM_Core_BAO_LabelFormat::getFontNames($this->_group));
@@ -137,7 +137,7 @@ class CRM_Admin_Form_LabelFormats extends CRM_Admin_Form {
 
     $this->addRule('label', ts('Name already exists in Database.'), 'objectExists', array(
       'CRM_Core_BAO_LabelFormat',
-      $this->_id
+      $this->_id,
     ));
     $this->addRule('NX', ts('Must be an integer'), 'integer');
     $this->addRule('NY', ts('Must be an integer'), 'integer');
index a77b1032d2df2ac4dddd9c013b212cf45a4bafdd..1f03724d38bde4b740b0386a8a6d8ec05d3a9e04 100644 (file)
@@ -431,7 +431,7 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
           'entity_table' => 'civicrm_option_value',
           'entity_id' => $optionValue->id,
           'account_relationship' => $relationTypeId,
-          'financial_account_id' => $params['financial_account_id']
+          'financial_account_id' => $params['financial_account_id'],
         );
         CRM_Financial_BAO_FinancialTypeAccount::add($params);
       }
index 6132f673714218b4c261d15ab84b6f142ae28631..95fabcbf230e89d6b8eafbcb26c7e83d6a2806d5 100644 (file)
@@ -406,7 +406,7 @@ class CRM_Admin_Form_PaymentProcessor extends CRM_Admin_Form {
       'entity_table' => 'civicrm_payment_processor',
       'entity_id' => $dao->id,
       'account_relationship' => $relationTypeId,
-      'financial_account_id' => $values['financial_account_id']
+      'financial_account_id' => $values['financial_account_id'],
     );
     CRM_Financial_BAO_FinancialTypeAccount::add($params);
   }
index ec63a66969a9221b7a8595847ae06d86b38b4178..6af7cbd18d741235e63ea6ad66d3e3ccb6fcfeb2 100644 (file)
@@ -61,8 +61,8 @@ class CRM_Admin_Form_Preferences_Event extends CRM_Admin_Form_Preferences {
           'title' => ts('Dashboard entries'),
           'weight' => 2,
           'description' => ts('Configure how many events should be shown on the dashboard. This overrides the default value of 10 entries.'),
-          'option_values' => array('' => ts('- select -')) + $optionValues + array(-1 => ts('show all'))
-        )
+          'option_values' => array('' => ts('- select -')) + $optionValues + array(-1 => ts('show all')),
+        ),
       ),
     );
 
index 9bd699683d4753024e8ac4d79b3badd689be8c80..352d35a99d15e2c658ad4eca71c30459680b85c2 100644 (file)
@@ -306,12 +306,12 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form {
     $recipientKind = array(
       'participant_role' => array(
         'name' => 'participant role',
-        'target_id' => 'recipient_listing'
+        'target_id' => 'recipient_listing',
       ),
       'manual' => array(
         'name' => 'recipient',
-        'target_id' => 'recipient_manual_id'
-      )
+        'target_id' => 'recipient_manual_id',
+      ),
     );
     if (!empty($fields['limit_to']) && array_key_exists($fields['recipient'], $recipientKind) && empty($fields[$recipientKind[$fields['recipient']]['target_id']])) {
       $errors[$recipientKind[$fields['recipient']]['target_id']] = ts('If "Also include" or "Limit to" are selected, you must specify at least one %1', array(1 => $recipientKind[$fields['recipient']]['name']));
index 10219f991c85bb3c02b38d450ae1cd30c5696dbb..ca40d9c33a25bb5d2f1bc5344bc2d512774d438e 100644 (file)
@@ -100,7 +100,7 @@ class CRM_Admin_Form_Setting extends CRM_Core_Form {
           'version' => 3,
           'name' => $setting,
           'group' => $group,
-          'default_value' => CRM_Utils_Array::value('default', $settingMetaData['values'][$setting])
+          'default_value' => CRM_Utils_Array::value('default', $settingMetaData['values'][$setting]),
           )
         );
       }
index d3f1dc281553078c17338a25a51e3bc8cf933613..cfb5a4d706f53e4c7d6e035d064dfefbbb4fb511 100644 (file)
@@ -50,7 +50,7 @@ class CRM_Admin_Form_Setting_Url extends CRM_Admin_Form_Setting {
   public function buildQuickForm() {
     CRM_Utils_System::setTitle(ts('Settings - Resource URLs'));
     $settingFields = civicrm_api('setting', 'getfields', array(
-      'version' => 3
+      'version' => 3,
     ));
 
     $this->addElement('text', 'userFrameworkResourceURL', ts('CiviCRM Resource URL'));
index b001414bb081a0ebc25eaf473571188dd4b3229f..812e5c6c88bf1ca59a740cb9b99bc08ed45da3a8 100644 (file)
@@ -102,7 +102,7 @@ class CRM_Admin_Page_AJAX {
             $comps = array(
               'Event' => 'civicrm_event',
               'Contribution' => 'civicrm_contribution_page',
-              'EventTemplate' => 'civicrm_event_template'
+              'EventTemplate' => 'civicrm_event_template',
             );
             $contexts = array();
             foreach ($comps as $name => $table) {
index 67d02fa86c3de265f68bf5095acefe366642b1f2..ebbf792b7fb93517161954afd2026d39a6b178dd 100644 (file)
@@ -143,7 +143,7 @@ class CRM_Admin_Page_Options extends CRM_Core_Page_Basic {
           'communication_style',
           'case_status', 'encounter_medium',
           'case_type', 'payment_instrument',
-          'soft_credit_type', 'website_type'
+          'soft_credit_type', 'website_type',
         )
       )) {
       $this->assign('showIsDefault', TRUE);
index f1a0391c0490281970140045fa105cd9a015d0d9..b3e111d2c4ced8dc970ccd647fe996db50f76cdf 100644 (file)
@@ -231,7 +231,7 @@ class CRM_Badge_BAO_Badge {
       'cap' => 'round',
       'join' => 'round',
       'dash' => '2,2',
-      'color' => array(0, 0, 200)
+      'color' => array(0, 0, 200),
     ));
 
     $rowCount = CRM_Badge_Form_Layout::FIELD_ROWCOUNT;
index cea31003591c067b8d08ae68565649ca5649f800..8b6d074d99e79e877114640517abbd63c85c435a 100644 (file)
@@ -54,7 +54,7 @@ class CRM_Badge_Form_Layout extends CRM_Admin_Form {
     $resources = CRM_Core_Resources::singleton();
     $resources->addSetting(
       array(
-        'kcfinderPath' => $config->userFrameworkResourceURL . 'packages' . DIRECTORY_SEPARATOR
+        'kcfinderPath' => $config->userFrameworkResourceURL . 'packages' . DIRECTORY_SEPARATOR,
       )
     );
     $resources->addScriptFile('civicrm', 'templates/CRM/Badge/Form/Layout.js', 1, 'html-header');
@@ -75,7 +75,7 @@ class CRM_Badge_Form_Layout extends CRM_Admin_Form {
       '{event.event_id}' => ts('Event ID'),
       '{event.title}' => ts('Event Title'),
       '{event.start_date}' => ts('Event Start Date'),
-      '{event.end_date}' => ts('Event End Date')
+      '{event.end_date}' => ts('Event End Date'),
     );
     $participantTokens = CRM_Core_SelectValues::participantTokens();
 
index 3a161b4fe9f275e53076d2fe067754aa9e91d898..bac5d257dfd72ab1f2f3efa5b99518abe91cd6dd 100755 (executable)
@@ -469,7 +469,7 @@ class CRM_Batch_BAO_Batch extends CRM_Batch_DAO_Batch {
           'url'   => 'civicrm/file',
           'qs'    => 'reset=1&id=%%fid%%&eid=%%eid%%',
           'title' => ts('Download Batch'),
-        )
+        ),
       );
     }
     else {
@@ -491,7 +491,7 @@ class CRM_Batch_BAO_Batch extends CRM_Batch_DAO_Batch {
           'url' => 'civicrm/batch',
           'qs' => 'action=delete&id=%%id%%',
           'title' => ts('Delete Batch'),
-        )
+        ),
       );
     }
     return $links;
index 7f5c87f6a917e4ce83e107a2d8496fe9581b48dc..d3701e053ef973b7db09f2d77d75645f9c315cfb 100755 (executable)
@@ -175,12 +175,12 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
         array(
           'type' => 'upload',
           'name' => ts('Validate & Process the Batch'),
-          'isDefault' => TRUE
+          'isDefault' => TRUE,
         ),
         array(
           'type' => 'cancel',
           'name' => ts('Save & Continue Later'),
-        )
+        ),
       )
     );
 
@@ -352,7 +352,7 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
         'join_date' => $currentDate,
         'receive_date' => $currentDate,
         'receive_date_time' => $currentTime,
-        'contribution_status_id' => $completeStatus
+        'contribution_status_id' => $completeStatus,
       );
 
       for ($rowNumber = 1; $rowNumber <= $this->_batchInfo['item_count']; $rowNumber++) {
@@ -589,14 +589,14 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
     $dateTypes = array(
       'join_date' => 'joinDate',
       'membership_start_date' => 'startDate',
-      'membership_end_date' => 'endDate'
+      'membership_end_date' => 'endDate',
     );
 
     $dates = array(
       'join_date',
       'start_date',
       'end_date',
-      'reminder_date'
+      'reminder_date',
     );
 
     // get the price set associated with offline memebership
@@ -713,7 +713,7 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
 
         $editedFieldParams = array(
           'price_set_id' => $priceSetId,
-          'name' => $value['membership_type'][0]
+          'name' => $value['membership_type'][0],
         );
 
         $editedResults = array();
@@ -726,7 +726,7 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
           $fid = $editedResults['id'];
           $editedFieldParams = array(
             'price_field_id' => $editedResults['id'],
-            'membership_type_id' => $value['membership_type_id']
+            'membership_type_id' => $value['membership_type_id'],
           );
 
           $editedResults = array();
index 18f485206f5eff44def27e35b88ad35821ca1f43..1b36338d589c9d3d1c1795b9026b528117c5f0ac 100644 (file)
@@ -244,7 +244,7 @@ SELECT  petition.id                         as id,
     $params = array(
       1 => array($activity_id, 'Integer'),
       2 => array($contact_id, 'Integer'),
-      3 => array($sourceID, 'Integer')
+      3 => array($sourceID, 'Integer'),
     );
     CRM_Core_DAO::executeQuery($sql, $params);
 
@@ -305,7 +305,7 @@ AND         tag_id = ( SELECT id FROM civicrm_tag WHERE name = %2 )";
     $sourceID = CRM_Utils_Array::key('Activity Source', $activityContacts);
     $params = array(
       1 => array($surveyId, 'Integer'),
-      2 => array($sourceID, 'Integer')
+      2 => array($sourceID, 'Integer'),
     );
     $sql .= " GROUP BY civicrm_address.country_id";
     $fields = array('total', 'country_id', 'country_iso', 'country');
@@ -515,7 +515,7 @@ AND         tag_id = ( SELECT id FROM civicrm_tag WHERE name = %2 )";
       2 => array($surveyId, 'Integer'),
       3 => array($surveyInfo['activity_type_id'], 'Integer'),
       4 => array($contactId, 'Integer'),
-      5 => array($sourceID, 'Integer')
+      5 => array($sourceID, 'Integer'),
     );
 
     $dao = CRM_Core_DAO::executeQuery($sql, $params);
index 40dc56dee3840071124403b09b55ce341444dd03..682945e88efca49a7a4595e080de1090a93cf274 100644 (file)
@@ -669,7 +669,7 @@ INNER JOIN  civicrm_contact contact_a ON ( activityTarget.contact_id = contact_a
         'status_id' => $activity->status_id,
         'interviewer_id' => $activity->interviewer_id,
         'result' => $activity->result,
-        'activity_date_time' => $activity->activity_date_time
+        'activity_date_time' => $activity->activity_date_time,
       );
     }
 
index ca6117d416bae993c5e7c81b6e0531fc18f0cec6..e97bde0aac2640b7b59cdead931b3196df35bd7b 100644 (file)
@@ -206,7 +206,7 @@ class CRM_Campaign_Form_Petition extends CRM_Core_Form {
     // custom group id
     $this->add('select', 'profile_id', ts('Activity Profile'),
       array(
-        '' => ts('- select -')
+        '' => ts('- select -'),
       ) + $customProfiles
     );
 
index ced03cb5afa669d7f9880d0384e3c631201bc0ee..cf8552bdbf242d7ec18b2f91d385b2cbb5960e25 100644 (file)
@@ -81,7 +81,7 @@ class CRM_Campaign_Form_Survey_Questions extends CRM_Campaign_Form_Survey {
           array(
             1 => $activityTypes[$subTypeId],
             2 => CRM_Utils_System::url('civicrm/admin/custom/group', 'action=add&reset=1'),
-            3 => '_blank'
+            3 => '_blank',
           )
         )
       );
index 393a86e6e9bca2af64cf270985bc9f79e75b6384..a9ccbaa5932abe7b831bd3230ece5bf1d690cf3b 100644 (file)
@@ -118,7 +118,7 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
         'option_group_id',
         ts('Select Result Set'),
         array(
-          '' => ts('- select -')
+          '' => ts('- select -'),
         ) + $optionGroups, FALSE,
         array('onChange' => 'loadOptionGroup( )')
       );
@@ -128,7 +128,7 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
       ts('Survey Responses'),
       $optionTypes,
       array(
-        'onclick' => "showOptionSelect();"
+        'onclick' => "showOptionSelect();",
       ), '<br/>', TRUE
     );
 
@@ -199,7 +199,7 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
 
     $this->addFormRule(array(
         'CRM_Campaign_Form_Survey_Results',
-        'formRule'
+        'formRule',
       ), $this);
 
     parent::buildQuickForm();
@@ -429,7 +429,7 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
         array(
           1 => array(
             'column' => 'sort_name',
-            'order' => 'ASC'
+            'order' => 'ASC',
           ),
         );
       // for WalkList or default
@@ -440,7 +440,7 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
         'street_number',
         'street_name',
         'street_unit',
-        'survey_response'
+        'survey_response',
       );
       if (CRM_Core_OptionGroup::getValue('activity_type', 'WalkList') ==
         $this->_values['activity_type_id']
@@ -449,19 +449,19 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
           array(
             1 => array(
               'column' => 'street_name',
-              'order' => 'ASC'
+              'order' => 'ASC',
             ),
             2 => array(
               'column' => 'street_number_odd_even',
-              'order' => 'ASC'
+              'order' => 'ASC',
             ),
             3 => array(
               'column' => 'street_number',
-              'order' => 'ASC'
+              'order' => 'ASC',
             ),
             4 => array(
               'column' => 'sort_name',
-              'order' => 'ASC'
+              'order' => 'ASC',
             ),
           );
       }
@@ -488,8 +488,8 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
       $reportID = CRM_Core_DAO::singleValueQuery($query, array(
           1 => array(
             "survey_{$survey->id}",
-            'String'
-          )
+            'String',
+          ),
         ));
       if ($reportID) {
         $url = CRM_Utils_System::url("civicrm/report/instance/{$reportID}", 'reset=1');
index 2e4c90ba675725e75fe6849accd86b4cc4894c00..811c8a2bea5e8eaf3bcea3b7c0839df5645f92e4 100755 (executable)
@@ -553,7 +553,7 @@ WHERE {$clause}
       'source_contact_id' => 'source_contact',
       'location' => 'activity_location',
       'campaign_id' => 'activity_campaign_id',
-      'duration' => 'activity_duration'
+      'duration' => 'activity_duration',
     );
     foreach ($activityParams as $key => $field) {
       if (!empty($params[$field])) {
index e8fa07847c8b4635f43063849cdab455aa4126b2..4d245fc12ec955f8e60a4cf0b0e5e489e00ff7c1 100644 (file)
@@ -2698,7 +2698,7 @@ SELECT  id
             1 => $otherCaseId,
             2 => $otherContactDisplayName,
             3 => $mainContactDisplayName,
-            4 => $mainCaseId
+            4 => $mainCaseId,
           )
         );
       }
@@ -2709,7 +2709,7 @@ SELECT  id
             1 => $otherCaseId,
             2 => $otherContactId,
             3 => $mainContactId,
-            4 => $mainCaseId
+            4 => $mainCaseId,
           )
         );
       }
@@ -2902,7 +2902,7 @@ WHERE id IN (' . implode(',', $copiedActivityIds) . ')';
           //need to check activity object specific.
           if (in_array($operation, array(
             'view',
-            'edit'
+            'edit',
           ))
           ) {
             //do we have supper permission.
@@ -2988,7 +2988,7 @@ WHERE id IN (' . implode(',', $copiedActivityIds) . ')';
         'Link Cases',
         'Assign Case Role',
         'Email',
-        'Inbound Email'
+        'Inbound Email',
       );
 
       //do not allow to delete these activities, CRM-4543
@@ -3006,7 +3006,7 @@ WHERE id IN (' . implode(',', $copiedActivityIds) . ')';
         'Reassigned Case',
         'Merge Case',
         'Link Cases',
-        'Assign Case Role'
+        'Assign Case Role',
       );
 
       if (in_array($actTypeName, $singletonNames)) {
index 43c05b0d4f6f6b22736d75fbda464d00be9fe98f..9847be50c9239e99758e538eafeeab19c04cafa4 100644 (file)
@@ -203,7 +203,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
             CRM_Core_Error::statusBounce(ts("You can not add another '%1' activity to this case. %2",
                 array(
                   1 => $this->_activityTypeName,
-                  2 => "Do you want to <a href='$editUrl'>edit the existing activity</a> ?"
+                  2 => "Do you want to <a href='$editUrl'>edit the existing activity</a> ?",
                 )
               ),
               $url
@@ -282,7 +282,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
       unset($aTypes[$openCaseID]);
       asort($aTypes);
       $this->_fields['followup_activity_type_id']['attributes'] = array(
-          '' => '- select activity type -'
+          '' => '- select activity type -',
         ) + $aTypes;
     }
 
@@ -405,7 +405,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
 
       $tagParams = array(
         'entity_table' => 'civicrm_activity',
-        'entity_id' => $this->_activityId
+        'entity_id' => $this->_activityId,
       );
       CRM_Core_BAO_EntityTag::del($tagParams);
 
@@ -706,7 +706,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
           1 => $this->_activityTypeName,
           2 => $recordStatus,
           3 => $followupStatus,
-          4 => $mailStatus
+          4 => $mailStatus,
         )
       ), 'info');
     }
index 5287b9357645cdfe99b4d0c2adf1e4462a45a3b4..8c64255242b5305997c507848b34501d6ad2e7a3 100644 (file)
@@ -183,7 +183,7 @@ class CRM_Case_Form_Activity_ChangeCaseStatus {
       if ($activity->subject == 'null') {
         $activity->subject = ts('Case status changed from %1 to %2', array(
             1 => CRM_Utils_Array::value($statusval, $form->_caseStatus),
-            2 => CRM_Utils_Array::value($params['case_status_id'], $form->_caseStatus)
+            2 => CRM_Utils_Array::value($params['case_status_id'], $form->_caseStatus),
           )
         );
         $activity->save();
index 6f0c5d47bc3f3d97d663632b3f5c9f5eafeafa66..727c71dc55f5ab7750ee431970a7132ce738465b 100644 (file)
@@ -77,7 +77,7 @@ class CRM_Case_ManagedEntities {
           'name' => $actType,
           'description' => $actType,
           'component_id' => 'CiviCase',
-        )
+        ),
       );
 
       // We'll create managed-entity if this record doesn't exist yet
@@ -125,7 +125,7 @@ class CRM_Case_ManagedEntities {
           'contact_type_b' => 'Individual',
           'contact_sub_type_a' => NULL,
           'contact_sub_type_b' => NULL,
-        )
+        ),
       );
 
       // We'll create managed-entity if this record doesn't exist yet
index eca106868129c4d15255583231acab08d5810002..afdee2970b44a64f3e6f7186b80685af94e8ed39 100644 (file)
@@ -1211,7 +1211,7 @@ WHERE id={$id}; ";
         'Individual',
         'Household',
         'Organization',
-        'All'
+        'All',
       ))) {
         $fields = array_merge($fields, CRM_Core_OptionValue::getFields('', $contactType));
       }
@@ -1262,7 +1262,7 @@ WHERE id={$id}; ";
             'household_name',
             'legal_name',
             'sic_code',
-            'organization_name'
+            'organization_name',
           ),
           'Household' => array(
             'first_name',
@@ -1420,7 +1420,7 @@ WHERE id={$id}; ";
             'name' => 'location_type',
             'where' => 'civicrm_location_type.name',
             'title' => ts('Location Type'),
-          )
+          ),
         );
 
         $IMProvider = array(
@@ -1428,7 +1428,7 @@ WHERE id={$id}; ";
             'name' => 'im_provider',
             'where' => 'civicrm_im.provider_id',
             'title' => ts('IM Provider'),
-          )
+          ),
         );
 
         $locationFields = array_merge($locationType,
@@ -1472,7 +1472,7 @@ WHERE id={$id}; ";
           foreach (array(
                      'Individual',
                      'Household',
-                     'Organization'
+                     'Organization',
                    ) as $type) {
             $fields = array_merge($fields,
               CRM_Core_BAO_CustomField::getFieldsForImport($type, FALSE, FALSE, $search, TRUE, $withMultiRecord)
@@ -1554,7 +1554,7 @@ WHERE id={$id}; ";
               'postal_greeting_custom',
               'addressee_custom',
               'prefix_id',
-              'suffix_id'
+              'suffix_id',
             ),
             'Organization' => array(
               'first_name',
@@ -1671,7 +1671,7 @@ WHERE id={$id}; ";
             'im',
             'email',
             'openid',
-            'phone_ext'
+            'phone_ext',
           ))) {
             if ($type) {
               $returnProperties['location'][$locationTypeName][$fieldName . '-' . $type] = 1;
@@ -2253,7 +2253,7 @@ ORDER BY civicrm_email.is_primary DESC";
                 'gender_id',
                 'current_employer',
                 'prefix_id',
-                'suffix_id'
+                'suffix_id',
               )) &&
             ($value == '' || !isset($value)) &&
             ($session->get('authSrc') & (CRM_Core_Permission::AUTH_SRC_CHECKSUM + CRM_Core_Permission::AUTH_SRC_LOGIN)) == 0
@@ -2488,7 +2488,7 @@ AND       civicrm_openid.is_primary = 1";
         'preferred_communication_method' => array(
           'newName' => 'preferred_communication_method_display',
           'groupName' => 'preferred_communication_method',
-        )
+        ),
       );
 
       CRM_Core_OptionGroup::lookupValues($temp, $names, FALSE);
@@ -3042,7 +3042,7 @@ AND       civicrm_openid.is_primary = 1";
             $hasAllPermissions = TRUE;
           }
           elseif (in_array($values['ref'], array(
-            'new-email'
+            'new-email',
           ))) {
             // grant permissions for these tasks.
             $hasAllPermissions = TRUE;
@@ -3058,7 +3058,7 @@ AND       civicrm_openid.is_primary = 1";
       // build directly accessible action menu.
       if (in_array($values['ref'], array(
         'view-contact',
-        'edit-contact'
+        'edit-contact',
       ))) {
         $contextMenu['primaryActions'][$key] = array(
           'title' => $values['title'],
index 760ea39fbac8eee6dd190700854e17ed4e7b2b26..dc040fa5d854622f4814dcad17c08caae452e5bc 100644 (file)
@@ -1039,14 +1039,14 @@ WHERE  id IN $groupIdString
       $allGroups[$dao->id] = array(
         'title' => $dao->title,
         'visibility' => $dao->visibility,
-        'description' => $dao->description
+        'description' => $dao->description,
       );
 
       if ($dao->parents == $parents) {
         $roots[] = array(
           'id' => $dao->id,
           'prefix' => '',
-          'title' => $dao->title
+          'title' => $dao->title,
         );
       }
       else {
@@ -1057,7 +1057,7 @@ WHERE  id IN $groupIdString
           'id' => $dao->id,
           'prefix' => '',
           'title' => $dao->title,
-          'parents' => $parent
+          'parents' => $parent,
         );
       }
     }
@@ -1082,7 +1082,7 @@ WHERE  id IN $groupIdString
             $new_roots[] = array(
               'id' => $row['id'],
               'prefix' => $groups[$root['id']][0] . $spacer,
-              'title' => $row['title']
+              'title' => $row['title'],
             );
             unset($rows[$key]);
           }
index 7c79313f0b9b1b862e7d6d8daaa6839e712eed82..9c79144121e0ad78730d66a8b3ac101da666e47a 100644 (file)
@@ -661,7 +661,7 @@ ORDER BY   gc.contact_id, g.children
           'id' => $dao->group_id,
           'title' => $dao->title,
           'description' => $dao->description,
-          'children' => $dao->children
+          'children' => $dao->children,
         );
       $contactGroup[$dao->contact_id]['groupTitle'][] = $dao->title;
     }
index e6fe770572b28021e4310958ef2001ecfd9e337e..83226594c03971cafdf6301bbc78e44903f61f43 100644 (file)
@@ -317,7 +317,7 @@ ACOS(
     $qill = ts('Proximity search to a distance of %1 from %2',
       array(
         1 => $qillUnits,
-        2 => implode(', ', $qill)
+        2 => implode(', ', $qill),
       )
     );
 
index d1b158e1729a403bf5edd6d9fce120cd4650c952..b54075d001ed4e70ad0891aedb138b6728e3c174 100644 (file)
@@ -743,7 +743,7 @@ class CRM_Contact_BAO_Query {
                       'idCol' => "{$tName}_id",
                       'bao' => 'CRM_Core_BAO_Address',
                       'table' => "civicrm_{$tName}",
-                      'join' => " LEFT JOIN civicrm_{$tName} ON civicrm_address.{$tName}_id = civicrm_{$tName}.id "
+                      'join' => " LEFT JOIN civicrm_{$tName} ON civicrm_address.{$tName}_id = civicrm_{$tName}.id ",
                     );
 
                   $this->_pseudoConstantsSelect[$tName] =
@@ -751,7 +751,7 @@ class CRM_Contact_BAO_Query {
                       'pseudoField' => 'state_province_abbreviation',
                       'idCol' => "{$tName}_id",
                       'table' => "civicrm_{$tName}",
-                      'join' => " LEFT JOIN civicrm_{$tName} ON civicrm_address.{$tName}_id = civicrm_{$tName}.id "
+                      'join' => " LEFT JOIN civicrm_{$tName} ON civicrm_address.{$tName}_id = civicrm_{$tName}.id ",
                     );
                 }
                 else {
@@ -761,7 +761,7 @@ class CRM_Contact_BAO_Query {
                       'idCol' => "{$tName}_id",
                       'bao' => 'CRM_Core_BAO_Address',
                       'table' => "civicrm_{$tName}",
-                      'join' => " LEFT JOIN civicrm_{$tName} ON civicrm_address.{$tName}_id = civicrm_{$tName}.id "
+                      'join' => " LEFT JOIN civicrm_{$tName} ON civicrm_address.{$tName}_id = civicrm_{$tName}.id ",
                     );
                 }
 
@@ -796,28 +796,28 @@ class CRM_Contact_BAO_Query {
                     $this->_pseudoConstantsSelect['individual_prefix'] = array(
                       'pseudoField' => 'prefix_id',
                       'idCol' => "prefix_id",
-                      'bao' => 'CRM_Contact_BAO_Contact'
+                      'bao' => 'CRM_Contact_BAO_Contact',
                     );
                   }
                   if ($fieldName == 'suffix_id') {
                     $this->_pseudoConstantsSelect['individual_suffix'] = array(
                       'pseudoField' => 'suffix_id',
                       'idCol' => "suffix_id",
-                      'bao' => 'CRM_Contact_BAO_Contact'
+                      'bao' => 'CRM_Contact_BAO_Contact',
                     );
                   }
                   if ($fieldName == 'gender_id') {
                     $this->_pseudoConstantsSelect['gender'] = array(
                       'pseudoField' => 'gender_id',
                       'idCol' => "gender_id",
-                      'bao' => 'CRM_Contact_BAO_Contact'
+                      'bao' => 'CRM_Contact_BAO_Contact',
                     );
                   }
                   if ($name == 'communication_style_id') {
                     $this->_pseudoConstantsSelect['communication_style'] = array(
                       'pseudoField' => 'communication_style_id',
                       'idCol' => "communication_style_id",
-                      'bao' => 'CRM_Contact_BAO_Contact'
+                      'bao' => 'CRM_Contact_BAO_Contact',
                     );
                   }
                   $this->_select[$name] = "contact_a.{$fieldName}  as `$name`";
@@ -1136,7 +1136,7 @@ class CRM_Contact_BAO_Query {
                 $this->_pseudoConstantsSelect["{$name}-{$elementFullName}"] = array(
                   'pseudoField' => "{$pf}_id",
                   'idCol' => "{$tName}_id",
-                  'bao' => 'CRM_Core_BAO_Address'
+                  'bao' => 'CRM_Core_BAO_Address',
                 );
                 $this->_pseudoConstantsSelect["{$name}-{$elementFullName}"]['select'] = "`$tName`.$fieldName as `{$name}-{$elementFullName}`";
               }
@@ -5411,7 +5411,7 @@ AND   displayRelType.is_active = 1
       'gender_id',
       'prefix_id',
       'suffix_id',
-      'communication_style_id'
+      'communication_style_id',
     );
 
     if (is_numeric($value)) {
index ac9ee74567490cb5b612d1efb687b1debe82c6d9..328a12f0f0986f719c3bcb8163a5d151153196e4 100644 (file)
@@ -320,8 +320,8 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship {
         $result = CRM_Core_DAO::executeQuery("SELECT " . implode(',', $fieldsToFill) . " FROM civicrm_relationship WHERE id = %1", array(
             1 => array(
               $params['id'],
-              'Integer'
-            )
+              'Integer',
+            ),
           ));
         while ($result->fetch()) {
           foreach ($fieldsToFill as $field) {
@@ -1466,7 +1466,7 @@ SELECT relationship_type_id, relationship_direction
             foreach (array(
                        'join_date',
                        'start_date',
-                       'end_date'
+                       'end_date',
                      ) as $dateField) {
               if (!empty($membershipValues[$dateField])) {
                 $membershipValues[$dateField] = CRM_Utils_Date::processDate($membershipValues[$dateField]);
@@ -1723,7 +1723,7 @@ AND cc.sort_name LIKE '%$name%'";
   public static function membershipTypeToRelationshipTypes(&$params, $direction = NULL) {
     $membershipType = civicrm_api3('membership_type', 'getsingle', array(
         'id' => $params['membership_type_id'],
-        'return' => 'relationship_type_id, relationship_direction'
+        'return' => 'relationship_type_id, relationship_direction',
       ));
     $relationshipTypes = $membershipType['relationship_type_id'];
     if (empty($relationshipTypes)) {
index 6814a9ea5e93536d8ba3c3c8902f3f099b20af6a..c769b42037ca83552239dde70c4b27df047a4543 100644 (file)
@@ -123,7 +123,7 @@ class CRM_Contact_Form_DedupeRules extends CRM_Admin_Form {
     for ($count = 0; $count < self::RULES_COUNT; $count++) {
       $this->add('select', "where_$count", ts('Field'),
         array(
-          NULL => ts('- none -')
+          NULL => ts('- none -'),
         ) + $this->_fields, FALSE, $disabled
       );
       $this->add('text', "length_$count", ts('Length'), $attributes);
index ae06c8bbfa6710ab94163be996390715a3fbbe6a..917c1fc9ec0e95e62bfe76e36bacfca30fccb887 100644 (file)
@@ -217,7 +217,7 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form {
 
     $this->_locBlockIds = array(
       'main' => $rowsElementsAndInfo['main_details']['loc_block_ids'],
-      'other' => $rowsElementsAndInfo['other_details']['loc_block_ids']
+      'other' => $rowsElementsAndInfo['other_details']['loc_block_ids'],
     );
 
     // add elements
index 9344c55744d9e6db170e6083b6f57f36253232a9..8029c7a7f811d4a1744ea125c8e9722d492d5f67 100644 (file)
@@ -65,7 +65,7 @@ class CRM_Contact_Form_ProfileContact {
     $requiredProfileFields = array(
       'Individual' => array('first_name', 'last_name'),
       'Organization' => array('organization_name', 'email'),
-      'Household' => array('household_name', 'email')
+      'Household' => array('household_name', 'email'),
     );
     $validProfile = CRM_Core_BAO_UFGroup::checkValidProfile($form->_honoreeProfileId, $requiredProfileFields[$profileContactType]);
     if (!$validProfile) {
@@ -150,7 +150,7 @@ class CRM_Contact_Form_ProfileContact {
           ),
           'honor_id' => $honorId,
           'honor_profile_id' => $params['honoree_profile_id'],
-          'honor_profile_values' => $params['honor']
+          'honor_profile_values' => $params['honor'],
         );
       }
     }
index 1fb145835ceb216f55c79271b3bdb44eb1ef2bd8..1ee6aadd0c22e2d8f3eba296e8e7bca2bf6a4d57 100644 (file)
@@ -260,7 +260,7 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form {
           'entity_id' => $this->_relationshipId,
           'entity_table' => 'civicrm_relationship',
           'limit' => 1,
-          'version' => 3
+          'version' => 3,
         );
         $note = civicrm_api('Note' ,'getsingle', $noteParams);
         $defaults['note'] = CRM_Utils_Array::value('note', $note);
index a105b2a2dc17fd8ad313dca50a2a196d1020632f..767b2620423e890c9c2bedaede5b2a1702b4ba53 100644 (file)
@@ -352,7 +352,7 @@ class CRM_Contact_Form_Search_Criteria {
       $form->addElement('text', 'prox_distance', ts('Find contacts within'), array('class' => 'six'));
       $form->addElement('select', 'prox_distance_unit', NULL, array(
         'miles' => ts('Miles'),
-        'kilos' => ts('Kilometers')
+        'kilos' => ts('Kilometers'),
       ));
       $form->addRule('prox_distance', ts('Please enter positive number as a distance'), 'numeric');
     }
index f97eeaa7bbe184a3ac83764ade6f4dce74f66e2b..7ce4c846ec864bc4dbfa545667989bd6eb456059 100644 (file)
@@ -410,7 +410,7 @@ class CRM_Contact_Form_Task_PDFLetterCommon {
       $activityTargetParams = array(
         'activity_id' => empty($activity->id) ? $activityIds[$contactId] : $activity->id,
         'contact_id' => $contactId,
-        'record_type_id' => $targetID
+        'record_type_id' => $targetID,
       );
       CRM_Activity_BAO_ActivityContact::create($activityTargetParams);
     }
index 3f659e3755a2a1f9000dada23482b5d9285cd2d8..1cb76fd5d3850f8cb1d4a95081442e466665f2c1 100644 (file)
@@ -65,7 +65,7 @@ class CRM_Contact_Page_AJAX {
       'context' => 'context',
       'rel' => 'rel',
       'contact_sub_type' => 'contact_sub_type',
-      'contact_type' => 'contact_type'
+      'contact_type' => 'contact_type',
     );
     foreach ($whitelist as $key => $param) {
       if (!empty($_GET[$key])) {
@@ -308,7 +308,7 @@ class CRM_Contact_Page_AJAX {
         $ret = array(
           'is_error' => 1,
           'error_message' => ts('The relationship type definition for the case role is not valid for the client and / or staff contact types. You can review and edit relationship types at <a href="%1">Administer >> Option Lists >> Relationship Types</a>.',
-            array(1 => CRM_Utils_System::url('civicrm/admin/reltype', 'reset=1')))
+            array(1 => CRM_Utils_System::url('civicrm/admin/reltype', 'reset=1'))),
         );
       }
     }
index f1ace85677af95ccdfe2ade3118a05bc23e13336..af768810da8185818cb51b462bf7f2ef6f1cab9e 100644 (file)
@@ -41,7 +41,7 @@ class CRM_Contact_Page_ImageFile extends CRM_Core_Page {
     // FIXME Optimize performance of image_url query
     $sql = "SELECT id FROM civicrm_contact WHERE image_url like %1;";
     $params = array(
-      1 => array("%" . $_GET['photo'], 'String')
+      1 => array("%" . $_GET['photo'], 'String'),
     );
     $dao = CRM_Core_DAO::executeQuery($sql, $params);
     while ($dao->fetch()) {
index 51eccdfa4f014f6baa868b6fed379997bb6a4379..8239dea8b5d8d7c21898bd67f8c655d68217f8e6 100644 (file)
@@ -391,7 +391,7 @@ class CRM_Contact_Page_View_Summary extends CRM_Contact_Page_View {
         'weight' => $weight,
         'count' => CRM_Contact_BAO_Contact::getCountComponent($id, $this->_contactId, $group['table_name']),
         'hideCount' => !$group['is_multiple'],
-        'class' => 'livePage'
+        'class' => 'livePage',
       );
       $weight += 10;
     }
index 9ae3d3329389f7d092e1e6107569d2c69b51826a..064381867bf4816b6d10a9c0036648ccc2ef3b1e 100644 (file)
@@ -614,7 +614,7 @@ class CRM_Contact_Selector extends CRM_Core_Selector_Base implements CRM_Core_Se
     if (in_array('world_region', $names)) {
       $pseudoconstants['world_region'] = array(
         'dbName' => 'world_region_id',
-        'values' => CRM_Core_PseudoConstant::worldRegion()
+        'values' => CRM_Core_PseudoConstant::worldRegion(),
       );
     }
 
index 758612be6ddfb0be5cfb4be1740dfdacad3da6eb..2a7515d19e8fba0ee24974317e8cb48296f2f6e9 100644 (file)
@@ -644,8 +644,8 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
         'contribution_status' => array(
           'title' => ts('Contribution Status'),
           'name' => 'contribution_status',
-          'data_type' => CRM_Utils_Type::T_STRING
-        )
+          'data_type' => CRM_Utils_Type::T_STRING,
+        ),
       );
 
       $contributionNote = array(
@@ -653,8 +653,8 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
           array(
             'title' => ts('Contribution Note'),
             'name' => 'contribution_note',
-            'data_type' => CRM_Utils_Type::T_TEXT
-          )
+            'data_type' => CRM_Utils_Type::T_TEXT,
+          ),
       );
 
       $contributionRecurId = array(
@@ -662,14 +662,14 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
           'title' => ts('Recurring Contributions ID'),
           'name' => 'contribution_recur_id',
           'where' => 'civicrm_contribution.contribution_recur_id',
-          'data_type' => CRM_Utils_Type::T_INT
-        )
+          'data_type' => CRM_Utils_Type::T_INT,
+        ),
       );
 
       $extraFields = array(
         'contribution_batch' => array(
-          'title' => ts('Batch Name')
-        )
+          'title' => ts('Batch Name'),
+        ),
       );
 
       $softCreditFields = array(
@@ -677,25 +677,25 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
           'name' => 'contribution_soft_credit_name',
           'title' => 'Soft Credit For',
           'where' => 'civicrm_contact_d.display_name',
-          'data_type' => CRM_Utils_Type::T_STRING
+          'data_type' => CRM_Utils_Type::T_STRING,
         ),
         'contribution_soft_credit_amount' => array(
           'name' => 'contribution_soft_credit_amount',
           'title' => 'Soft Credit Amount',
           'where' => 'civicrm_contribution_soft.amount',
-          'data_type' => CRM_Utils_Type::T_MONEY
+          'data_type' => CRM_Utils_Type::T_MONEY,
         ),
         'contribution_soft_credit_type' => array(
           'name' => 'contribution_soft_credit_type',
           'title' => 'Soft Credit Type',
           'where' => 'contribution_softcredit_type.label',
-          'data_type' => CRM_Utils_Type::T_STRING
+          'data_type' => CRM_Utils_Type::T_STRING,
         ),
         'contribution_soft_credit_contribution_id' => array(
           'name' => 'contribution_soft_credit_contribution_id',
           'title' => 'Soft Credit For Contribution ID',
           'where' => 'civicrm_contribution_soft.contribution_id',
-          'data_type' => CRM_Utils_Type::T_INT
+          'data_type' => CRM_Utils_Type::T_INT,
         ),
       );
 
@@ -2436,7 +2436,7 @@ WHERE  contribution_id = %1 ";
           $softCreditTypes[$key] = $softCredit['soft_credit_type_label'];
           $softCredits[$key] = array(
             'Name' => $softCredit['contact_name'],
-            'Amount' => CRM_Utils_Money::format($softCredit['amount'], $softCredit['currency'])
+            'Amount' => CRM_Utils_Money::format($softCredit['amount'], $softCredit['currency']),
           );
         }
         $template->assign('softCreditTypes', $softCreditTypes);
@@ -2527,7 +2527,7 @@ WHERE  contribution_id = %1 ";
       $primaryEmail = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Email', $this->_relatedObjects['participant']->contact_id, 'email', 'contact_id');
       $primaryAmount[] = array(
         'label' => $this->_relatedObjects['participant']->fee_level . ' - ' . $primaryEmail,
-        'amount' => $this->_relatedObjects['participant']->fee_amount
+        'amount' => $this->_relatedObjects['participant']->fee_amount,
       );
       //build an array of cId/pId of participants
       $additionalIDs = CRM_Event_BAO_Event::buildCustomProfile($this->_relatedObjects['participant']->id, NULL, $this->_relatedObjects['contact']->id, $isTest, TRUE);
@@ -2556,7 +2556,7 @@ WHERE  contribution_id = %1 ";
           $amount[0] = array('label' => $additional->fee_level, 'amount' => $additional->fee_amount);
           $primaryAmount[] = array(
             'label' => $additional->fee_level . ' - ' . $additionalParticipantInfo,
-            'amount' => $additional->fee_amount
+            'amount' => $additional->fee_amount,
           );
           $additional->save();
           $additional->free();
@@ -2744,7 +2744,7 @@ WHERE  contribution_id = %1 ";
       $skipRecords = TRUE;
       $pendingStatus = array(
         array_search('Pending', $contributionStatuses),
-        array_search('In Progress', $contributionStatuses)
+        array_search('In Progress', $contributionStatuses),
       );
       if (in_array(CRM_Utils_Array::value('contribution_status_id', $params), $pendingStatus)) {
         $relationTypeId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Accounts Receivable Account is' "));
@@ -3101,7 +3101,7 @@ WHERE  contribution_id = %1 ";
             'status_id' => $prevfinancialItem->status_id,
             'financial_account_id' => $financialAccount,
             'entity_table' => 'civicrm_line_item',
-            'entity_id' => $fieldValues['id']
+            'entity_id' => $fieldValues['id'],
           );
           CRM_Financial_BAO_FinancialItem::create($itemParams, NULL, $trxnIds);
 
@@ -3148,13 +3148,13 @@ WHERE  contribution_id = %1 ";
       'Completed' => array('Cancelled', 'Refunded'),
       'Pending' => array('Cancelled', 'Completed', 'Failed'),
       'In Progress' => array('Cancelled', 'Completed', 'Failed'),
-      'Refunded' => array('Cancelled', 'Completed')
+      'Refunded' => array('Cancelled', 'Completed'),
     );
 
     if (!in_array($contributionStatuses[$fields['contribution_status_id']], $checkStatus[$contributionStatuses[$values['contribution_status_id']]])) {
       $errors['contribution_status_id'] = ts("Cannot change contribution status from %1 to %2.", array(
           1 => $contributionStatuses[$values['contribution_status_id']],
-          2 => $contributionStatuses[$fields['contribution_status_id']]
+          2 => $contributionStatuses[$fields['contribution_status_id']],
         ));
     }
   }
@@ -3201,7 +3201,7 @@ WHERE  contribution_id = %1 ";
         if (!empty($props['contribution_page_id'])) {
           $page = civicrm_api('contribution_page', 'getsingle', array(
             'version' => 3,
-            'id' => ($props['contribution_page_id'])
+            'id' => ($props['contribution_page_id']),
           ));
           $types = (array) CRM_Utils_Array::value('payment_processor', $page, 0);
           $params['condition'] = 'id IN (' . implode(',', $types) . ')';
@@ -3383,7 +3383,7 @@ WHERE eft.financial_trxn_id IN ({$trxnId}, {$baseTrxnId['financialTrxnId']})
           'amount' => $financialTrxn->total_amount,
           'status_id' => array_search('Paid', $financialItemStatus),
           'entity_id' => $lineItemId->id,
-          'entity_table' => 'civicrm_line_item'
+          'entity_table' => 'civicrm_line_item',
         );
         $trxnIds['id'] = $financialTrxn->id;
         CRM_Financial_BAO_FinancialItem::create($addFinancialEntry, NULL, $trxnIds);
index 3a8ea68695e236da6a4a927d62d44add196ea04a..4bddc9c0617fca9c69eca9351de901469fcf54b7 100644 (file)
@@ -875,9 +875,9 @@ LEFT JOIN  civicrm_premiums            ON ( civicrm_premiums.entity_id = civicrm
             'soft_credit_types' => $params['soft_credit_types'],
             'default' => array(
               'honor_block_title' => $params['honor_block_title'],
-              'honor_block_text' => $params['honor_block_text']
-            )
-          )
+              'honor_block_text' => $params['honor_block_text'],
+            ),
+          ),
         )
       );
     }
@@ -889,9 +889,9 @@ LEFT JOIN  civicrm_premiums            ON ( civicrm_premiums.entity_id = civicrm
           'soft_credit_types' => $params['soft_credit_types'],
           $config->lcMessages => array(
             'honor_block_title' => $params['honor_block_title'],
-            'honor_block_text' => $params['honor_block_text']
-          )
-        )
+            'honor_block_text' => $params['honor_block_text'],
+          ),
+        ),
       );
 
       $ufJoinDAO = new CRM_Core_DAO_UFJoin();
@@ -920,7 +920,7 @@ LEFT JOIN  civicrm_premiums            ON ( civicrm_premiums.entity_id = civicrm
     $contactId = array($userID);
     $pdfParams = array(
       'output' => 'pdf_invoice',
-      'forPage' => 'confirmpage'
+      'forPage' => 'confirmpage',
     );
     $pdfHtml = CRM_Contribute_Form_Task_Invoice::printPDF($contributionID,
       $pdfParams, $contactId, CRM_Core_DAO::$_nullObject);
index 0e182ad8bd45605b3ab055c6798ed63ccadc6545..5b57460bdef6348893ea8e0335633010163d5bdc 100644 (file)
@@ -274,7 +274,7 @@ SELECT r.payment_processor_id
 <br/>' . ts('The recurring contribution of %1, every %2 %3 has been cancelled.', array(
           1 => $dao->amount,
               2 => $dao->frequency_interval,
-              3 => $dao->frequency_unit
+              3 => $dao->frequency_unit,
             ));
         }
         $activityParams = array(
index a08dbaf5bcf692c152bc8957729d80bbd71966a0..f4a9ec69c32d8501f919195259f6f6b9d0d93687 100644 (file)
@@ -191,7 +191,7 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio
           'amount' => $dao->amount,
           'contact_name' => $dao->display_name,
           'soft_credit_type' => $dao->soft_credit_type_id,
-          'soft_credit_type_label' => CRM_Core_OptionGroup::getLabel('soft_credit_type', $dao->soft_credit_type_id)
+          'soft_credit_type_label' => CRM_Core_OptionGroup::getLabel('soft_credit_type', $dao->soft_credit_type_id),
         );
         $count++;
       }
@@ -281,7 +281,7 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio
 
     $params = array(
       1 => array($contact_id, 'Integer'),
-      2 => array($isTest, 'Integer')
+      2 => array($isTest, 'Integer'),
     );
     $cs = CRM_Core_DAO::executeQuery($query, $params);
     $contributionStatus = CRM_Contribute_PseudoConstant::contributionStatus();
index 9fbe5bbd88fc22f7e92693bf75f7990611e2c800..2ec1e6919819754e6d08daa5b4eede40f54a982d 100644 (file)
@@ -331,7 +331,7 @@ LEFT JOIN  civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
             $statusMsg .= "<br />" . ts("Membership for %1 has been updated. The membership End Date is %2.",
               array(
                 1 => $userDisplayName,
-                2 => $endDate
+                2 => $endDate,
               )
             );
           }
@@ -550,7 +550,7 @@ LEFT JOIN  civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
             CRM_Core_Session::setStatus(ts('This contact has a pending or overdue pledge payment of %2 which is scheduled for %3. <a href="%1">Click here to enter a pledge payment</a>.', array(
               1 => $ppUrl,
               2 => $ppAmountDue,
-              3 => $ppSchedDate
+              3 => $ppSchedDate,
             )), ts('Notice'), 'alert');
           }
         }
index 5578c80797a26e1f4e9ebc977583e6767a4bdfe5..d69fc40fed5a3de0f8828425f7a747f21d1ecb45 100644 (file)
@@ -154,7 +154,7 @@ class CRM_Contribute_Form_AdditionalInfo {
     $form->add('select', 'contribution_page_id',
       ts('Online Contribution Page'),
       array(
-        '' => ts('- select -')
+        '' => ts('- select -'),
       ) +
       CRM_Contribute_PseudoConstant::contributionPage()
     );
@@ -239,7 +239,7 @@ class CRM_Contribute_Form_AdditionalInfo {
         'cost' => CRM_Utils_Array::value('cost', $productDetails),
         'currency' => CRM_Utils_Array::value('currency', $productDetails),
         'financial_type_id' => CRM_Utils_Array::value('financial_type_id', $productDetails),
-        'contributionId' => $contributionID
+        'contributionId' => $contributionID,
       );
       if ($isDeleted) {
         $params['oldPremium']['product_id'] = $premoumDAO->product_id;
@@ -356,7 +356,7 @@ class CRM_Contribute_Form_AdditionalInfo {
       foreach ($params['soft_credit'] as $key => $softCredit) {
         $softCredits[$key] = array(
           'Name' => $softCredit['contact_name'],
-          'Amount' => CRM_Utils_Money::format($softCredit['amount'], $softCredit['currency'])
+          'Amount' => CRM_Utils_Money::format($softCredit['amount'], $softCredit['currency']),
         );
         $softCreditTypes[$key] = $softCredit['soft_credit_type_label'];
       }
index 1bbd022802b5d00d42d64ee0ddb4aca4b3628d59..43b7d059f9493d1bd1a83ea890cf5c3bb9de555e 100644 (file)
@@ -245,7 +245,7 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract
         $allPanes[$name] = array(
           'url' => CRM_Utils_System::url('civicrm/payment/add', $urlParams),
           'open' => $open,
-          'id' => $type
+          'id' => $type,
         );
 
         CRM_Core_Payment_Form::buildPaymentForm($this, $this->_paymentProcessor, FALSE);
@@ -325,11 +325,11 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract
           'type' => 'upload',
           'name' => ts('%1', array(1 => $buttonName)),
           'js' => $js,
-          'isDefault' => TRUE
+          'isDefault' => TRUE,
         ),
         array(
           'type' => 'cancel',
-          'name' => ts('Cancel')
+          'name' => ts('Cancel'),
         ),
       )
     );
index 3de3847f04f137d7fd899dba4ba9022c39b1f1c5..bea89c7fe50461e5db035525be47afcec079d9d0 100644 (file)
@@ -260,7 +260,7 @@ class CRM_Contribute_Form_CancelSubscription extends CRM_Core_Form {
             array(
               1 => $this->_subscriptionDetails->amount,
               2 => $this->_subscriptionDetails->frequency_interval,
-              3 => $this->_subscriptionDetails->frequency_unit
+              3 => $this->_subscriptionDetails->frequency_unit,
             )
           );
           $msgTitle = 'Contribution Cancelled';
index 0019c2bd0ed7a09871d2845bf03e6472d784c2a1..ea33e63a00d78c01cf20578a484c387e6f85e75c 100644 (file)
@@ -597,7 +597,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
       $allPanes[$name] = array(
         'url' => CRM_Utils_System::url('civicrm/contact/view/contribution', $urlParams),
         'open' => $open,
-        'id' => $type
+        'id' => $type,
       );
 
       // see if we need to include this paneName in the current form
@@ -647,8 +647,8 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
           ),
           array(
             'type' => 'cancel',
-            'name' => ts('Cancel')
-          )
+            'name' => ts('Cancel'),
+          ),
         )
       );
       return;
@@ -695,7 +695,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
       foreach (array(
                  'Cancelled',
                  'Failed',
-                 'In Progress'
+                 'In Progress',
                ) as $suppress) {
         unset($status[CRM_Utils_Array::key($suppress, $statusName)]);
       }
@@ -711,7 +711,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
       if (!$suppressFlag) {
         foreach (array(
                    'Overdue',
-                   'In Progress'
+                   'In Progress',
                  ) as $suppress) {
           unset($status[CRM_Utils_Array::key($suppress, $statusName)]);
         }
@@ -742,7 +742,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
                      'Refunded',
                      'Completed',
                      'In Progress',
-                     'Cancelled'
+                     'Cancelled',
                    ) as $suppress) {
             unset($status[CRM_Utils_Array::key($suppress, $statusName)]);
           }
@@ -820,7 +820,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
         $hasPriceSets = TRUE;
         $element = $this->add('select', 'price_set_id', ts('Choose price set'),
           array(
-            '' => ts('Choose price set')
+            '' => ts('Choose price set'),
           ) + $priceSets,
           NULL, array('onchange' => "buildAmount( this.value );")
         );
@@ -834,7 +834,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
         if ($this->_online || $this->_ppID) {
           $attributes['total_amount'] = array_merge($attributes['total_amount'], array(
             'READONLY' => TRUE,
-            'style' => "background-color:#EBECE4"
+            'style' => "background-color:#EBECE4",
           ));
           $optionTypes = array(
             '1' => ts('Adjust Pledge Payment Schedule?'),
@@ -880,17 +880,17 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
           'type' => 'upload',
           'name' => ts('Save'),
           'js' => $js,
-          'isDefault' => TRUE
+          'isDefault' => TRUE,
         ),
         array(
           'type' => 'upload',
           'name' => ts('Save and New'),
           'js' => $js,
-          'subName' => 'new'
+          'subName' => 'new',
         ),
         array(
           'type' => 'cancel',
-          'name' => ts('Cancel')
+          'name' => ts('Cancel'),
         ),
       )
     );
@@ -1082,7 +1082,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
         $isRelatedId = FALSE;
         $participantParams = array(
           'fee_amount' => $submittedValues['total_amount'],
-          'id' => $entityID
+          'id' => $entityID,
         );
         CRM_Event_BAO_Participant::add($participantParams);
         if (empty($this->_lineItems)) {
index 46f58f679d8713b1eece6bba9a0cc51d2aec4e2a..bda9b01a8b3f54d1e0e64e2ea2990607666f22ae 100644 (file)
@@ -111,7 +111,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
       //setting to make available to hook - although seems wrong to set on form for BAO hook availability
       'soft_credit_to' => $softCreditToID,
       'line_item' => $lineItems,
-      'skipLineItem' => CRM_Utils_Array::value('skipLineItem', $params, 0)
+      'skipLineItem' => CRM_Utils_Array::value('skipLineItem', $params, 0),
     );
     if (!$online && isset($params['thankyou_date'])) {
       $contributionParam['thankyou_date'] = $params['thankyou_date'];
@@ -403,7 +403,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
       foreach (array(
                  'phone',
                  'email',
-                 'address'
+                 'address',
                ) as $blk) {
         if (isset($this->_params[$blk])) {
           unset($this->_params[$blk]);
@@ -613,7 +613,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
         foreach ($contact[$name] as $fieldName => $fieldValue) {
           if (is_array($fieldValue) && !in_array($this->_fields[$name][$fieldName]['html_type'], array(
               'Multi-Select',
-              'AdvMulti-Select'
+              'AdvMulti-Select',
             ))
           ) {
             foreach ($fieldValue as $key => $value) {
@@ -639,7 +639,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
         elseif (in_array($name, array(
             'addressee',
             'email_greeting',
-            'postal_greeting'
+            'postal_greeting',
           )) && !empty($contact[$name . '_custom'])
         ) {
           $defaults[$name . '_custom'] = $contact[$name . '_custom'];
@@ -782,7 +782,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
           elseif (!(strstr($fld, '-'))) {
             if (in_array($fld, array(
               'contribution_campaign_id',
-              'member_campaign_id'
+              'member_campaign_id',
             ))) {
               $fld = 'campaign_id';
             }
@@ -1194,7 +1194,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
           'cost' => $productDAO->cost,
           'currency' => $productDAO->currency,
           'financial_type_id' => $params['financial_type_id'],
-          'contributionId' => $contribution->id
+          'contributionId' => $contribution->id,
         );
         CRM_Core_BAO_FinancialTrxn::createPremiumTrxn($trxnParams);
       }
@@ -1752,7 +1752,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
                  'pcp_display_in_roll',
                  'pcp_roll_nickname',
                  'pcp_personal_note',
-                 'amount'
+                 'amount',
                ) as $val) {
         if (!empty($params[$val])) {
           $contributionSoftParams[$val] = $params[$val];
@@ -1797,7 +1797,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
                'pcp_display_in_roll',
                'pcp_is_anonymous',
                'pcp_roll_nickname',
-               'pcp_personal_note'
+               'pcp_personal_note',
              ) as $val) {
       if (!empty($params[$val])) {
         $page->assign($val, $params[$val]);
@@ -1994,7 +1994,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
       else {
         $params['is_pay_later'] = civicrm_api3('contribution_page', 'getvalue', array(
           'id' => $id,
-          'return' => 'is_pay_later'
+          'return' => 'is_pay_later',
         ));
       }
     }
index 461ba5fd63c853997d5d12cd4b853b5b0f059cf3..d3d437a5bb5581a497a982ff732ed2bc11638ce5 100644 (file)
@@ -89,7 +89,7 @@ class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_
         }
         $defaults['soft_credit_types'] = array(
           CRM_Utils_Array::value('in_honor_of', $soft_credit_types),
-          CRM_Utils_Array::value('in_memory_of', $soft_credit_types)
+          CRM_Utils_Array::value('in_memory_of', $soft_credit_types),
         );
       }
     }
@@ -103,7 +103,7 @@ class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_
       }
       $defaults['soft_credit_types'] = array(
         CRM_Utils_Array::value('in_honor_of', $soft_credit_types),
-        CRM_Utils_Array::value('in_memory_of', $soft_credit_types)
+        CRM_Utils_Array::value('in_memory_of', $soft_credit_types),
       );
     }
 
@@ -181,7 +181,7 @@ class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_
       'entity' => 'ContributionSoft',
       'field' => 'soft_credit_type_id',
       'multiple' => TRUE,
-      'class' => 'huge'
+      'class' => 'huge',
     ));
 
     $entities = array(
@@ -344,7 +344,7 @@ class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_
           'module' => 'soft_credit',
           'entity_table' => 'civicrm_contribution_page',
           'entity_id' => $dao->id,
-        )
+        ),
     );
 
     foreach ($ufJoinParams as $index => $ufJoinParam) {
index c5439c4cd6852671d4fc1b08443bb78dd80c47f1..868d333abca58d32bb36dd4fb548352c4e5a908a 100644 (file)
@@ -124,7 +124,7 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task {
       array(
         'url' => $url,
         'title' => ts('Search Results'),
-      )
+      ),
     );
 
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
@@ -188,7 +188,7 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task {
 
     $this->addWysiwyg('email_comment', ts('If you would like to add personal message to email please add it here. (If sending to more then one receipient the same message will be sent to each contact.)'), array(
       'rows' => 2,
-      'cols' => 40
+      'cols' => 40,
     ));
 
     $this->addButtons(array(
@@ -553,7 +553,7 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task {
         CRM_Utils_PDF_Utils::html2pdf($messageInvoice, 'Invoice.pdf', FALSE, array(
           'margin_top' => 10,
           'margin_left' => 65,
-          'metric' => 'px'
+          'metric' => 'px',
         ));
         // functions call for adding activity with attachment
         $fileName = self::putFile($html);
index fe086d97e0b78e1a6bf2d6cb6225b65a7c5e811f..ec4b55adfef062d89a398045718e54e082c1ec96 100644 (file)
@@ -21,7 +21,7 @@ class CRM_Contribute_Form_Task_PDFLetterCommon extends CRM_Contact_Form_Task_PDF
     if (!empty($formValues['email_options'])) {
       $returnProperties['email'] = $returnProperties['on_hold'] = $returnProperties['is_deceased'] = $returnProperties['do_not_email'] = 1;
       $emailParams = array(
-        'subject'   => $formValues['subject']
+        'subject'   => $formValues['subject'],
       );
       // We need display_name for emailLetter() so add to returnProperties here
       $returnProperties['display_name'] = 1;
index c412f07b234c40fac9406e24de2a535828dd5c79..83b5244c5481a7757b313de12f5a5264a0c846ca 100644 (file)
@@ -295,7 +295,7 @@ class CRM_Contribute_Form_UpdateBilling extends CRM_Core_Form {
           array(
             1 => $this->_subscriptionDetails->amount,
             2 => $this->_subscriptionDetails->frequency_interval,
-            3 => $this->_subscriptionDetails->frequency_unit
+            3 => $this->_subscriptionDetails->frequency_unit,
           )
         );
         $msgTitle = ts('Details Updated');
index 1ab480f7f188981a8073d1a3b8e4ac1d9d213c3d..7b934fbcec646a2759ab3f42e89f432526ad1f5b 100644 (file)
@@ -216,7 +216,7 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
                      array(1 => CRM_Utils_Money::format($params['amount'], $this->_subscriptionDetails->currency),
                            2 => $this->_subscriptionDetails->frequency_interval,
                            3 => $this->_subscriptionDetails->frequency_unit,
-                           4 => $params['installments']
+                           4 => $params['installments'],
                            )
                      );
 
@@ -229,7 +229,7 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
             $message .= "<br /> " . ts("Recurring contribution amount has been updated from %1 to %2 for this subscription.",
               array(
                 1 => CRM_Utils_Money::format($this->_subscriptionDetails->amount, $this->_subscriptionDetails->currency),
-                2 => CRM_Utils_Money::format($params['amount'], $this->_subscriptionDetails->currency)
+                2 => CRM_Utils_Money::format($params['amount'], $this->_subscriptionDetails->currency),
               )) . ' ';
         }
 
index 288769ed413201fcbac68ee6f359f47de513c115..53457aa84cd7df38d0c60a48ee2cdb5a0d0bfcf0 100644 (file)
@@ -390,7 +390,7 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField {
       $requiredFields = array(
         $contactORContributionId == 'contribution_id' ? 'contribution_id' : 'contribution_contact_id' => $contactORContributionId == 'contribution_id' ? ts('Contribution ID') : ts('Contact ID'),
         'total_amount' => ts('Total Amount'),
-        'financial_type' => ts('Financial Type')
+        'financial_type' => ts('Financial Type'),
       );
 
       foreach ($requiredFields as $field => $title) {
@@ -403,7 +403,7 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField {
               $self->_onDuplicate != CRM_Import_Parser::DUPLICATE_UPDATE
             ) {
               $errors['_qf_default'] .= ts('Missing required contact matching fields.') . " $fieldMessage " . ts('(Sum of all weights should be greater than or equal to threshold: %1).', array(
-                  1 => $threshold
+                  1 => $threshold,
                 )) . '<br />';
             }
             elseif ($self->_onDuplicate == CRM_Import_Parser::DUPLICATE_UPDATE &&
@@ -416,7 +416,7 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField {
           }
           else {
             $errors['_qf_default'] .= ts('Missing required field: %1', array(
-                1 => $title
+                1 => $title,
               )) . '<br />';
           }
         }
index 1363ddd189745b93232edebe6253a3f465139202..c3fa579c948621f1fae650b7ab312d3dfeddc02f 100644 (file)
@@ -78,7 +78,7 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa
           'title' => ts('Soft Credit'),
           'softCredit' => TRUE,
           'headerPattern' => '/Soft Credit/i',
-        )
+        ),
       )
     );
 
index 05e2ae2cc11f63ed01f6208555625d2030fd3a5e..4018246014c8a732c158b70b028ad752f40a8aac 100644 (file)
@@ -463,7 +463,7 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C
               'name' => ts('Soft Credit Amount'),
               'sort' => 'contribution_soft_credit_amount',
               'direction' => CRM_Utils_Sort::DONTCARE,
-            )
+            ),
           )
         );
     }
@@ -535,7 +535,7 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C
     self::$_columnHeaders =
       array_merge(
         self::$_columnHeaders, array(
-          array('desc' => ts('Actions'))
+          array('desc' => ts('Actions')),
         )
       );
     return self::$_columnHeaders;
index c74aa7a073f687e68db93ec80756a49e05d56db2..5c326b85a94f09ceb2dd1d995bc4739f2c7bbfef 100644 (file)
@@ -997,7 +997,7 @@ SELECT is_primary,
       // CRM-15120
       $formatted = array(
         'first_name' => $rows[$rowID]['first_name'],
-        'individual_prefix' => $rows[$rowID]['individual_prefix']
+        'individual_prefix' => $rows[$rowID]['individual_prefix'],
       );
       $format = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'display_name_format');
       $firstNameWithPrefix = CRM_Utils_Address::format($formatted, $format, FALSE, FALSE, TRUE);
index dcffc8bd93d3423dd6073cfd87f77d350df51204..a0ec8c8086f2d140f2f1c5d064321db5428d42e9 100644 (file)
@@ -44,7 +44,7 @@ class CRM_Core_BAO_Block {
     'email' => array('email'),
     'phone' => array('phone'),
     'im' => array('name'),
-    'openid' => array('openid')
+    'openid' => array('openid'),
   );
 
   /**
index 42f0d44f4da9c0b41d61d8cb042b1415a42dce87..a359d183d6673e9ef48d29fb9eda58dbc67c4d5d 100644 (file)
@@ -197,14 +197,14 @@ class CRM_Core_BAO_CMSUser {
       $status .= ' ' . ts('Checked one user record.',
         array(
           'count' => $contactCount,
-          'plural' => 'Checked %count user records.'
+          'plural' => 'Checked %count user records.',
         )
       );
       if ($contactMatching) {
         $status .= ' ' . ts('Found one matching contact record.',
           array(
             'count' => $contactMatching,
-            'plural' => 'Found %count matching contact records.'
+            'plural' => 'Found %count matching contact records.',
           )
         );
       }
@@ -212,7 +212,7 @@ class CRM_Core_BAO_CMSUser {
       $status .= ' ' . ts('Created one new contact record.',
         array(
           'count' => $contactCreated,
-          'plural' => 'Created %count new contact records.'
+          'plural' => 'Created %count new contact records.',
         )
       );
       CRM_Core_Session::setStatus($status, ts('Saved'), 'success');
index 2d0f385674fe2e63269cc862967ea12f112f89f0..eccf8d0b0d166c2241c7f4c0da9543c1cd821dbe 100644 (file)
@@ -200,7 +200,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
         'String',
         'Int',
         'Float',
-        'Money'
+        'Money',
       ))
     ) {
 
@@ -788,13 +788,13 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
       'Multi-Select Country',
       'AdvMulti-Select',
       'CheckBox',
-      'Radio'
+      'Radio',
     )));
 
     if ($isSelect) {
       $options = CRM_Utils_Array::value('values', civicrm_api3('contact', 'getoptions', array(
         'field' => "custom_$fieldId",
-        'context' => $search ? 'search' : 'create'
+        'context' => $search ? 'search' : 'create',
       ), array()));
 
       // Consolidate widget types to simplify the below switch statement
@@ -989,7 +989,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
         $attributes = array(
           'rows' => $field->note_rows,
           'cols' => $field->note_columns,
-          'data-crm-custom' => $dataCrmCustomVal
+          'data-crm-custom' => $dataCrmCustomVal,
         );
         if ($field->text_length) {
           $attributes['maxlength'] = $field->text_length;
index 24fee26246910bba098632aeb8460ad13f00383e..c077771d7b211b6fceb6c3ac6556893ed5d34de4 100644 (file)
@@ -96,7 +96,7 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
       if (CRM_Utils_Array::value(0, $params['extends']) == 'Relationship') {
         $extendsChildType = str_replace(array('_a_b', '_b_a'), array(
             '',
-            ''
+            '',
           ), $extendsChildType);
       }
       if (substr($extendsChildType, 0, 1) != CRM_Core_DAO::VALUE_SEPARATOR) {
@@ -123,7 +123,7 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
       'help_pre',
       'help_post',
       'is_active',
-      'is_multiple'
+      'is_multiple',
     );
     foreach ($fields as $field) {
       $group->$field = CRM_Utils_Array::value($field, $params, FALSE);
@@ -377,7 +377,7 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
         'date_format',
         'time_format',
         'option_group_id',
-        'in_selector'
+        'in_selector',
       ),
       'civicrm_custom_group' => array(
         'id',
@@ -610,7 +610,7 @@ ORDER BY civicrm_custom_group.weight,
         $groupTree['info']['from'][] = $table;
         $select = array(
           "{$table}.id as {$table}_id",
-          "{$table}.entity_id as {$table}_entity_id"
+          "{$table}.entity_id as {$table}_entity_id",
         );
         foreach ($fields as $column => $dontCare) {
           $select[] = "{$table}.{$column} as {$table}_{$column}";
@@ -1610,7 +1610,7 @@ ORDER BY civicrm_custom_group.weight,
       'Multi-Select',
       'AdvMulti-Select',
       'Select',
-      'Radio'
+      'Radio',
     );
 
     foreach ($groupTree as $group) {
@@ -2024,7 +2024,7 @@ SELECT IF( EXISTS(SELECT name FROM civicrm_contact_type WHERE name like %1), 1,
           'dd-mm' => "%E%f %B $customTimeFormat",
           'yy' => "%Y $customTimeFormat",
           'M yy' => "%b %Y $customTimeFormat",
-          'yy-mm' => "%Y-%m $customTimeFormat"
+          'yy-mm' => "%Y-%m $customTimeFormat",
         );
 
         if ($format = CRM_Utils_Array::value('date_format', $field)) {
index e5d0334885dba6b2e17d9e79be95da35f1a365bc..4ee8074298690843a94168dda94f99e3046bcb06 100644 (file)
@@ -583,7 +583,7 @@ AND    cf.id IN ( $fieldIDList )
           return CRM_Core_Error::createAPIError(ts('value: %1 is not of the right field data type: %2',
               array(
                 1 => $fieldValue['value'],
-                2 => $dao->data_type
+                2 => $dao->data_type,
               )
             ));
         }
index 6cb255d2bb70b60318470659c9ff355e445b74b2..ad04e30ce3dc74a5b74b654c405e08502566786c 100644 (file)
@@ -141,7 +141,7 @@ class CRM_Core_BAO_Domain extends CRM_Core_DAO_Domain {
     if ($this->_location == NULL) {
       $domain = self::getDomain(NULL);
       $params = array(
-        'contact_id' => $domain->contact_id
+        'contact_id' => $domain->contact_id,
       );
       $this->_location = CRM_Core_BAO_Location::getValues($params, TRUE);
 
index 097beaa2e32a60b3e7290a011e916f0353bfaada..5538b9282dc9b0cee4a3cce983d19ac64ad4fc39 100644 (file)
@@ -251,7 +251,7 @@ class CRM_Core_BAO_File extends CRM_Core_DAO_File {
         //delete tags from entity tag table
         $tagParams = array(
           'entity_table' => 'civicrm_file',
-          'entity_id' => $fId
+          'entity_id' => $fId,
         );
 
         CRM_Core_BAO_EntityTag::del($tagParams);
@@ -442,7 +442,7 @@ AND       CEF.entity_id    = %2";
       $form->addElement('text', "attachDesc_$i", NULL, array(
         'size' => 40,
         'maxlength' => 255,
-        'placeholder' => ts('Description')
+        'placeholder' => ts('Description'),
       ));
 
       if (!empty($tags)) {
@@ -451,7 +451,7 @@ AND       CEF.entity_id    = %2";
             'id' => "tags_$i",
             'multiple' => 'multiple',
             'class' => 'huge crm-select2',
-            'placeholder' => ts('- none -')
+            'placeholder' => ts('- none -'),
           )
         );
       }
@@ -535,7 +535,7 @@ AND       CEF.entity_id    = %2";
           'description' => $formValues[$attachDesc],
           'upload_date' => $now,
           'tag' => $tagParams,
-          'attachment_taglist' => CRM_Utils_Array::value($attachFreeTags, $formValues, array())
+          'attachment_taglist' => CRM_Utils_Array::value($attachFreeTags, $formValues, array()),
         );
 
         $params[$attachName] = $fileParams;
index ce87300849194a60ec9d7f74ba89a7a10ace0a67..170c4d77000b4014bdf56fd134f85a1b1b214d83 100644 (file)
@@ -335,7 +335,7 @@ WHERE ceft.entity_id = %1";
         'trxn_date' => date('YmdHis'),
         'total_amount' => CRM_Utils_Array::value('cost', $params) ? $params['cost'] : 0,
         'currency' => CRM_Utils_Array::value('currency', $params),
-        'status_id' => array_search('Completed', $contributionStatuses)
+        'status_id' => array_search('Completed', $contributionStatuses),
       );
       $trxnEntityTable['entity_table'] = 'civicrm_contribution';
       $trxnEntityTable['entity_id'] = $params['contributionId'];
@@ -344,7 +344,7 @@ WHERE ceft.entity_id = %1";
 
     if (!empty($params['oldPremium'])) {
       $premiumParams = array(
-        'id' => $params['oldPremium']['product_id']
+        'id' => $params['oldPremium']['product_id'],
       );
       $productDetails = array();
       CRM_Contribute_BAO_ManagePremiums::retrieve($premiumParams, $productDetails);
@@ -353,7 +353,7 @@ WHERE ceft.entity_id = %1";
         'currency' => CRM_Utils_Array::value('currency', $productDetails),
         'financial_type_id' => CRM_Utils_Array::value('financial_type_id', $productDetails),
         'contributionId' => $params['oldPremium']['contribution_id'],
-        'isDeleted' => TRUE
+        'isDeleted' => TRUE,
       );
       CRM_Core_BAO_FinancialTrxn::createPremiumTrxn($params);
     }
index d148cf0cbe6a2ceb4db7d2fd2e3041fb496f3843..0877c23b2878b5360ddf5112d7279e751999b66d 100644 (file)
@@ -1022,7 +1022,7 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping {
               'Multi-Select',
               'AdvMulti-Select',
               'Multi-Select State/Province',
-              'Multi-Select Country'
+              'Multi-Select Country',
             );
 
             // override the operator to handle separator ( note: this might have some performance issues )
index 0ebe06e59788f32b6f8b7aff82ddd5da0289c849..1da5fcdb32e4e06b984e101ae6e0061f46373cf3 100644 (file)
@@ -516,7 +516,7 @@ MODIFY      {$columnName} varchar( $length )
           array(
             1 => $tableName,
             2 => $columnName,
-            3 => $customFieldID
+            3 => $customFieldID,
           )
         ));
     }
index 0f698b16351ea79001ab51bcdfe7c462c479adc6..9ad651613ba8b378672875c09287f3099b390fdf 100644 (file)
@@ -825,7 +825,7 @@ SELECT  id
       'city',
       'state_province',
       'postal_code',
-      'country'
+      'country',
     );
     $requiredBillingFields = array_diff($validBillingFields, array('middle_name', 'supplemental_address_1'));
     $validProfileFields = array();
index 928ca8d2931dacd76663ad1abe8ec096558f4d4f..0ad80bebb1526cedb7db31fcfe30d19d483299da 100644 (file)
@@ -1018,7 +1018,7 @@ class CRM_Core_BAO_UFGroup extends CRM_Core_DAO_UFGroup {
         elseif (in_array($name, array(
           'state_province',
           'country',
-          'county'
+          'county',
         ))) {
           $values[$index] = $details->$name;
           $idx = $name . '_id';
@@ -1183,7 +1183,7 @@ class CRM_Core_BAO_UFGroup extends CRM_Core_DAO_UFGroup {
               'deceased_date',
               'membership_start_date',
               'membership_end_date',
-              'join_date'
+              'join_date',
             ))) {
               $values[$index] = CRM_Utils_Date::customFormat($details->$name);
               $params[$index] = CRM_Utils_Date::isoToMysql($details->$name);
@@ -1233,7 +1233,7 @@ class CRM_Core_BAO_UFGroup extends CRM_Core_DAO_UFGroup {
             'phone',
             'im',
             'email',
-            'openid'
+            'openid',
           ))) {
             if ($type) {
               $detailName .= "-{$type}";
@@ -1243,7 +1243,7 @@ class CRM_Core_BAO_UFGroup extends CRM_Core_DAO_UFGroup {
           if (in_array($fieldName, array(
             'state_province',
             'country',
-            'county'
+            'county',
           ))) {
             $values[$index] = $details->$detailName;
             $idx = $detailName . '_id';
@@ -1449,7 +1449,7 @@ class CRM_Core_BAO_UFGroup extends CRM_Core_DAO_UFGroup {
       'is_update_dupe',
       'is_edit_link',
       'is_uf_link',
-      'is_cms_user'
+      'is_cms_user',
     );
     foreach ($fields as $field) {
       $params[$field] = CRM_Utils_Array::value($field, $params, FALSE);
@@ -1883,7 +1883,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       $config = CRM_Core_Config::singleton();
       if (!in_array($mode, array(
           CRM_Profile_Form::MODE_EDIT,
-          CRM_Profile_Form::MODE_SEARCH
+          CRM_Profile_Form::MODE_SEARCH,
         )) &&
         $config->defaultContactStateProvince
       ) {
@@ -1896,7 +1896,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       $config = CRM_Core_Config::singleton();
       if (!in_array($mode, array(
           CRM_Profile_Form::MODE_EDIT,
-          CRM_Profile_Form::MODE_SEARCH
+          CRM_Profile_Form::MODE_SEARCH,
         )) &&
         $config->defaultContactCountry
       ) {
@@ -1922,14 +1922,14 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
           }
           $form->add('select', $providerName, NULL,
             array(
-              '' => ts('- select -')
+              '' => ts('- select -'),
             ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_IM', 'provider_id'), $required
           );
         }
         else {
           $form->add('select', $name . '-provider_id', $title,
             array(
-              '' => ts('- select -')
+              '' => ts('- select -'),
             ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_IM', 'provider_id'), $required
           );
         }
@@ -1945,7 +1945,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
     elseif (in_array($fieldName, array(
       'membership_start_date',
       'membership_end_date',
-      'join_date'
+      'join_date',
     ))) {
       $form->addDate($name, $title, $required, array('formatType' => 'custom'));
     }
@@ -1969,7 +1969,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
     elseif (CRM_Utils_Array::value('name', $field) == 'membership_status') {
       $form->add('select', $name, $title,
         array(
-          '' => ts('- select -')
+          '' => ts('- select -'),
         ) + CRM_Member_PseudoConstant::membershipStatus(NULL, NULL, 'label'), $required
       );
     }
@@ -2039,7 +2039,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
           'Contact',
           'Contribution',
           'Participant',
-          'Membership'
+          'Membership',
         ))
       ) {
         $profileType = 'Individual';
@@ -2053,7 +2053,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       );
       $form->add('select', $name, $title,
         array(
-          '' => ts('- select -')
+          '' => ts('- select -'),
         ) + CRM_Core_PseudoConstant::greeting($greeting), $required
       );
       // add custom greeting element
@@ -2136,7 +2136,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       'receive_date',
       'receipt_date',
       'thankyou_date',
-      'cancel_date'
+      'cancel_date',
     ))) {
       $form->addDateTime($name, $title, $required, array('formatType' => 'activityDateTime'));
     }
@@ -2151,7 +2151,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       list($products, $options) = CRM_Contribute_BAO_Premium::getPremiumProductInfo();
       $sel = &$form->addElement('hierselect', $name, $title);
       $products = array(
-          '0' => ts('- select -')
+          '0' => ts('- select -'),
         ) + $products;
       $sel->setOptions(array($products, $options));
     }
@@ -2162,7 +2162,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
     elseif ($fieldName == 'financial_type') {
       $form->add('select', $name, $title,
         array(
-          '' => ts('- select -')
+          '' => ts('- select -'),
         ) + CRM_Contribute_PseudoConstant::financialType(), $required
       );
     }
@@ -2172,14 +2172,14 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       foreach (array(
                  'In Progress',
                  'Overdue',
-                 'Refunded'
+                 'Refunded',
                ) as $suppress) {
         unset($contributionStatuses[CRM_Utils_Array::key($suppress, $statusName)]);
       }
 
       $form->add('select', $name, $title,
         array(
-          '' => ts('- select -')
+          '' => ts('- select -'),
         ) + $contributionStatuses, $required
       );
     }
@@ -2187,7 +2187,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       $name = "soft_credit_type[$rowNumber]";
       $form->add('select', $name, $title,
         array(
-          '' => ts('- select -')
+          '' => ts('- select -'),
         ) + CRM_Core_OptionGroup::values("soft_credit_type")
       );
       //CRM-15350: choose SCT field default value as 'Gift' for membership use
@@ -2204,7 +2204,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
     elseif ($fieldName == 'contribution_page_id') {
       $form->add('select', $name, $title,
         array(
-          '' => ts('- select -')
+          '' => ts('- select -'),
         ) + CRM_Contribute_PseudoConstant::contributionPage(), $required, 'class="big"'
       );
     }
@@ -2214,14 +2214,14 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
     elseif ($fieldName == 'activity_status_id') {
       $form->add('select', $name, $title,
         array(
-          '' => ts('- select -')
+          '' => ts('- select -'),
         ) + CRM_Core_PseudoConstant::activityStatus(), $required
       );
     }
     elseif ($fieldName == 'activity_engagement_level') {
       $form->add('select', $name, $title,
         array(
-          '' => ts('- select -')
+          '' => ts('- select -'),
         ) + CRM_Campaign_PseudoConstant::engagementLevel(), $required
       );
     }
@@ -2235,7 +2235,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       }
       $form->add('select', $name, $title,
         array(
-          '' => ts('- select -')
+          '' => ts('- select -'),
         ) + CRM_Event_PseudoConstant::participantStatus(NULL, $cond, 'label'), $required
       );
     }
@@ -2246,7 +2246,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       else {
         $form->add('select', $name, $title,
           array(
-            '' => ts('- select -')
+            '' => ts('- select -'),
           ) + CRM_Event_PseudoConstant::participantRole(), $required
         );
       }
@@ -2267,7 +2267,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
         ));
         $form->add('select', $name, $title,
           array(
-            '' => ts('- select -')
+            '' => ts('- select -'),
           ) + $campaigns, $required, 'class="crm-select2 big"'
         );
       }
@@ -2314,7 +2314,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       'non_deductible_amount',
       'total_amount',
       'fee_amount',
-      'net_amount'
+      'net_amount',
     ))) {
       $form->addRule($name, ts('Please enter a valid amount.'), 'money');
     }
@@ -3133,7 +3133,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       'Contact',
       'Individual',
       'Organization',
-      'Household'
+      'Household',
     ), $componentGroupTypes, CRM_Contact_BAO_ContactType::subTypes());
 
     $gTypes = $gTypeValues = array();
@@ -3277,7 +3277,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
       'thankyou_date',
       'membership_start_date',
       'membership_end_date',
-      'join_date'
+      'join_date',
     );
     foreach ($fields as $name => $field) {
       $fldName = $isStandalone ? $name : "field[$componentId][$name]";
@@ -3298,7 +3298,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
         'financial_type',
         'payment_instrument',
         'participant_status',
-        'participant_role'
+        'participant_role',
       ))) {
         $defaults[$fldName] = $values["{$name}_id"];
       }
index 38cc161e94003723e3336b6834c3e6f76ef6dcfb..8a704f0fa39a6c3e89043eab5eb03d7565c2e6af 100644 (file)
@@ -347,7 +347,7 @@ AND    domain_id    = %4
             1 => $ufmatch->contact_id,
             2 => $uf,
             3 => $ufmatch->uf_id,
-            4 => $conflict
+            4 => $conflict,
           )
         );
         unset($conflict);
index a96787f2facc133cbc557bbac22d62e38e9b5775..6ba1658c12ac17bbafced776e211884d7ca30570 100644 (file)
@@ -96,7 +96,7 @@ class CRM_Core_ClassLoader {
     $include_paths = array(
       '.',
       $civicrm_base_path,
-      $packages_path
+      $packages_path,
     );
     $include_paths = implode(PATH_SEPARATOR, $include_paths);
     set_include_path($include_paths . PATH_SEPARATOR . get_include_path());
index 8912a343db16bd3cef5d7915005208a4664940e1..ccaf9c6700193dc088e946b160342efc8a51b85c 100644 (file)
@@ -484,7 +484,7 @@ class CRM_Core_Config extends CRM_Core_Config_Variables {
           $url = CRM_Utils_System::url('civicrm/admin/setting/path', 'reset=1');
           CRM_Core_Session::setStatus(ts('%1 has an incorrect directory path. Please go to the <a href="%2">path setting page</a> and correct it.', array(
             1 => $key,
-            2 => $url
+            2 => $url,
           )), ts('Check Settings'), 'alert');
         }
       }
index c15249286809a61ca085e3cd75005cf9e599544b..9ef41bc756abe8b2b5ee3af95a0555557ca3b6bb 100644 (file)
@@ -1638,7 +1638,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
         'id_field' => 'select_contact_id',
         'placeholder' => ts('Select someone else ...'),
         'show_hide' => TRUE,
-        'api' => array('params' => array('contact_type' => 'Individual'))
+        'api' => array('params' => array('contact_type' => 'Individual')),
       ), $autoCompleteField);
 
     if ($this->canUseAjaxContactLookups()) {
index a8818fe0c89f46f43f76e12a0f071129e18e87d6..7a9b4332c70095d8f0a9cb4523e7c3147d6f79f9 100644 (file)
@@ -173,7 +173,7 @@ class CRM_Core_Form_RecurringEntity {
                           'thursday'  => 'Thursday',
                           'friday'    => 'Friday',
                           'saturday'  => 'Saturday',
-                          'sunday'    => 'Sunday'
+                          'sunday'    => 'Sunday',
                          );
     $form->add('select', 'repetition_frequency_unit', ts('Repeats:'), $freqUnitsDisplay);
     $numericOptions = CRM_Core_SelectValues::getNumericOptions(1, 30);
@@ -195,7 +195,7 @@ class CRM_Core_Form_RecurringEntity {
                             'second' => 'Second',
                             'third' => 'Third',
                             'fourth' => 'Fourth',
-                            'last'  => 'Last'
+                            'last'  => 'Last',
                          );
     $form->add('select', 'entity_status_1', ts(''), $dayOfTheWeekNo);
     $form->add('select', 'entity_status_2', ts(''), $dayOfTheWeek);
@@ -222,7 +222,7 @@ class CRM_Core_Form_RecurringEntity {
         ),
         array(
           'type' => 'cancel',
-          'name' => ts('Cancel')
+          'name' => ts('Cancel'),
         ),
       )
     );
@@ -370,7 +370,7 @@ class CRM_Core_Form_RecurringEntity {
                 'name'        => $type . '_repeat_exclude_dates_' . $actionScheduleObj->entity_value,
                 'title'       => $type . ' recursion',
                 'is_reserved' => 0,
-                'is_active'   => 1
+                'is_active'   => 1,
               );
           $opGroup = CRM_Core_BAO_OptionGroup::add($optionGroupParams);
           if ($opGroup->id) {
@@ -385,7 +385,7 @@ class CRM_Core_Form_RecurringEntity {
                     'name'            => $opGroup->name,
                     'description'     => 'Used for recurring ' . $type,
                     'weight'          => CRM_Utils_Weight::updateOtherWeights('CRM_Core_DAO_OptionValue', $oldWeight, CRM_Utils_Array::value('weight', $params), $fieldValues),
-                    'is_active'       => 1
+                    'is_active'       => 1,
                   );
               $excludeDateList[] = $optionGroupValue['value'];
               CRM_Core_BAO_OptionValue::add($optionGroupValue);
index 5f880e1d2b21e7541f2d9b829f2051f34b761bce..a2d46e79e96ca445b8bc92682500b810e5cbd940 100644 (file)
@@ -45,7 +45,7 @@ class CRM_Core_InnoDBIndexer {
     if ($fresh || self::$singleton === NULL) {
       $indices = array(
         'civicrm_address' => array(
-          array('street_address', 'city', 'postal_code')
+          array('street_address', 'city', 'postal_code'),
         ),
         'civicrm_activity' => array(
           array('subject', 'details'),
@@ -57,7 +57,7 @@ class CRM_Core_InnoDBIndexer {
           array('source', 'amount_level', 'trxn_Id', 'invoice_id'),
         ),
         'civicrm_email' => array(
-          array('email')
+          array('email'),
         ),
         'civicrm_membership' => array(
           array('source'),
index 5a562d6a1fea4f9b68908962f0c03c4d5094261b..ca4deb4f275cb6fcf174c82f4357ad8e24a26ac4 100644 (file)
@@ -279,7 +279,7 @@ class CRM_Core_ManagedEntities {
       case 'unused':
         $getRefCount = civicrm_api3($dao->entity_type, 'getrefcount', array(
           'debug' => 1,
-          'id' => $dao->entity_id
+          'id' => $dao->entity_id,
         ));
 
         $total = 0;
@@ -304,7 +304,7 @@ class CRM_Core_ManagedEntities {
       }
 
       CRM_Core_DAO::executeQuery('DELETE FROM civicrm_managed WHERE id = %1', array(
-        1 => array($dao->id, 'Integer')
+        1 => array($dao->id, 'Integer'),
       ));
     }
   }
index 70c025d946fc31e8982aaa635fec07b858d261cc..c52693c8e8539a996224609d09aaaeba096ba1b3 100644 (file)
@@ -315,7 +315,7 @@ abstract class CRM_Core_Payment {
         'attributes' => array(
           'size' => 20,
           'maxlength' => 20,
-          'autocomplete' => 'off'
+          'autocomplete' => 'off',
         ),
         'is_required' => TRUE,
       ),
@@ -327,7 +327,7 @@ abstract class CRM_Core_Payment {
         'attributes' => array(
           'size' => 5,
           'maxlength' => 10,
-          'autocomplete' => 'off'
+          'autocomplete' => 'off',
         ),
         'is_required' => CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
           'cvv_backoffice_required',
@@ -371,7 +371,7 @@ abstract class CRM_Core_Payment {
         'attributes' => array(
           'size' => 20,
           'maxlength' => 34,
-          'autocomplete' => 'on'
+          'autocomplete' => 'on',
         ),
         'is_required' => TRUE,
       ),
@@ -384,7 +384,7 @@ abstract class CRM_Core_Payment {
         'attributes' => array(
           'size' => 20,
           'maxlength' => 34,
-          'autocomplete' => 'off'
+          'autocomplete' => 'off',
         ),
         'rules' => array(
           array(
@@ -403,7 +403,7 @@ abstract class CRM_Core_Payment {
         'attributes' => array(
           'size' => 20,
           'maxlength' => 11,
-          'autocomplete' => 'off'
+          'autocomplete' => 'off',
         ),
         'is_required' => TRUE,
         'rules' => array(
@@ -421,11 +421,11 @@ abstract class CRM_Core_Payment {
         'attributes' => array(
           'size' => 20,
           'maxlength' => 64,
-          'autocomplete' => 'off'
+          'autocomplete' => 'off',
         ),
         'is_required' => TRUE,
 
-      )
+      ),
     );
   }
 
index 2a0ff4dc0ec4941294874ab3200b6c27a954913d..673bbc60f664e9450035098238901da7b630b856 100644 (file)
@@ -569,7 +569,7 @@ INNER JOIN civicrm_membership_payment mp ON m.id = mp.membership_id AND mp.contr
   public function transactionExists($trxn_id) {
     if (CRM_Core_DAO::singleValueQuery("SELECT count(*) FROM civicrm_contribution WHERE trxn_id = %1",
       array(
-        1 => array($trxn_id, 'String')
+        1 => array($trxn_id, 'String'),
       ))) {
       return TRUE;
     }
index c1901c60019ab84823cbba7d85e221d3e8fd47f7..000ccc6d73b07f9fad1076be223707c430c7ce8f 100644 (file)
@@ -314,7 +314,7 @@ class CRM_Core_Payment_Realex extends CRM_Core_Payment {
           array(
             1 => xml_get_error_code($xmlparser),
             2 => xml_get_current_line_number($xmlparser),
-            3 => xml_get_current_column_number($xmlparser)
+            3 => xml_get_current_column_number($xmlparser),
           )
         );
       }
index 05cdc7d335ae52db7fdd77712b078edb0f692f89..b917d2af77be5f00c1d61939e584ad9288039809 100644 (file)
@@ -591,7 +591,7 @@ class CRM_Core_Permission {
     static $permissions = array();
     if (empty($permissions)) {
       $permissions = array(
-        'administer CiviCRM'
+        'administer CiviCRM',
       );
       $components = CRM_Core_Component::getComponents();
       foreach ($components as $comp) {
index 572e96305879800c1dbfdba0aa0188b02545351a..fcfc5436a90cc6c75bae405f4b118d19d951f803 100644 (file)
@@ -79,7 +79,7 @@ class CRM_Core_Reference_Basic implements CRM_Core_Reference_Interface {
   public function findReferences($targetDao) {
     $targetColumn = $this->getTargetKey();
     $params = array(
-      1 => array($targetDao->$targetColumn, 'String')
+      1 => array($targetDao->$targetColumn, 'String'),
     );
     $sql = <<<EOS
 SELECT id
@@ -100,7 +100,7 @@ EOS;
   public function getReferenceCount($targetDao) {
     $targetColumn = $this->getTargetKey();
     $params = array(
-      1 => array($targetDao->$targetColumn, 'String')
+      1 => array($targetDao->$targetColumn, 'String'),
     );
     $sql = <<<EOS
 SELECT count(id)
@@ -113,7 +113,7 @@ EOS;
       'type' => get_class($this),
       'table' => $this->getReferenceTable(),
       'key' => $this->getReferenceKey(),
-      'count' => CRM_Core_DAO::singleValueQuery($sql, $params)
+      'count' => CRM_Core_DAO::singleValueQuery($sql, $params),
     );
   }
 }
index 32b9f1caa58293a03465fb34cd4991ff69e3ee85..863018d9ad3fca4618bfa7663a8b34df6c1db3d5 100644 (file)
@@ -74,7 +74,7 @@ EOS;
       'type' => get_class($this),
       'table' => $this->getReferenceTable(),
       'key' => $this->getReferenceKey(),
-      'count' => CRM_Core_DAO::singleValueQuery($sql, $params)
+      'count' => CRM_Core_DAO::singleValueQuery($sql, $params),
     );
   }
 
index d65ddff7574b2f5db01e45be2ba9501257ab5c43..09fe679c7bc1446c80f1be2fac94d3cbea216b79 100644 (file)
@@ -120,7 +120,7 @@ class CRM_Core_SelectValues {
       'automatic' => ts("Automatic"),
       'location-only' => ts("Only send to email addresses assigned to the specified location"),
       'location-prefer' => ts("Prefer email addresses assigned to the specified location"),
-      'location-exclude' => ts("Exclude email addresses assigned to the specified location")
+      'location-exclude' => ts("Exclude email addresses assigned to the specified location"),
     );
   }
 
@@ -143,7 +143,7 @@ class CRM_Core_SelectValues {
     return array(
       ts('No auto-renew option'),
       ts('Give option, but not required'),
-      ts('Auto-renew required')
+      ts('Auto-renew required'),
     );
   }
 
@@ -519,7 +519,7 @@ class CRM_Core_SelectValues {
       '{event.fee_amount}' => ts('Event Fees'),
       '{event.info_url}' => ts('Event Info URL'),
       '{event.registration_url}' => ts('Event Registration URL'),
-      '{event.balance}' => ts('Event Balance')
+      '{event.balance}' => ts('Event Balance'),
     );
   }
 
index a3d623ba10720af1359de691bc9f03358041ebc8..0e7ee54da2071c8b356c23d5d0e0423de10b5fc0 100644 (file)
@@ -292,7 +292,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form {
       ts('Used For'),
       array(
         'name' => 'extends[0]',
-        'style' => 'vertical-align: top;'
+        'style' => 'vertical-align: top;',
       ),
       TRUE
     );
index 1a94fd5ba559004b2eb0ad9386f29e32e9724bb8..f3f24ad9436450d0e615b72362685b357d939fc9 100644 (file)
@@ -174,7 +174,7 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form {
       array(
       1 => $this->_srcFieldLabel,
           2 => $dstGroup,
-        3 => $srcUrl
+        3 => $srcUrl,
         )), '', 'success');
   }
 }
index f29b9c9c57c3cc6f3ca79f5d40cca4614d566886..2b5198dca2235a0550732301e8986ef882f18af2 100644 (file)
@@ -1039,7 +1039,7 @@ INNER JOIN  civicrm_membership membership2 ON membership1.membership_type_id = m
             array(
               1 => $block,
               2 => $count,
-              3 => $allLocationTypes[$locTypeId]
+              3 => $allLocationTypes[$locTypeId],
             )
           );
 
@@ -1633,7 +1633,7 @@ INNER JOIN  civicrm_membership membership2 ON membership1.membership_type_id = m
           'start_date' => CRM_Utils_Date::isoToMysql($dao->start_date),
           'end_date' => CRM_Utils_Date::isoToMysql($dao->end_date),
           'source' => $dao->source,
-          'status_id' => $dao->status_id
+          'status_id' => $dao->status_id,
         );
         // create/update membership(s) for related contact(s)
         CRM_Member_BAO_Membership::createRelatedMemberships($membershipParams, $dao);
index a41c375459e70f5031d13662a5f2f80c4ced067e..9b122cd824622b99bcc5d5ed0d779714c218b059 100644 (file)
@@ -702,7 +702,7 @@ WHERE civicrm_address.geo_code_1 IS NOT NULL
       $addressValues = CRM_Core_BAO_Location::getValues($params, TRUE);
       $location['address'] = str_replace(array(
           "\r",
-          "\n"
+          "\n",
         ), '', addslashes(nl2br($addressValues['address'][1]['display_text'])));
 
       $location['url'] = CRM_Utils_System::url('civicrm/event/register', 'reset=1&id=' . $dao->event_id);
@@ -930,7 +930,7 @@ WHERE civicrm_event.is_active = 1
       'is_show_location',
       'default_fee_id',
       'default_discount_fee_id',
-      'is_template'
+      'is_template',
     );
 
     CRM_Core_DAO::commonRetrieve('CRM_Event_DAO_Event', $eventParams, $eventValues, $returnProperties);
@@ -1524,7 +1524,7 @@ WHERE civicrm_event.is_active = 1
         elseif (in_array($name, array(
           'addressee',
           'email_greeting',
-          'postal_greeting'
+          'postal_greeting',
         ))) {
           $filterCondition = array('greeting_type' => $name);
           $greeting = CRM_Core_PseudoConstant::greeting($filterCondition);
@@ -1589,7 +1589,7 @@ WHERE civicrm_event.is_active = 1
           if (in_array($fieldName, array(
             'state_province',
             'country',
-            'county'
+            'county',
           ))) {
             $values[$index] = $params[$detailName];
             $idx = $detailName . '_id';
@@ -1700,7 +1700,7 @@ WHERE  id = $cfID
             elseif (in_array($name, array(
               'birth_date',
               'deceased_date',
-              'participant_register_date'
+              'participant_register_date',
             ))) {
               $values[$index] = CRM_Utils_Date::customFormat(CRM_Utils_Date::format($params[$name]));
             }
index 01c738d53b513292a131fdd4445e0c1a5db0fdad..892657bf5a131788dd00a88f5edec685d845b875 100644 (file)
@@ -244,7 +244,7 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant {
     $hasNoteField = FALSE;
     foreach (array(
                'note',
-               'participant_note'
+               'participant_note',
              ) as $noteFld) {
       if (array_key_exists($noteFld, $params)) {
         $noteValue = $params[$noteFld];
@@ -646,7 +646,7 @@ GROUP BY  participant.event_id
           'title' => ts('Participant Note'),
           'name' => 'participant_note',
           'headerPattern' => '/(participant.)?note$/i',
-        )
+        ),
       );
 
       // Split status and status id into 2 fields
@@ -656,7 +656,7 @@ GROUP BY  participant.event_id
           'title' => ts('Participant Status'),
           'name' => 'participant_status',
           'data_type' => CRM_Utils_Type::T_STRING,
-        )
+        ),
       );
       $tmpFields['participant_status_id']['title'] = ts('Participant Status Id');
 
@@ -667,7 +667,7 @@ GROUP BY  participant.event_id
           'title' => ts('Participant Role'),
           'name' => 'participant_role',
           'data_type' => CRM_Utils_Type::T_STRING,
-        )
+        ),
       );
       $tmpFields['participant_role_id']['title'] = ts('Participant Role Id');
 
@@ -676,7 +676,7 @@ GROUP BY  participant.event_id
           'title' => ts('Event Type'),
           'name' => 'event_type',
           'data_type' => CRM_Utils_Type::T_STRING,
-        )
+        ),
       );
 
       $tmpContactField = $contactFields = array();
@@ -750,21 +750,21 @@ GROUP BY  participant.event_id
         'participant_note' => array(
           'title' => 'Participant Note',
           'name' => 'participant_note',
-        )
+        ),
       );
 
       $participantStatus = array(
         'participant_status' => array(
           'title' => 'Participant Status',
           'name' => 'participant_status',
-        )
+        ),
       );
 
       $participantRole = array(
         'participant_role' => array(
           'title' => 'Participant Role',
           'name' => 'participant_role',
-        )
+        ),
       );
 
       //CRM-13595 add event id to participant export
@@ -772,13 +772,13 @@ GROUP BY  participant.event_id
         'event_id' => array(
           'title' => 'Event ID',
           'name' => 'event_id',
-        )
+        ),
       );
       $eventtitle = array(
         'event_title' => array(
           'title' => 'Event Title',
           'name' => 'event_title',
-        )
+        ),
       );
 
       $discountFields = CRM_Core_DAO_Discount::export();
@@ -1649,7 +1649,7 @@ UPDATE  civicrm_participant
     if (is_string($emptySeats) && $emptySeats !== NULL) {
       $maxParticipants = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $eventId, 'max_participants');
       $eventfullMsg = ts("This event currently has the maximum number of participants registered (%1). However, you can still override this limit and register additional participants using this form.", array(
-          1 => $maxParticipants
+          1 => $maxParticipants,
         )) . '<br />';
     }
 
@@ -1772,7 +1772,7 @@ WHERE    civicrm_participant.contact_id = {$contactID} AND
     // get additional participant ids (including cancelled)
     if ($participantId) {
       $ids = array_merge(array(
-        $participantId
+        $participantId,
       ), self::getAdditionalParticipantIds($participantId,
         $excludeCancelled
       ));
@@ -1829,7 +1829,7 @@ LEFT JOIN civicrm_price_field cpf ON cpfv.price_field_id = cpf.id
 WHERE cpf.price_set_id = %1 AND cpfv.label LIKE %2";
       $params = array(
         1 => array($priceSetId, 'Integer'),
-        2 => array($feeLevel, 'String')
+        2 => array($feeLevel, 'String'),
       );
       $mainAmount = CRM_Core_DAO::singleValueQuery($query, $params);
       $relationTypeId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Discounts Account is' "));
@@ -2127,7 +2127,7 @@ WHERE (li.entity_table = 'civicrm_participant' AND li.entity_id = {$participantI
           'payment_instrument_id' => $updatedContribution->payment_instrument_id,
           'contribution_id' => $updatedContribution->id,
           'trxn_date' => date('YmdHis'),
-          'currency' => $updatedContribution->currency
+          'currency' => $updatedContribution->currency,
         );
         $adjustedTrxn = CRM_Core_BAO_FinancialTrxn::create($adjustedTrxnValues);
       }
index 4eada5b45b76ab9e309ff38cba63d4670d1e8980..bcfa6d288c5aada7630b0f951520ad70ce13a0f8 100644 (file)
@@ -616,7 +616,7 @@ class CRM_Event_Form_ManageEvent_Fee extends CRM_Event_Form_ManageEvent {
                 'value' => CRM_Utils_Rule::cleanMoney(trim($values[$i])),
                 'weight' => $i,
                 'is_active' => 1,
-                'is_default' => $default == $i
+                'is_default' => $default == $i,
               );
             }
           }
@@ -697,7 +697,7 @@ class CRM_Event_Form_ManageEvent_Fee extends CRM_Event_Form_ManageEvent {
                     'value' => CRM_Utils_Rule::cleanMoney(trim($values[$i][$j])),
                     'weight' => $i,
                     'is_active' => 1,
-                    'is_default' => $default == $i
+                    'is_default' => $default == $i,
                   );
                 }
               }
index bb442f8244bd83bf79e6c43ad65f253ac8ec6aca..d6f7ee2370230e151cbfd3b2f7cf92daf28d036a 100644 (file)
@@ -117,7 +117,7 @@ class CRM_Event_Form_ManageEvent_Repeat extends CRM_Event_Form_ManageEvent {
           'table'         => 'civicrm_price_set_entity',
           'findCriteria'  => array(
             'entity_id'    => $this->_id,
-            'entity_table' => 'civicrm_event'
+            'entity_table' => 'civicrm_event',
           ),
           'linkedColumns' => array('entity_id'),
           'isRecurringEntityRecord' => FALSE,
@@ -126,7 +126,7 @@ class CRM_Event_Form_ManageEvent_Repeat extends CRM_Event_Form_ManageEvent {
           'table'         => 'civicrm_uf_join',
           'findCriteria'  => array(
             'entity_id'    => $this->_id,
-            'entity_table' => 'civicrm_event'
+            'entity_table' => 'civicrm_event',
           ),
           'linkedColumns' => array('entity_id'),
           'isRecurringEntityRecord' => FALSE,
@@ -135,7 +135,7 @@ class CRM_Event_Form_ManageEvent_Repeat extends CRM_Event_Form_ManageEvent {
           'table'         => 'civicrm_tell_friend',
           'findCriteria'  => array(
             'entity_id'    => $this->_id,
-            'entity_table' => 'civicrm_event'
+            'entity_table' => 'civicrm_event',
           ),
           'linkedColumns' => array('entity_id'),
           'isRecurringEntityRecord' => TRUE,
@@ -144,7 +144,7 @@ class CRM_Event_Form_ManageEvent_Repeat extends CRM_Event_Form_ManageEvent {
           'table'         => 'civicrm_pcp_block',
           'findCriteria'  => array(
             'entity_id'    => $this->_id,
-            'entity_table' => 'civicrm_event'
+            'entity_table' => 'civicrm_event',
           ),
           'linkedColumns' => array('entity_id'),
           'isRecurringEntityRecord' => TRUE,
index e87b4aab7dfd1151942d7b7f0b2aa0c3413843ad..c2506d53b27cb7c4fb0734347f103800e96f6bf3 100644 (file)
@@ -647,7 +647,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
       'select' => array('minimumInputLength' => 0),
       'api' => array(
         'extra' => array('campaign_id', 'default_role_id', 'event_type_id'),
-      )
+      ),
     );
 
     if ($this->_mode) {
@@ -752,7 +752,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
     $path = CRM_Utils_System::currentPath();
     $excludeForPaths = array(
       'civicrm/contact/search',
-      'civicrm/group/search'
+      'civicrm/group/search',
     );
     if (!in_array($path, $excludeForPaths)) {
       $buttons[] = array(
index f96fc73e897d614b61b819d8f3eee49ca03709b2..44eafbc624e8479c7703ae26207b789751da7c19 100644 (file)
@@ -208,7 +208,7 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form {
       $buttons[] = array(
         'type' => 'upload',
         'name' => ts('Save and Record Payment'),
-        'subName' => 'new'
+        'subName' => 'new',
       );
     }
     $buttons[] = array(
index f6616307304249945a94a7532502a95064f4260d..f67dceeeecedd7a80e98ca34f18e38f31f213f21 100644 (file)
@@ -324,7 +324,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
       $profileAddressFields = array();
       foreach ($this->_fields as $key => $value) {
         CRM_Core_BAO_UFField::assignAddressField($key, $profileAddressFields, array(
-          'uf_group_id' => $this->_values['custom_pre_id']
+          'uf_group_id' => $this->_values['custom_pre_id'],
         ));
       }
       $this->set('profileAddressFields', $profileAddressFields);
index 54fd23af494b3f401d92f69d1161619fdc60c517..ceac39f145f0dd9918b9861a249fb359e4067cb9 100644 (file)
@@ -388,7 +388,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task {
       'componentName' => 'Event',
       'contribution_id' => $contributionId,
       'contribution_status_id' => $contributionStatusId,
-      'skipComponentSync' => 1
+      'skipComponentSync' => 1,
     );
 
     //change related contribution status.
index ca9037a79d1f95c74d80cc1792e37a5448286765..62da7d43d46c20dc1f1e697dc06460d71cb8cf3b 100644 (file)
@@ -380,7 +380,7 @@ class CRM_Event_Import_Parser_Participant extends CRM_Event_Import_Parser {
           if (!empty($formatted['fee_level'])) {
             $otherParams = array(
               'fee_label' => $formatted['fee_level'],
-              'event_id' => $newParticipant->event_id
+              'event_id' => $newParticipant->event_id,
             );
             CRM_Price_BAO_LineItem::syncLineItems($newParticipant->id, 'civicrm_participant', $newParticipant->fee_amount, $otherParams);
           }
index 6273688e5670a29f4c58c63c1cd287b0525eadce..46b03191a9a0d550b41c678640389e6e040638d8 100644 (file)
@@ -91,7 +91,7 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page {
           'qs' => 'reset=1&action=copy&id=%%id%%',
           'extra' => 'onclick = "return confirm(\'' . $copyExtra . '\');"',
           'title' => ts('Copy Event'),
-        )
+        ),
       );
     }
     return self::$_actionLinks;
@@ -114,7 +114,7 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page {
         array(
           'title' => ts('Info and Settings'),
           'url' => 'civicrm/event/manage/settings',
-          'field' => 'id'
+          'field' => 'id',
         );
       self::$_tabLinks[$cacheKey]['location'] =
         array(
index 1c9e216bb1fb3edf2f93c18eb211cfed9bf07f20..77e75cafa73175a5feca36b8adf7aaf42c3b15d6 100644 (file)
@@ -926,7 +926,7 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c
               elseif (is_object($relDAO) && in_array($relationField, array(
                   'email_greeting',
                   'postal_greeting',
-                  'addressee'
+                  'addressee',
                 ))
               ) {
                 //special case for greeting replacement
@@ -1047,7 +1047,7 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c
             elseif (in_array($field, array(
               'email_greeting',
               'postal_greeting',
-              'addressee'
+              'addressee',
             ))) {
               //special case for greeting replacement
               $fldValue = "{$field}_display";
@@ -1410,7 +1410,7 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c
         $changeFields = array(
           'groups',
           'tags',
-          'notes'
+          'notes',
         );
 
         if (in_array($fieldName, $changeFields)) {
@@ -1844,7 +1844,7 @@ WHERE  id IN ( $deleteIDString )
       'contact_is_deleted' => 'is_deleted',
       'name' => 'address_name',
       'provider_id' => 'im_service_provider',
-      'phone_type_id' => 'phone_type'
+      'phone_type_id' => 'phone_type',
     );
 
     //figure out which columns are to be replaced by which ones
index a9698a52877283f5f9c27602a2b7382f54842261..75b46517b93872cf24bb0a4ff582b238dce410ad 100644 (file)
@@ -75,7 +75,7 @@ class CRM_Extension_Downloader {
             //1 => $this->containerDir,
             1 => $url,
           )
-        )
+        ),
       );
     }
 
index d9d11650037c6ae4ebe76043dd093689d022fc17..7908545f287abf556d20c6ef1c91a5be1f1a3866 100644 (file)
@@ -78,7 +78,7 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
         'entity_table' => 'civicrm_payment_processor',
         'entity_id' => $processor->id,
         'account_relationship' => $relationTypeId,
-        'financial_account_id' => $params['financial_account_id']
+        'financial_account_id' => $params['financial_account_id'],
       );
       CRM_Financial_BAO_FinancialTypeAccount::add($values);
     }
index bbd3c7006b0cf659846dfa59a6daa9eaf43ad8a8..2cfd7adf1b89633d4605eabca74022e35b38d883 100644 (file)
@@ -137,7 +137,7 @@ class CRM_Financial_Form_BatchTransaction extends CRM_Contribute_Form {
     'type' => 'submit',
           'name' => ts('Search'),
           'isDefault' => TRUE,
-        )
+        ),
       )
     );
 
@@ -189,7 +189,7 @@ class CRM_Financial_Form_BatchTransaction extends CRM_Contribute_Form {
           'ref'   => 'disable-action',
           'title' => ts('Assign Transaction'),
           'extra' => 'onclick = "assignRemove( %%id%%,\'' . 'assign' . '\' );"',
-        )
+        ),
       );
     }
     return self::$_links;
index bdc0406a5c7b413602b776436ea7a165f0ebb41e..fdfb27757689fa38c7cfa57f5ec680c8b1fd8e29 100644 (file)
@@ -158,7 +158,7 @@ class CRM_Financial_Form_FinancialAccount extends CRM_Contribute_Form {
         $relationshipId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Sales Tax Account is' "));
         $params = array(
           'financial_account_id'  => $self->_id,
-          'account_relationship' => $relationshipId
+          'account_relationship' => $relationshipId,
         );
         $result = CRM_Financial_BAO_FinancialTypeAccount::retrieve($params, $defaults);
         if ($result) {
index e1d396a348519275f3a7571eb401816d11bed765..0e0f58151bf628447734f61482be60e2d49136aa 100644 (file)
@@ -113,7 +113,7 @@ class CRM_Financial_Form_FinancialTypeAccount extends CRM_Contribute_Form {
       array(
     'title' => ts('Financial Type Accounts'),
         'url' => $url,
-      )
+      ),
     );
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
   }
@@ -171,7 +171,7 @@ class CRM_Financial_Form_FinancialTypeAccount extends CRM_Contribute_Form {
            '6' => 1, //Asset
            '7' => 4, //cost of sales
            '8' => 1, //premium inventory
-           '9' => 3 //discount account is
+           '9' => 3 //discount account is,
           );
 
         $financialAccountType = CRM_Utils_Array::value($this->_submitValues['account_relationship'], $financialAccountType);
@@ -181,7 +181,7 @@ class CRM_Financial_Form_FinancialTypeAccount extends CRM_Contribute_Form {
       }
       else {
         $financialAccountSelect = array(
-          'select' => ts('- select -')
+          'select' => ts('- select -'),
         ) + CRM_Contribute_PseudoConstant::financialAccount();
       }
     }
@@ -193,7 +193,7 @@ class CRM_Financial_Form_FinancialTypeAccount extends CRM_Contribute_Form {
         '6' => 1, //Asset
         '7' => 4, //cost of sales
         '8' => 1, //premium inventory
-        '9' => 3 //discount account is
+        '9' => 3 //discount account is,
        );
 
       $financialAccountType = $financialAccountType[$this->_defaultValues['account_relationship']];
@@ -213,16 +213,16 @@ class CRM_Financial_Form_FinancialTypeAccount extends CRM_Contribute_Form {
       array(
         'type'      => 'next',
         'name'      => ts('Save'),
-        'isDefault' => TRUE
+        'isDefault' => TRUE,
       ),
       array(
         'type'      => 'next',
         'name'      => ts('Save and New'),
-        'subName'   => 'new'
+        'subName'   => 'new',
       ),
       array(
         'type'      => 'cancel',
-        'name'      => ts('Cancel')
+        'name'      => ts('Cancel'),
       ))
     );
     $this->addFormRule(array('CRM_Financial_Form_FinancialTypeAccount', 'formRule'), $this);
@@ -264,7 +264,7 @@ class CRM_Financial_Form_FinancialTypeAccount extends CRM_Contribute_Form {
     if (!empty($values['account_relationship']) && !empty($values['financial_account_id'])) {
       $params = array(
         'account_relationship' => $values['account_relationship'],
-        'entity_id'            => $self->_aid
+        'entity_id'            => $self->_aid,
       );
       $defaults = array();
       if ($self->_action == CRM_Core_Action::ADD) {
index df27a3b326c7775f48a8a09d5dfcdc44ba061c2f..d136309f3a6d4756a130cb19edafdab383ea8eb8 100644 (file)
@@ -113,7 +113,7 @@ class CRM_Financial_Form_Search extends CRM_Core_Form {
           'type' => 'refresh',
           'name' => ts('Search'),
           'isDefault' => TRUE,
-        )
+        ),
       )
     );
     parent::buildQuickForm();
index fb58e1e2990591430df3fb48da73bab4e97f8e6f..d91d819b5726dfa7397c3a1db00b8b56b01580a3 100644 (file)
@@ -76,7 +76,7 @@ class CRM_Financial_Page_AJAX {
       array(
         'name'  => ts('- select -'),
         'value' => 'select',
-      )
+      ),
     );
 
     if (!empty($result)) {
@@ -121,7 +121,7 @@ class CRM_Financial_Page_AJAX {
       array(
         'name'  => ts('- Select Financial Account Relationship -'),
         'value' => 'select',
-      )
+      ),
     );
 
     $countResult = count($financialAccountType[$financialAccountTypeId]);
@@ -397,7 +397,7 @@ class CRM_Financial_Page_AJAX {
             array(
               'id' => $financialItem->id,
               'contid' => $financialItem->contributionID,
-              'cid' => $financialItem->contact_id
+              'cid' => $financialItem->contact_id,
             ),
             ts('more'),
             FALSE,
@@ -415,7 +415,7 @@ class CRM_Financial_Page_AJAX {
             array(
               'id' => $financialItem->id,
               'contid' => $financialItem->contributionID,
-              'cid' => $financialItem->contact_id
+              'cid' => $financialItem->contact_id,
             ),
             ts('more'),
             FALSE,
@@ -435,7 +435,7 @@ class CRM_Financial_Page_AJAX {
           array(
             'id' => $financialItem->id,
             'contid' => $financialItem->contributionID,
-            'cid' => $financialItem->contact_id
+            'cid' => $financialItem->contact_id,
           ),
           ts('more'),
           FALSE,
index 3ac585d7ac69be695b60b5e25dbd700940ca42ce..4e5fb2d32b83641ada5f4d979a3830c02595f10f 100644 (file)
@@ -109,7 +109,7 @@ class CRM_Financial_Page_BatchTransaction extends CRM_Core_Page_Basic {
           'title' => ts('Accounting Batches'),
           'url' => CRM_Utils_System::url('civicrm/financial/financialbatches',
             "reset=1&batchStatus=$statusID"),
-        )
+        ),
       );
 
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
index 95f5c5586164397ef8db57fc4905083a53040e11..91e54dd471dec60a3bfac1a9554e3b22055260ad 100644 (file)
@@ -157,7 +157,7 @@ class CRM_Friend_BAO_Friend extends CRM_Friend_DAO_Friend {
       $targetParams = array(
         'activity_id' => $activity->id,
         'contact_id'  => $contact,
-        'record_type_id' => $targetID
+        'record_type_id' => $targetID,
       );
 
       // See if it already exists
index e81fdbce48c3fc9247b1d112d4807d0dec1ac7b6..1f4f58424dcb1a9888d64651ddbcfa7ea68e5721 100644 (file)
@@ -79,7 +79,7 @@ class CRM_Logging_ReportSummary extends CRM_Report_Form {
           'entity_table' => TRUE,
           'bracket_info' => array(
             'table' => 'log_civicrm_note',
-            'column' => 'subject'
+            'column' => 'subject',
           ),
         ),
         'log_civicrm_note_comment' => array(
@@ -87,12 +87,12 @@ class CRM_Logging_ReportSummary extends CRM_Report_Form {
           'table_name' => 'log_civicrm_note',
           'joins' => array(
             'table' => 'log_civicrm_note',
-            'join' => "entity_log_civireport.entity_id = fk_table.id AND entity_log_civireport.entity_table = 'civicrm_note'"
+            'join' => "entity_log_civireport.entity_id = fk_table.id AND entity_log_civireport.entity_table = 'civicrm_note'",
           ),
           'entity_table' => TRUE,
           'bracket_info' => array(
             'table' => 'log_civicrm_note',
-            'column' => 'subject'
+            'column' => 'subject',
           ),
         ),
         'log_civicrm_group_contact' => array(
@@ -100,7 +100,7 @@ class CRM_Logging_ReportSummary extends CRM_Report_Form {
           'bracket_info' => array(
             'entity_column' => 'group_id',
             'table' => 'log_civicrm_group',
-            'column' => 'title'
+            'column' => 'title',
           ),
           'action_column' => 'status',
           'log_type' => 'Group',
@@ -110,16 +110,16 @@ class CRM_Logging_ReportSummary extends CRM_Report_Form {
           'bracket_info' => array(
             'entity_column' => 'tag_id',
             'table' => 'log_civicrm_tag',
-            'column' => 'name'
+            'column' => 'name',
           ),
-          'entity_table' => TRUE
+          'entity_table' => TRUE,
         ),
         'log_civicrm_relationship' => array(
           'fk' => 'contact_id_a',
           'bracket_info' => array(
             'entity_column' => 'relationship_type_id',
             'table' => 'log_civicrm_relationship_type',
-            'column' => 'label_a_b'
+            'column' => 'label_a_b',
           ),
         ),
         'log_civicrm_activity_for_target' => array(
@@ -127,11 +127,11 @@ class CRM_Logging_ReportSummary extends CRM_Report_Form {
           'table_name' => 'log_civicrm_activity',
           'joins' => array(
             'table' => 'log_civicrm_activity_contact',
-            'join' => "(entity_log_civireport.id = fk_table.activity_id AND fk_table.record_type_id = {$targetID})"
+            'join' => "(entity_log_civireport.id = fk_table.activity_id AND fk_table.record_type_id = {$targetID})",
           ),
           'bracket_info' => array(
             'entity_column' => 'activity_type_id',
-            'options' => CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE)
+            'options' => CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE),
           ),
           'log_type' => 'Activity',
         ),
@@ -140,11 +140,11 @@ class CRM_Logging_ReportSummary extends CRM_Report_Form {
           'table_name' => 'log_civicrm_activity',
           'joins' => array(
             'table' => 'log_civicrm_activity_contact',
-            'join' => "entity_log_civireport.id = fk_table.activity_id AND fk_table.record_type_id = {$assigneeID}"
+            'join' => "entity_log_civireport.id = fk_table.activity_id AND fk_table.record_type_id = {$assigneeID}",
           ),
           'bracket_info' => array(
             'entity_column' => 'activity_type_id',
-            'options' => CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE)
+            'options' => CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE),
           ),
           'log_type' => 'Activity',
         ),
@@ -153,11 +153,11 @@ class CRM_Logging_ReportSummary extends CRM_Report_Form {
           'table_name' => 'log_civicrm_activity',
           'joins' => array(
             'table' => 'log_civicrm_activity_contact',
-            'join' => "entity_log_civireport.id = fk_table.activity_id AND fk_table.record_type_id = {$sourceID}"
+            'join' => "entity_log_civireport.id = fk_table.activity_id AND fk_table.record_type_id = {$sourceID}",
           ),
           'bracket_info' => array(
             'entity_column' => 'activity_type_id',
-            'options' => CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE)
+            'options' => CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE),
           ),
           'log_type' => 'Activity',
         ),
@@ -165,11 +165,11 @@ class CRM_Logging_ReportSummary extends CRM_Report_Form {
           'fk' => 'contact_id',
           'joins' => array(
             'table' => 'log_civicrm_case_contact',
-            'join' => 'entity_log_civireport.id = fk_table.case_id'
+            'join' => 'entity_log_civireport.id = fk_table.case_id',
           ),
           'bracket_info' => array(
             'entity_column' => 'case_type_id',
-            'options' => CRM_Case_PseudoConstant::caseType('title', FALSE)
+            'options' => CRM_Case_PseudoConstant::caseType('title', FALSE),
           ),
         ),
       );
@@ -181,7 +181,7 @@ class CRM_Logging_ReportSummary extends CRM_Report_Form {
     foreach ($customTables as $table) {
       $this->_logTables[$table] = array(
         'fk' => 'entity_id',
-        'log_type' => 'Contact'
+        'log_type' => 'Contact',
       );
     }
 
@@ -193,9 +193,9 @@ class CRM_Logging_ReportSummary extends CRM_Report_Form {
           'fk' => 'contact_id',// for join of fk_table with contact table
           'joins' => array(
             'table' => 'log_civicrm_address', // fk_table
-            'join' => 'entity_log_civireport.entity_id = fk_table.id'
+            'join' => 'entity_log_civireport.entity_id = fk_table.id',
           ),
-          'log_type' => 'Contact'
+          'log_type' => 'Contact',
         );
     }
 
@@ -333,7 +333,7 @@ ORDER BY log_civicrm_entity_log_date DESC {$this->_limit}";
     $sql = str_replace('modified_contact_civireport.id', 'entity_log_civireport.altered_contact_id', $sql);
     $sql = str_replace(array(
       'modified_contact_civireport.',
-      'altered_by_contact_civireport.'
+      'altered_by_contact_civireport.',
     ), 'entity_log_civireport.', $sql);
     $this->buildRows($sql, $rows);
 
@@ -378,9 +378,9 @@ SELECT {$this->_logTables[$entity]['bracket_info']['entity_column']}
         $entityID = CRM_Core_DAO::singleValueQuery($sql, array(
           1 => array(
             CRM_Utils_Date::isoToMysql($logDate),
-            'Timestamp'
+            'Timestamp',
           ),
-          2 => array($id, 'Integer')
+          2 => array($id, 'Integer'),
         ));
       }
       else {
@@ -397,7 +397,7 @@ FROM  `{$this->loggingDB}`.{$this->_logTables[$entity]['bracket_info']['table']}
 WHERE  log_date <= %1 AND id = %2 ORDER BY log_date DESC LIMIT 1";
         return CRM_Core_DAO::singleValueQuery($sql, array(
           1 => array(CRM_Utils_Date::isoToMysql($logDate), 'Timestamp'),
-          2 => array($entityID, 'Integer')
+          2 => array($entityID, 'Integer'),
         ));
       }
       else {
@@ -424,7 +424,7 @@ WHERE  log_date <= %1 AND id = %2 ORDER BY log_date DESC LIMIT 1";
       $sql = "select {$this->_logTables[$entity]['action_column']} from `{$this->loggingDB}`.{$entity} where id = %1 AND log_conn_id = %2";
       $newAction = CRM_Core_DAO::singleValueQuery($sql, array(
         1 => array($id, 'Integer'),
-        2 => array($connId, 'Integer')
+        2 => array($connId, 'Integer'),
       ));
 
       switch ($entity) {
index 670a754e1691886ed32bbc424e2812c1b34a5dad..d5e7608d58545b8e2e60488f95e23f031862cb58 100644 (file)
@@ -413,7 +413,7 @@ WHERE  table_schema IN ('{$this->db}', '{$civiDB}')";
               'COLUMN_NAME' => $dao->COLUMN_NAME,
               'DATA_TYPE'   => $dao->DATA_TYPE,
               'IS_NULLABLE' => $dao->IS_NULLABLE,
-              'COLUMN_DEFAULT' => $dao->COLUMN_DEFAULT
+              'COLUMN_DEFAULT' => $dao->COLUMN_DEFAULT,
             );
       }
     }
index 48aa7e62f9f731fc5b4f221a4e2197f2200a51ca..c016b194f34c8d1e3753e1402be5b3454d199e55 100644 (file)
@@ -2973,7 +2973,7 @@ AND        m.id = %1
           'url' => 'civicrm/mailing/report',
           'qs' => "mid=%%mid%%&reset=1&cid=%%cid%%&context=mailing",
           'title' => ts('View Mailing Report'),
-        )
+        ),
       );
 
       $mailingKey = $values['mailing_id'];
index 4cc084c077114ac23c04e45514dd5c6f66baa0a3..d1d8ec871db45c74df4994f39dc636668ae692ee 100644 (file)
@@ -216,7 +216,7 @@ class CRM_Mailing_BAO_Query {
         'mailing_job_end_date' => 1,
         'contact_type' => 1,
         'contact_sub_type' => 1,
-        'mailing_recipients_id' => 1
+        'mailing_recipients_id' => 1,
       );
     }
     return $properties;
@@ -399,7 +399,7 @@ class CRM_Mailing_BAO_Query {
       'Complete' => 'Complete',
       'Scheduled' => 'Scheduled',
       'Running' => 'Running',
-      'Canceled' => 'Canceled'
+      'Canceled' => 'Canceled',
     );
     $form->addElement('select', 'mailing_job_status', ts('Mailing Job Status'), $mailingJobStatuses, FALSE);
 
index d2d3cae9aa160e56c89b0f4543089b83484d533b..14f70362e8e5fd42f693989ad6a1be16b490e2c8 100644 (file)
@@ -140,7 +140,7 @@ class CRM_Mailing_Form_Component extends CRM_Core_Form {
 
     $component = CRM_Mailing_BAO_Component::add($params);
     CRM_Core_Session::setStatus(ts('The mailing component \'%1\' has been saved.', array(
-        1 => $component->name
+        1 => $component->name,
       )
     ), ts('Saved'), 'success');
 
index 6c0d168d89818580aeceab692dce20399f85f9cc..097390ab34ecffc238b33a7db17d4d6f3ee66656 100644 (file)
@@ -128,7 +128,7 @@ class CRM_Mailing_Form_Group extends CRM_Contact_Form_Task {
 
       $mailingGroups = array(
         'civicrm_group' => array(),
-        'civicrm_mailing' => array()
+        'civicrm_mailing' => array(),
       );
       $dao->mailing_id = $this->_mailingID;
       $dao->find();
index 2173cc9ba9b064b20223813e3c53a07596eb5c6c..d570f14ab3bb078b06edb09749c5f4f82d3bc752 100644 (file)
@@ -72,7 +72,7 @@ class CRM_Mailing_Selector_Search extends CRM_Core_Selector_Base implements CRM_
     'email_on_hold',
     'contact_opt_out',
     'mailing_job_status',
-    'mailing_job_end_date'
+    'mailing_job_end_date',
   );
 
   /**
index 1bac5735b6d085816dbd27cc1dd00dc3cf091cff..506612f6e4b6168e230eb9c8001372c12170eefb 100644 (file)
@@ -348,7 +348,7 @@ class CRM_Member_BAO_Membership extends CRM_Member_DAO_Membership {
     if (!empty($params['relate_contribution_id'])) {
       CRM_Member_BAO_MembershipPayment::create(array(
           'membership_id' => $membership->id,
-          'contribution_id' => $params['relate_contribution_id']
+          'contribution_id' => $params['relate_contribution_id'],
         ));
     }
 
@@ -534,7 +534,7 @@ class CRM_Member_BAO_Membership extends CRM_Member_DAO_Membership {
       $statusANDType = self::getStatusANDTypeValues($membership->id);
       foreach (array(
                  'status',
-                 'membership_type'
+                 'membership_type',
                ) as $fld) {
         $defaults[$fld] = CRM_Utils_Array::value($fld, $statusANDType[$membership->id]);
       }
@@ -583,7 +583,7 @@ INNER JOIN  civicrm_membership_type type ON ( type.id = membership.membership_ty
       'membership_type',
       'membership_type_id',
       'is_current_member',
-      'relationship_type_id'
+      'relationship_type_id',
     );
     while ($dao->fetch()) {
       foreach ($properties as $property) {
@@ -644,7 +644,7 @@ INNER JOIN  civicrm_membership_type type ON ( type.id = membership.membership_ty
       'Membership Renewal',
       'Change Membership Status',
       'Change Membership Type',
-      'Membership Renewal Reminder'
+      'Membership Renewal Reminder',
     );
     foreach ($membershipActivities as $membershipActivity) {
       $activityId = array_search($membershipActivity, $activityTypes);
@@ -1163,7 +1163,7 @@ INNER JOIN  civicrm_membership_type type ON ( type.id = membership.membership_ty
         'name' => 'membership_status',
         'type' => CRM_Utils_Type::T_STRING,
         'where' => 'civicrm_membership_status.name',
-      )
+      ),
     );
     //CRM-6161 fix for customdata export
     $fields = array_merge($fields, $membershipStatus, CRM_Core_BAO_CustomField::getFieldsForImport('Membership'));
@@ -1454,7 +1454,7 @@ AND civicrm_membership.is_test = %2";
         try {
           civicrm_api3('contribution', 'completetransaction', array(
               'id' => $membershipContribution->id,
-              'trxn_id' => $membershipContribution->trxn_id
+              'trxn_id' => $membershipContribution->trxn_id,
             ));
         }
         catch (CiviCRM_API3_Exception $e) {
@@ -2289,7 +2289,7 @@ INNER JOIN  civicrm_contact contact ON ( contact.id = membership.contact_id AND
   public static function linkMembershipPayment($membership, $membershipContribution) {
     CRM_Member_BAO_MembershipPayment::create(array(
         'membership_id' => $membership->id,
-        'contribution_id' => $membershipContribution->id
+        'contribution_id' => $membershipContribution->id,
       ));
   }
 
@@ -2824,7 +2824,7 @@ WHERE      civicrm_membership.is_test = 0";
           array(
             'membership_id' => $dao->membership_id,
             'version' => 3,
-            'ignore_admin_only' => FALSE
+            'ignore_admin_only' => FALSE,
           ), TRUE
         );
         $statusId = CRM_Utils_Array::value('id', $newStatus);
@@ -2864,7 +2864,7 @@ WHERE      civicrm_membership.is_test = 0";
     $result['is_error'] = 0;
     $result['messages'] = ts('Processed %1 membership records. Updated %2 records.', array(
         1 => $processCount,
-        2 => $updateCount
+        2 => $updateCount,
       ));
     return $result;
   }
@@ -2946,7 +2946,7 @@ WHERE      civicrm_membership.is_test = 0";
       'is_pay_later',
       'membership_id',
       'tax_amount',
-      'skipLineItem'
+      'skipLineItem',
     );
     foreach ($recordContribution as $f) {
       $contributionParams[$f] = CRM_Utils_Array::value($f, $params);
@@ -2994,7 +2994,7 @@ WHERE      civicrm_membership.is_test = 0";
     if (empty($ids['contribution']) || !empty($params['is_recur'])) {
       CRM_Member_BAO_MembershipPayment::create(array(
           'membership_id' => $membershipId,
-          'contribution_id' => $contribution->id
+          'contribution_id' => $contribution->id,
         ));
     }
     return $contribution;
@@ -3082,7 +3082,7 @@ WHERE      civicrm_membership.is_test = 0";
             TRUE
           )
         ),
-        'Integer'
+        'Integer',
       ),
       3 => array($isTest, 'Boolean'),
     );
index 5e58261d084cc0170193ab4cd016da021292401b..43e2da35e5f4fdd83bea1a7d44e81930ae7b0e8a 100644 (file)
@@ -135,12 +135,12 @@ class CRM_Member_Form extends CRM_Contribute_Form_AbstractEditPayment {
           array(
             'type' => 'upload',
             'name' => ts('Renew'),
-            'isDefault' => TRUE
+            'isDefault' => TRUE,
           ),
           array(
             'type' => 'cancel',
-            'name' => ts('Cancel')
-          )
+            'name' => ts('Cancel'),
+          ),
         )
       );
     }
@@ -149,12 +149,12 @@ class CRM_Member_Form extends CRM_Contribute_Form_AbstractEditPayment {
           array(
             'type' => 'next',
             'name' => ts('Delete'),
-            'isDefault' => TRUE
+            'isDefault' => TRUE,
           ),
           array(
             'type' => 'cancel',
-            'name' => ts('Cancel')
-          )
+            'name' => ts('Cancel'),
+          ),
         )
       );
     }
@@ -163,17 +163,17 @@ class CRM_Member_Form extends CRM_Contribute_Form_AbstractEditPayment {
           array(
             'type' => 'upload',
             'name' => ts('Save'),
-            'isDefault' => TRUE
+            'isDefault' => TRUE,
           ),
           array(
             'type' => 'upload',
             'name' => ts('Save and New'),
-            'subName' => 'new'
+            'subName' => 'new',
           ),
           array(
             'type' => 'cancel',
-            'name' => ts('Cancel')
-          )
+            'name' => ts('Cancel'),
+          ),
         )
       );
     }
index 054e10836b491b021df1afb47ce12cea42685464..3af48bb1840c7b92e833e848eabc680b99760ab5 100644 (file)
@@ -426,7 +426,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form {
       if ($buildPriceSet) {
         $this->add('select', 'price_set_id', ts('Choose price set'),
           array(
-            '' => ts('Choose price set')
+            '' => ts('Choose price set'),
           ) + $priceSets,
           NULL, array('onchange' => "buildAmount( this.value );")
         );
@@ -553,7 +553,7 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
                          'id',
                          'auto_renew',
                          'duration_unit',
-                         'duration_interval'
+                         'duration_interval',
                        ) as $fld) {
                 $this->_recurMembershipTypes[$recurMembershipTypes->id][$fld] = $recurMembershipTypes->$fld;
               }
@@ -652,7 +652,7 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
         foreach ($statusNames as $val => $name) {
           if (in_array($name, array(
             'In Progress',
-            'Overdue'
+            'Overdue',
           ))
           ) {
             continue;
@@ -1645,7 +1645,7 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
       foreach ($membershipTypes as $memType => $membershipType) {
         $statusMsg[$memType] = ts('%1 membership for %2 has been added.', array(
           1 => $membershipType,
-          2 => $this->_memberDisplayName
+          2 => $this->_memberDisplayName,
         ));
 
         $membership = $createdMemberships[$memType];
@@ -1859,7 +1859,7 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
         'PDFFilename' => ts('receipt') . '.pdf',
         'isEmailPdf' => $isEmailPdf,
         'contributionId' => $formValues['contribution_id'],
-        'isTest' => (bool) ($form->_action & CRM_Core_Action::PREVIEW)
+        'isTest' => (bool) ($form->_action & CRM_Core_Action::PREVIEW),
       )
     );
 
index 93b8fd1872f951b13ad0e7f91876ba4cc734e334..f044f0b8b1a8a24751e74ee6947aefb5ee21dcab 100644 (file)
@@ -107,12 +107,12 @@ class CRM_Member_Form_MembershipConfig extends CRM_Core_Form {
           array(
             'type' => 'upload',
             'name' => ts('Renew'),
-            'isDefault' => TRUE
+            'isDefault' => TRUE,
           ),
           array(
             'type' => 'cancel',
-            'name' => ts('Cancel')
-          )
+            'name' => ts('Cancel'),
+          ),
         )
       );
     }
@@ -121,12 +121,12 @@ class CRM_Member_Form_MembershipConfig extends CRM_Core_Form {
           array(
             'type' => 'next',
             'name' => ts('Delete'),
-            'isDefault' => TRUE
+            'isDefault' => TRUE,
           ),
           array(
             'type' => 'cancel',
-            'name' => ts('Cancel')
-          )
+            'name' => ts('Cancel'),
+          ),
         )
       );
     }
@@ -135,17 +135,17 @@ class CRM_Member_Form_MembershipConfig extends CRM_Core_Form {
           array(
             'type' => 'upload',
             'name' => ts('Save'),
-            'isDefault' => TRUE
+            'isDefault' => TRUE,
           ),
           array(
             'type' => 'upload',
             'name' => ts('Save and New'),
-            'subName' => 'new'
+            'subName' => 'new',
           ),
           array(
             'type' => 'cancel',
-            'name' => ts('Cancel')
-          )
+            'name' => ts('Cancel'),
+          ),
         )
       );
     }
index 4e621ff87e294a252dd59dc92b4ba80e6fa17a1a..98dac2dfc645ae3e030c7c7cad85b0c316a0eb27 100644 (file)
@@ -294,7 +294,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form {
         $allMembershipInfo[$key] = array(
           'financial_type_id' => CRM_Utils_Array::value('financial_type_id', $values),
           'total_amount'         => CRM_Utils_Money::format($values['minimum_fee'], NULL, '%a'),
-          'total_amount_numeric' => CRM_Utils_Array::value('minimum_fee', $values)
+          'total_amount_numeric' => CRM_Utils_Array::value('minimum_fee', $values),
         );
 
         if (!empty($values['auto_renew'])) {
index e365c2191702dc1a26062a54c13cbf1aeef507f2..13dee0da3ee91061226c220ae08465e19f1d0704 100644 (file)
@@ -322,7 +322,7 @@ class CRM_Member_Form_MembershipType extends CRM_Member_Form_MembershipConfig {
         'fixed_period_start_day',
         'fixed_period_rollover_day',
         'month_fixed_period_rollover_day',
-        'max_related'
+        'max_related',
       );
 
       $params = $ids = array();
index 5558b47c0702254d172bea64dbb104c5d43087c7..d052c330686ca413084b0833b21a18ec27d63229 100644 (file)
@@ -272,7 +272,7 @@ SELECT r.id, c.id as cid, c.display_name as name, c.job_title as comment,
           'start_date',
           'end_date',
           'is_current_member',
-          'status'
+          'status',
         );
 
         while ($dao->fetch()) {
index 47d008585b767de3ee3c1826039e22c0109eb891..9dc492620942741c9d7285feae5b835c3fab2923 100644 (file)
@@ -394,7 +394,7 @@ WHERE pcp.id = %1 AND cc.contribution_status_id =1 AND cc.is_test = 0";
     }
     CRM_Core_DAO::commonRetrieveAll('CRM_Core_DAO_UFGroup', 'is_cms_user', $isUserRequired, $profiles, array(
       'title',
-      'is_active'
+      'is_active',
     ));
     if (!empty($profiles)) {
       foreach ($profiles as $key => $value) {
@@ -614,7 +614,7 @@ WHERE pcp.id = %1 AND cc.contribution_status_id =1 AND cc.is_test = 0";
 
     CRM_Core_Session::setStatus(ts("%1 status has been updated to %2.", array(
       1 => $pcpTitle,
-      2 => $pcpStatus
+      2 => $pcpStatus,
     )), 'Status Updated', 'success');
 
     // send status change mail
index e62eacbdfde11f2a4f1bd57796b3de01b96b2d85..cf5ca5e0d2e70d4218055e0fa3542ac38d756bde 100644 (file)
@@ -506,7 +506,7 @@ AND li.entity_id = {$entityId}
           'unit_price' => $totalAmount,
           'line_total' => $totalAmount,
           'financial_type_id' => $financialType,
-          'membership_type_id' => $values['membership_type_id']
+          'membership_type_id' => $values['membership_type_id'],
         );
         break;
       }
index 4f9b192cc0fcb57b953499143e394d29b57ad18a..cc3e045631fbb7ed68fe28e20e0eb1390c507c1b 100644 (file)
@@ -269,7 +269,7 @@ class CRM_Price_Page_Field extends CRM_Core_Page {
       $comps = array(
         'Event' => 'civicrm_event',
         'Contribution' => 'civicrm_contribution_page',
-        'EventTemplate' => 'civicrm_event_template'
+        'EventTemplate' => 'civicrm_event_template',
       );
       $priceSetContexts = array();
       foreach ($comps as $name => $table) {
index 272a42cbc6b2a9528d2610131b1382f72df88851..1773c0face10b2b2f51eb6e9bfb6dc472b667e0b 100644 (file)
@@ -178,7 +178,7 @@ class CRM_Price_Page_Set extends CRM_Core_Page {
           $comps = array(
             'Event' => 'civicrm_event',
             'Contribution' => 'civicrm_contribution_page',
-            'EventTemplate' => 'civicrm_event_template'
+            'EventTemplate' => 'civicrm_event_template',
           );
           $priceSetContexts = array();
           foreach ($comps as $name => $table) {
index 3bcc0e73d9eb8bf12bc47d5d537886580afcc1a3..aa8d60cdd469ce6d803275cdfd148de32b66e9ca 100644 (file)
@@ -1073,7 +1073,7 @@ class CRM_Profile_Form extends CRM_Core_Form {
             $sql = "DELETE FROM {$tableName} WHERE id = %1 AND entity_id = %2";
             $sqlParams = array(
                           1 => array($this->_recordId, 'Integer'),
-                          2 => array($this->_id, 'Integer')
+                          2 => array($this->_id, 'Integer'),
                          );
             CRM_Core_DAO::executeQuery($sql, $sqlParams);
             CRM_Core_Session::setStatus(ts('Your record has been deleted.'), ts('Deleted'), 'success');
index c8bdf03abfa4aafa7e0953b017d6f0b63b14aeb8..f06e64eeecb01260108e2ac6351dc7d89b056cd2 100644 (file)
@@ -120,7 +120,7 @@ class CRM_Profile_Page_MultipleRecordFieldsListing extends CRM_Core_Page_Basic {
           'name' => ts('Copy'),
           'title' => ts('Copy %1', array(1 => $this->_customGroupTitle . ' record')),
           'url' => 'civicrm/contact/view/cd/edit',
-          'qs' => 'reset=1&type=%%type%%&groupID=%%groupID%%&entityID=%%entityID%%&cgcount=%%newCgCount%%&multiRecordDisplay=single&copyValueId=%%cgcount%%&mode=copy'
+          'qs' => 'reset=1&type=%%type%%&groupID=%%groupID%%&entityID=%%entityID%%&cgcount=%%newCgCount%%&multiRecordDisplay=single&copyValueId=%%cgcount%%&mode=copy',
         );
       }
 
index 525f4a975fa47f395d73b7cb332e2f11768d7643..8b9ba4dd28027b28d3c371abf971c41499b6a62b 100644 (file)
@@ -478,7 +478,7 @@ class CRM_Report_Form extends CRM_Core_Form {
         array(
           'title' => ts('Report Templates'),
           'url' => CRM_Utils_System::url('civicrm/admin/report/template/list', 'reset=1'),
-        )
+        ),
       );
 
     CRM_Utils_System::appendBreadCrumb($breadCrumbs);
@@ -597,7 +597,7 @@ class CRM_Report_Form extends CRM_Core_Form {
                         array(
                           '' => ts('Any'),
                           '0' => ts('No'),
-                          '1' => ts('Yes')
+                          '1' => ts('Yes'),
                         );
                     }
                     break;
@@ -962,7 +962,7 @@ class CRM_Report_Form extends CRM_Core_Form {
                 $this->addChainSelect($fieldName . '_value', array(
                   'multiple' => TRUE,
                   'label' => NULL,
-                  'class' => 'huge'
+                  'class' => 'huge',
                 ));
               }
               else {
@@ -1114,13 +1114,13 @@ class CRM_Report_Form extends CRM_Core_Form {
 
     if (!empty($options)) {
       $options = array(
-          '-' => ' - none - '
+          '-' => ' - none - ',
         ) + $options;
       for ($i = 1; $i <= 5; $i++) {
         $this->addElement('select', "order_bys[{$i}][column]", ts('Order by Column'), $options);
         $this->addElement('select', "order_bys[{$i}][order]", ts('Order by Order'), array(
           'ASC' => 'Ascending',
-          'DESC' => 'Descending'
+          'DESC' => 'Descending',
         ));
         $this->addElement('checkbox', "order_bys[{$i}][section]", ts('Order by Section'), FALSE, array('id' => "order_by_section_$i"));
         $this->addElement('checkbox', "order_bys[{$i}][pageBreak]", ts('Page Break'), FALSE, array('id' => "order_by_pagebreak_$i"));
@@ -1195,7 +1195,7 @@ class CRM_Report_Form extends CRM_Core_Form {
     //add form rule for report
     if (is_callable(array(
       $this,
-      'formRule'
+      'formRule',
     ))) {
       $this->addFormRule(array(get_class($this), 'formRule'), $this);
     }
@@ -1715,7 +1715,7 @@ class CRM_Report_Form extends CRM_Core_Form {
       'data_type',
       'html_type',
       'option_group_id',
-      'id'
+      'id',
     );
 
     // skip for type date and ContactReference since date format is already handled
@@ -1812,7 +1812,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
       case 'Int':
         if (in_array($htmlType, array(
           'Text',
-          'TextArea'
+          'TextArea',
         ))) {
           $retValue = $value;
           break;
@@ -3227,7 +3227,7 @@ ORDER BY cg.weight, cf.weight";
         foreach (array(
                    'fields',
                    'filters',
-                   'group_bys'
+                   'group_bys',
                  ) as $colKey) {
           if (!array_key_exists($colKey, $this->_columns[$curTable])) {
             $this->_columns[$curTable][$colKey] = array();
@@ -3298,7 +3298,7 @@ ORDER BY cg.weight, cf.weight";
             if (in_array($customDAO->html_type, array(
               'Multi-Select',
               'AdvMulti-Select',
-              'CheckBox'
+              'CheckBox',
             ))) {
               $curFilters[$fieldName]['operatorType'] = CRM_Report_Form::OP_MULTISELECT_SEPARATOR;
             }
@@ -3310,8 +3310,8 @@ ORDER BY cg.weight, cf.weight";
               $ogDAO = CRM_Core_DAO::executeQuery("SELECT ov.value, ov.label FROM civicrm_option_value ov WHERE ov.option_group_id = %1 ORDER BY ov.weight", array(
                 1 => array(
                   $customDAO->option_group_id,
-                  'Integer'
-                )
+                  'Integer',
+                ),
               ));
               while ($ogDAO->fetch()) {
                 $curFilters[$fieldName]['options'][$ogDAO->value] = $ogDAO->label;
@@ -3322,7 +3322,7 @@ ORDER BY cg.weight, cf.weight";
 
         case 'StateProvince':
           if (in_array($customDAO->html_type, array(
-            'Multi-Select State/Province'
+            'Multi-Select State/Province',
           ))) {
             $curFilters[$fieldName]['operatorType'] = CRM_Report_Form::OP_MULTISELECT_SEPARATOR;
           }
@@ -3334,7 +3334,7 @@ ORDER BY cg.weight, cf.weight";
 
         case 'Country':
           if (in_array($customDAO->html_type, array(
-            'Multi-Select Country'
+            'Multi-Select Country',
           ))) {
             $curFilters[$fieldName]['operatorType'] = CRM_Report_Form::OP_MULTISELECT_SEPARATOR;
           }
@@ -3470,7 +3470,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a
                    'max',
                    'relative',
                    'from',
-                   'to'
+                   'to',
                  ) as $attach) {
           if (isset($this->_params[$fieldAlias . '_' . $attach]) &&
             (!empty($this->_params[$fieldAlias . '_' . $attach])
@@ -3899,7 +3899,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a
         'fields' => array(
           $options['prefix'] . 'phone' => array(
             'title' => ts($options['prefix_label'] . 'Phone'),
-            'name' => 'phone'
+            'name' => 'phone',
           ),
         ),
       ),
index 8224e3a647abb4975bd89a77eda47dee4315af8b..f5e4eb2230c1c5f6da487b8b65fa4c89748d5797 100644 (file)
@@ -36,7 +36,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
   protected $_selectAliasesTotal = array();
 
   protected $_customGroupExtends = array(
-    'Activity'
+    'Activity',
   );
 
   protected $_nonDisplayFields = array();
@@ -207,7 +207,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
             ),
             'details' => array(
               'title' => ts('Activity Details'),
-            )
+            ),
           ),
           'filters' => array(
             'activity_date_time' => array(
@@ -228,18 +228,18 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
             'details' => array(
               'title' => ts('Activity Details'),
               'type' => CRM_Utils_Type::T_TEXT,
-            )
+            ),
           ),
           'order_bys' => array(
             'activity_date_time' => array(
               'title' => ts('Activity Date'),
               'default_weight' => '1',
-              'dbAlias' => 'civicrm_activity_activity_date_time'
+              'dbAlias' => 'civicrm_activity_activity_date_time',
             ),
             'activity_type_id' => array(
               'title' => ts('Activity Type'),
               'default_weight' => '2',
-              'dbAlias' => "option_value_civireport"
+              'dbAlias' => "option_value_civireport",
             ),
           ),
           'grouping' => 'activity-fields',
index 34756bfdff9103a3f3da936de0e4f3f6df4da1b8..807d92d17ec8b259af70779e3b73fcf667aa5ad1 100644 (file)
@@ -73,7 +73,7 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form {
         ),
         'order_bys' => array(
           'sort_name' => array(
-            'title' => ts('Contact Name')
+            'title' => ts('Contact Name'),
           ),
         ),
         'grouping' => 'contact-fields',
@@ -88,7 +88,7 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form {
         ),
         'order_bys' => array(
           'email' => array(
-            'title' => ts('Email')
+            'title' => ts('Email'),
           ),
         ),
         'grouping' => 'contact-fields',
@@ -97,7 +97,7 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form {
         'dao' => 'CRM_Core_DAO_Email',
         'fields' => array(
           'phone' => array(
-            'title' => 'Phone'
+            'title' => 'Phone',
           ),
         ),
         'grouping' => 'contact-fields',
@@ -126,7 +126,7 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form {
         ),
         'filters' => array(
           'activity_date_time' => array(
-            'operatorType' => CRM_Report_Form::OP_DATE
+            'operatorType' => CRM_Report_Form::OP_DATE,
           ),
           'activity_type_id' => array(
             'title' => ts('Activity Type'),
@@ -156,10 +156,10 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form {
         ),
         'order_bys' => array(
           'activity_date_time' => array(
-            'title' => ts('Activity Date')
+            'title' => ts('Activity Date'),
           ),
           'activity_type_id' => array(
-            'title' => ts('Activity Type')
+            'title' => ts('Activity Type'),
           ),
         ),
         'grouping' => 'activity-fields',
index f070f017c6ae6d27885fb9e63d3344f07148978d..f5e0571de33628055e407cb8c06f7e68339096aa 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Report_Form_Campaign_SurveyDetails extends CRM_Report_Form {
     'Individual',
     'Household',
     'Organization',
-    'Activity'
+    'Activity',
   );
   public $_drilldownReport = array('contact/detail' => 'Link to Detail Report');
 
@@ -101,9 +101,9 @@ class CRM_Report_Form_Campaign_SurveyDetails extends CRM_Report_Form {
             'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_SELECT,
             'options' => array(
-                '' => ts('- any interviewer -')
+                '' => ts('- any interviewer -'),
               ) + $allSurveyInterviewers,
-          )
+          ),
         ),
         'grouping' => 'survey-interviewer-fields',
       ),
@@ -125,14 +125,14 @@ class CRM_Report_Form_Campaign_SurveyDetails extends CRM_Report_Form {
           'sort_name' => array(
             'title' => ts('Respondent Name'),
             'operator' => 'like',
-          )
+          ),
         ),
         'grouping' => 'contact-fields',
         'order_bys' => array(
           'sort_name' => array(
             'title' => ts('Respondent Name'),
             'required' => TRUE,
-          )
+          ),
         ),
       ),
       'civicrm_phone' => array(
@@ -141,7 +141,7 @@ class CRM_Report_Form_Campaign_SurveyDetails extends CRM_Report_Form {
           'phone' => array(
             'name' => 'phone',
             'title' => ts('Phone'),
-          )
+          ),
         ),
         'grouping' => 'location-fields',
       ),
@@ -233,7 +233,7 @@ class CRM_Report_Form_Campaign_SurveyDetails extends CRM_Report_Form {
           'email' => array(
             'name' => 'email',
             'title' => ts('Email'),
-          )
+          ),
         ),
         'grouping' => 'location-fields',
       ),
@@ -458,7 +458,7 @@ class CRM_Report_Form_Campaign_SurveyDetails extends CRM_Report_Form {
     $orderBys = CRM_Utils_Array::value('order_bys', $this->_params, array());
     if (in_array($this->_outputMode, array(
       'print',
-      'pdf'
+      'pdf',
     ))) {
 
       $outPut = array();
@@ -814,7 +814,7 @@ INNER JOIN  civicrm_custom_group cg ON ( cg.id = cf.custom_group_id )
         $value = $responseField->label;
         if (in_array($this->_outputMode, array(
           'print',
-          'pdf'
+          'pdf',
         ))) {
           $value = $responseField->value;
         }
@@ -941,7 +941,7 @@ INNER  JOIN  civicrm_custom_field cf ON ( cg.id = cf.custom_group_id )
       $title = $responseFields[$fieldName]['title'];
       if (in_array($this->_outputMode, array(
         'print',
-        'pdf'
+        'pdf',
       ))) {
         $title = 'Q' . $fildCnt++;
       }
index 7abdc9b7895c6777fbd815a94d439aad6d9881b2..2dd854bbdd4a3d575a9eedb95af7d9450696a5f0 100644 (file)
@@ -169,7 +169,7 @@ class CRM_Report_Form_Case_Demographics extends CRM_Report_Form {
             'options' => array(
               1 => ts('Exclude non-case'),
               2 => ts('Exclude cases'),
-              3 => ts('Include Both')
+              3 => ts('Include Both'),
             ),
             'default' => 3,
           ),
index 2b02d2b133dc3bf5b0c57effca343303b7e6f0ae..1ce27a138a10b259cdd4ea400563d89819a454f5 100644 (file)
@@ -70,7 +70,7 @@ class CRM_Report_Form_Case_Detail extends CRM_Report_Form {
     $this->deleted_labels = array(
       '' => ts('- select -'),
       0 => ts('No'),
-      1 => ts('Yes')
+      1 => ts('Yes'),
     );
 
     $this->caseActivityTypes = array();
@@ -279,7 +279,7 @@ class CRM_Report_Form_Case_Detail extends CRM_Report_Form {
     $elements = array();
     $elements[] = &$this->createElement('select', 'case_activity_all_dates', NULL,
       array(
-        '' => ts('- select -')
+        '' => ts('- select -'),
       ) + $this->caseActivityTypes
     );
     $this->addGroup($elements, 'case_detail_extra');
index 4d40101c9a612d417c2d1ae6382763af08309618..0d619b9c933a79e1ce2241c616dcf1554f1553ea 100644 (file)
@@ -56,7 +56,7 @@ class CRM_Report_Form_Case_Summary extends CRM_Report_Form {
     $this->deleted_labels = array(
       '' => ts('- select -'),
       0 => ts('No'),
-      1 => ts('Yes')
+      1 => ts('Yes'),
     );
 
     $this->_columns = array(
index 584673a5cf5b73c18e695b842c277ac1cf2d7642..cb13438858d3c7b3b30e538fdd15cab85b4585ba 100644 (file)
@@ -154,7 +154,7 @@ class CRM_Report_Form_Case_TimeSpent extends CRM_Report_Form {
             'options' => array(
               1 => ts('Exclude non-case'),
               2 => ts('Exclude cases'),
-              3 => ts('Include Both')
+              3 => ts('Include Both'),
             ),
             'default' => 3,
           ),
index 22c6f2a57e89c85174c22110e0521e12a16a6ad1..55e7935629c78a99b683e9f1c273eaa10d5cbbad 100644 (file)
@@ -39,7 +39,7 @@ class CRM_Report_Form_Contact_CurrentEmployer extends CRM_Report_Form {
 
   protected $_customGroupExtends = array(
     'Contact',
-    'Individual'
+    'Individual',
   );
 
   public $_drilldownReport = array('contact/detail' => 'Link to Detail Report');
@@ -302,7 +302,7 @@ FROM civicrm_contact {$this->_aliases['civicrm_contact']}
     // get the acl clauses built before we assemble the query
     $this->buildACLClause(array(
         $this->_aliases['civicrm_contact'],
-        $this->_aliases['civicrm_employer']
+        $this->_aliases['civicrm_employer'],
       ));
     parent::postProcess();
   }
index fb04d5da78a1b01c9ed304b498feb552205764c0..5d64032f571d19e18fe68a3efaa91d294005d437 100644 (file)
@@ -41,7 +41,7 @@ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form {
     'Contact',
     'Individual',
     'Household',
-    'Organization'
+    'Organization',
   );
 
   /**
@@ -100,7 +100,7 @@ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form {
             'title' => ts('Last Name, First Name'),
             'default' => '1',
             'default_weight' => '0',
-            'default_order' => 'ASC'
+            'default_order' => 'ASC',
           ),
         ),
       ),
@@ -335,8 +335,8 @@ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form {
         'fields' => array(
           'phone' => NULL,
           'phone_ext' => array(
-            'title' => ts('Phone Extension')
-          )
+            'title' => ts('Phone Extension'),
+          ),
         ),
         'grouping' => 'contact-fields',
       ),
@@ -359,7 +359,7 @@ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form {
       'membership_civireport',
       'participant_civireport',
       'relationship_civireport',
-      'activity_civireport'
+      'activity_civireport',
     );
     foreach ($this->_columns as $tableName => $table) {
       if (array_key_exists('fields', $table)) {
index e6a4e6ffb4a7133fbe90b93d52c785b80f44cb6a..eeaad5a89ae540e9f4663d4ad3f4af8e9812c744 100644 (file)
@@ -41,7 +41,7 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
   protected $_phoneField_a = FALSE;
   protected $_phoneField_b = FALSE;
   protected $_customGroupExtends = array(
-    'Relationship'
+    'Relationship',
   );
   public $_drilldownReport = array('contact/detail' => 'Link to Detail Report');
 
@@ -169,11 +169,11 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
         'fields' => array(
           'phone_b' => array(
             'title' => ts('Phone (Contact B)'),
-            'name' => 'phone'
+            'name' => 'phone',
           ),
           'phone_ext_b' => array(
             'title' => ts('Phone Ext (Contact B)'),
-            'name' => 'phone_ext'
+            'name' => 'phone_ext',
           ),
         ),
         'grouping' => 'conact_b_fields',
@@ -224,7 +224,7 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
             'title' => ts('Relationship'),
             'operatorType' => CRM_Report_Form::OP_SELECT,
             'options' => array(
-                '' => '- any relationship type -'
+                '' => '- any relationship type -',
               ) +
               CRM_Contact_BAO_Relationship::getContactRelationshipType(NULL, 'null', NULL, NULL, TRUE),
             'type' => CRM_Utils_Type::T_INT,
@@ -542,7 +542,7 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
 
     $this->buildACLClause(array(
         $this->_aliases['civicrm_contact'],
-        $this->_aliases['civicrm_contact_b']
+        $this->_aliases['civicrm_contact_b'],
       ));
     $sql = $this->buildQuery();
     $this->buildRows($sql, $rows);
index cea8831991d74830fea54c6b06844f10410ed05e..5f532f367ee435b1ec951da5681769022ca5107b 100644 (file)
@@ -45,7 +45,7 @@ class CRM_Report_Form_Contact_Summary extends CRM_Report_Form {
     'Contact',
     'Individual',
     'Household',
-    'Organization'
+    'Organization',
   );
 
   public $_drilldownReport = array('contact/detail' => 'Link to Detail Report');
@@ -152,8 +152,8 @@ class CRM_Report_Form_Contact_Summary extends CRM_Report_Form {
           'fields' => array(
             'phone' => NULL,
             'phone_ext' => array(
-              'title' => ts('Phone Extension')
-            )
+              'title' => ts('Phone Extension'),
+            ),
           ),
           'grouping' => 'contact-fields',
         ),
index 58f2b07e58be2404b46f9ae460473d6b5a8e5416..50b3d81555dc9bead6fdc5ddb45edbe0c8abf7d5 100644 (file)
@@ -41,7 +41,7 @@ class CRM_Report_Form_Contribute_Bookkeeping extends CRM_Report_Form {
   protected $_summary = NULL;
 
   protected $_customGroupExtends = array(
-    'Membership'
+    'Membership',
   );
 
   /**
@@ -176,7 +176,7 @@ class CRM_Report_Form_Contribute_Bookkeeping extends CRM_Report_Form {
         'dao' => 'CRM_Contribute_DAO_Contribution',
         'fields' => array(
           'receive_date' => array(
-            'default' => TRUE
+            'default' => TRUE,
           ),
           'invoice_id' => array(
             'title' => ts('Invoice ID'),
index d737bd8198386640c100d68e8ee21ea3871ca089..951fcad46cd2f26825724eac4f398e82af0699db 100644 (file)
@@ -101,7 +101,7 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form {
               'title' => ts('Last Name, First Name'),
               'default' => '1',
               'default_weight' => '0',
-              'default_order' => 'ASC'
+              'default_order' => 'ASC',
             ),
           ),
           'grouping' => 'contact-fields',
@@ -174,15 +174,15 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form {
             'net_amount' => NULL,
             'contribution_or_soft' => array(
               'title' => ts('Contribution OR Soft Credit?'),
-              'dbAlias' => "'Contribution'"
+              'dbAlias' => "'Contribution'",
             ),
             'soft_credits' => array(
               'title' => ts('Soft Credits'),
-              'dbAlias' => "NULL"
+              'dbAlias' => "NULL",
             ),
             'soft_credit_for' => array(
               'title' => ts('Soft Credit For'),
-              'dbAlias' => "NULL"
+              'dbAlias' => "NULL",
             ),
           ),
           'filters' => array(
@@ -898,7 +898,7 @@ WHERE  civicrm_contribution_contribution_id={$row['civicrm_contribution_contribu
         foreach ($totals as $key => $total) {
           $totalandsum[$key] = ts($title, array(
             1 => $total,
-            2 => CRM_Utils_Money::format($sumcontribs[$key])
+            2 => CRM_Utils_Money::format($sumcontribs[$key]),
           ));
         }
         $this->assign('sectionTotals', $totalandsum);
index d86105ebcb6fdb00ee966f943226a569deea8da8..2a71bf5b272d97a67e8f9e6841587ace097285ec 100644 (file)
@@ -723,7 +723,7 @@ class CRM_Report_Form_Contribute_History extends CRM_Report_Form {
     if ($fieldName == 'this_year' || $fieldName == 'other_year') {
       return array(
         'calendar' => ts('Is Calendar Year'),
-        'fiscal' => ts('Fiscal Year Starting')
+        'fiscal' => ts('Fiscal Year Starting'),
       );
     }
     return parent::getOperationPair($type, $fieldName);
index 1c63b596713aced46f463093254d2e606850488d..8182c8a4eee614d4b0b969604b74475a55e66e6f 100644 (file)
@@ -179,7 +179,7 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form {
       'civicrm_email' => array(
         'dao' => 'CRM_Core_DAO_Email',
         'fields' => array(
-          'email' => NULL
+          'email' => NULL,
         ),
         'grouping' => 'contact-fields',
       ),
@@ -353,7 +353,7 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form {
     $this->beginPostProcess();
     $this->buildACLClause(array(
         $this->_aliases['civicrm_contact'],
-        $this->_aliases['civicrm_contact_household']
+        $this->_aliases['civicrm_contact_household'],
       ));
     $sql = $this->buildQuery(TRUE);
     $rows = array();
index 466e7d741d08785805e5b389f5b3a213ee8364f8..73ff1e4a905d125c0b1734a9929b84bfc70f524f 100644 (file)
@@ -512,7 +512,7 @@ class CRM_Report_Form_Contribute_Lybunt extends CRM_Report_Form {
     if ($fieldName == 'yid') {
       return array(
         'calendar' => ts('Is Calendar Year'),
-        'fiscal' => ts('Fiscal Year Starting')
+        'fiscal' => ts('Fiscal Year Starting'),
       );
     }
     return parent::getOperationPair($type, $fieldName);
index 695156785be6db71d0634a9e4233465d19fc6580..874ace7308ac005f60513c4d94e87dbc0b88e123 100644 (file)
@@ -278,22 +278,22 @@ LEFT JOIN civicrm_contribution_page {$this->_aliases['civicrm_contribution_page'
     $statistics['counts']['goal_total'] = array(
       'title' => ts('Goal Total'),
       'value' => $dao->goal_total,
-      'type' => CRM_Utils_Type::T_MONEY
+      'type' => CRM_Utils_Type::T_MONEY,
     );
     $statistics['counts']['committed_total'] = array(
       'title' => ts('Total Committed'),
       'value' => $dao->committed_total,
-      'type' => CRM_Utils_Type::T_MONEY
+      'type' => CRM_Utils_Type::T_MONEY,
     );
     $statistics['counts']['received_total'] = array(
       'title' => ts('Total Received'),
       'value' => $dao->received_total,
-      'type' => CRM_Utils_Type::T_MONEY
+      'type' => CRM_Utils_Type::T_MONEY,
     );
     $statistics['counts']['donors_total'] = array(
       'title' => ts('Total Donors'),
       'value' => $dao->donors_total,
-      'type' => CRM_Utils_Type::T_INT
+      'type' => CRM_Utils_Type::T_INT,
     );
     return $statistics;
   }
index bad820c4e7007a8014929acf4a98ba176586cea4..d7521b31f2d8f10e112fac1f791273e6f29a2ba5 100644 (file)
@@ -85,7 +85,7 @@ class CRM_Report_Form_Contribute_Recur extends CRM_Report_Form {
           'total_amount' => array(
             'title' => ts('Amount Contributed to Date'),
             'statistics' => array(
-              'sum' => ts("Total Amount Contributed")
+              'sum' => ts("Total Amount Contributed"),
             ),
           ),
         ),
@@ -200,10 +200,10 @@ class CRM_Report_Form_Contribute_Recur extends CRM_Report_Form {
             'title' => ts('Calculated end date (either end date or date all installments will be made)'),
             'description' => "does this work?",
             'operatorType' => CRM_Report_Form::OP_DATE,
-            'pseudofield' => TRUE
+            'pseudofield' => TRUE,
           ),
         ),
-      )
+      ),
     );
     $this->_currencyColumn = 'civicrm_contribution_recur_currency';
     parent::__construct();
index 51b76f4d993512dc39e62831d126f39fe8bdd2d1..9ad338b290fd205bbd4aae84117e097d0af59f00 100644 (file)
@@ -503,7 +503,7 @@ LEFT JOIN civicrm_temp_civireport_repeat2 {$this->_aliases['civicrm_contribution
             $erorrGrps = implode(',', $invlidGroups);
             $tempErrors[] = ts("Do not select field %1 with Group by %2.", array(
                 1 => $idMapping[$fld_id],
-                2 => $erorrGrps
+                2 => $erorrGrps,
               ));
           }
         }
@@ -623,7 +623,7 @@ LEFT JOIN civicrm_temp_civireport_repeat2
       $contact_sums[$dao->contact_id] =
         array(
           'contribution1_total_amount_sum' => $dao->contribution1_total_amount_sum,
-          'contribution2_total_amount_sum' => $dao->contribution2_total_amount_sum
+          'contribution2_total_amount_sum' => $dao->contribution2_total_amount_sum,
         );
     }
 
index d5d610cfdaefffda3e484226a31abe86bf3ddc8f..8d095dee6b5c3b040c94f559524b077bb59637dd 100644 (file)
@@ -103,7 +103,7 @@ class CRM_Report_Form_Contribute_SoftCredit extends CRM_Report_Form {
         'filters' => array(
           'sort_name' => array(
             'name' => 'sort_name',
-            'title' => ts('Soft Credit Name')
+            'title' => ts('Soft Credit Name'),
           ),
         ),
         'grouping' => 'contact-fields',
@@ -152,7 +152,7 @@ class CRM_Report_Form_Contribute_SoftCredit extends CRM_Report_Form {
             'name' => 'id',
             'title' => ts('Financial Type'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-            'options' => CRM_Contribute_PseudoConstant::financialType()
+            'options' => CRM_Contribute_PseudoConstant::financialType(),
           ),
         ),
         'grouping' => 'softcredit-fields',
index c0f5162356ff3dbfe7787c2b0255359e5c6ba4ff..4c0c1742763de7cce11abe5cf49210820b5a046e 100644 (file)
@@ -408,7 +408,7 @@ class CRM_Report_Form_Contribute_Summary extends CRM_Report_Form {
       foreach (array(
                  'total_count_value',
                  'total_sum_value',
-                 'total_avg_value'
+                 'total_avg_value',
                ) as $val) {
         if (!empty($fields[$val])) {
           $errors[$val] = ts("Please select the Amount Statistics");
index d166b6c2e2335b02747f36f846939eee71ab5670..ff87350f92cca695374228534557e7daa3a8cd48 100644 (file)
@@ -528,7 +528,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
     if ($fieldName == 'yid') {
       return array(
         'calendar' => ts('Is Calendar Year'),
-        'fiscal' => ts('Fiscal Year Starting')
+        'fiscal' => ts('Fiscal Year Starting'),
       );
     }
     return parent::getOperationPair($type, $fieldName);
index 79abd52203f8282d5274ccc8ec05c0abf078b047..b2af1b5e9620562b3f5c01db342770ebeca2f400 100644 (file)
@@ -234,7 +234,7 @@ class CRM_Report_Form_Contribute_TopDonor extends CRM_Report_Form {
 
     if (!in_array($op, array(
       'eq',
-      'lte'
+      'lte',
     ))
     ) {
       $errors['total_range_op'] = ts("Please select 'Is equal to' OR 'Is Less than or equal to' operator");
index 6bf2ebdecff5cfc62d2b390a5f4c591f8f87013b..046945d9523d540ae9186b2e4ab1619f145669cf 100644 (file)
@@ -45,7 +45,7 @@ class CRM_Report_Form_Event_IncomeCountSummary extends CRM_Report_Form_Event {
   protected $_add2groupSupported = FALSE;
 
   protected $_customGroupExtends = array(
-    'Event'
+    'Event',
   );
 
   public $_drilldownReport = array('event/participantlist' => 'Link to Detail Report');
@@ -75,7 +75,7 @@ class CRM_Report_Form_Event_IncomeCountSummary extends CRM_Report_Form_Event {
             'title' => ts('Event Type'),
           ),
           'fee_label' => array(
-            'title' => ts('Fee Label')
+            'title' => ts('Fee Label'),
           ),
           'event_start_date' => array(
             'title' => ts('Event Start Date'),
index 761d123b808db9fb8b9a206ac7573e8092b0b631..c8e34536400f21af69df7f4add4b9278cc82bff2 100644 (file)
@@ -163,7 +163,7 @@ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form_Event {
             'type' => CRM_Utils_Type::T_INT,
             'attributes' => array(
               'entity' => 'event',
-              'select' => array('minimumInputLength' => 0)
+              'select' => array('minimumInputLength' => 0),
             ),
           ),
           'sid' => array(
index 5d86efb0ea219934184db4c60ef9595ec8f7b58e..6f4af5d2e66d858fe72903f29b6d4bbd4a01cdbb 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Report_Form_Event_ParticipantListing extends CRM_Report_Form_Event {
     'Participant',
     'Contact',
     'Individual',
-    'Event'
+    'Event',
   );
 
   public $_drilldownReport = array('event/income' => 'Link to Detail Report');
@@ -142,7 +142,7 @@ class CRM_Report_Form_Event_ParticipantListing extends CRM_Report_Form_Event {
           'birth_date' => array(
             'title' => 'Birth Date',
             'operatorType' => CRM_Report_Form::OP_DATE,
-            'type' => CRM_Utils_Type::T_DATE
+            'type' => CRM_Utils_Type::T_DATE,
           ),
         ),
       ),
@@ -215,7 +215,7 @@ class CRM_Report_Form_Event_ParticipantListing extends CRM_Report_Form_Event {
             'type' => CRM_Utils_Type::T_INT,
             'attributes' => array(
               'entity' => 'event',
-              'select' => array('minimumInputLength' => 0)
+              'select' => array('minimumInputLength' => 0),
             ),
           ),
           'sid' => array(
@@ -252,7 +252,7 @@ class CRM_Report_Form_Event_ParticipantListing extends CRM_Report_Form_Event {
           'event_id' => array(
             'title' => ts('Event'),
             'default_weight' => '1',
-            'default_order' => 'ASC'
+            'default_order' => 'ASC',
           ),
         ),
       ),
@@ -290,7 +290,7 @@ class CRM_Report_Form_Event_ParticipantListing extends CRM_Report_Form_Event {
           'event_type_id' => array(
             'title' => ts('Event Type'),
             'default_weight' => '2',
-            'default_order' => 'ASC'
+            'default_order' => 'ASC',
           ),
         ),
       ),
@@ -314,11 +314,11 @@ class CRM_Report_Form_Event_ParticipantListing extends CRM_Report_Form_Event {
           ),
           'currency' => array(
             'required' => TRUE,
-            'no_display' => TRUE
+            'no_display' => TRUE,
           ),
           'trxn_id' => NULL,
           'fee_amount' => array('title' => ts('Transaction Fee')),
-          'net_amount' => NULL
+          'net_amount' => NULL,
         ),
         'grouping' => 'contrib-fields',
         'filters' => array(
@@ -347,7 +347,7 @@ class CRM_Report_Form_Event_ParticipantListing extends CRM_Report_Form_Event {
             'title' => ts('Contribution Status'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Contribute_PseudoConstant::contributionStatus(),
-            'default' => NULL
+            'default' => NULL,
           ),
         ),
       ),
index b15bc97ec452b7f58c68c3f6e802b82ddde76f64..c5a058e1eec4e5dea2922913c0dce7e016b31f8c 100644 (file)
@@ -46,7 +46,7 @@ class CRM_Report_Form_Event_Summary extends CRM_Report_Form_Event {
   protected $_add2groupSupported = FALSE;
 
   protected $_customGroupExtends = array(
-    'Event'
+    'Event',
   );
   public $_drilldownReport = array('event/income' => 'Link to Detail Report');
 
index 5b865fe85eba16865a779403ebf633e0552a7fdd..18578f611bd4566b28dc5c91b40ac16d8f3f9a09 100644 (file)
@@ -358,7 +358,7 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
           'event_id' => array(
             'title' => ts('Event'),
             'default_weight' => '1',
-            'default_order' => 'ASC'
+            'default_order' => 'ASC',
           ),
         ),
         'group_bys' => array(
@@ -623,41 +623,41 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
         'fields' => array(
           'id' => array(
             'title' => ts('Case ID'),
-            'required' => FALSE
+            'required' => FALSE,
           ),
           'subject' => array(
             'title' => ts('Case Subject'),
-            'default' => TRUE
+            'default' => TRUE,
           ),
           'status_id' => array(
             'title' => ts('Status'),
-            'default' => TRUE
+            'default' => TRUE,
           ),
           'case_type_id' => array(
             'title' => ts('Case Type'),
-            'default' => TRUE
+            'default' => TRUE,
           ),
           'case_start_date' => array(
             'title' => ts('Case Start Date'),
             'name' => 'start_date',
-            'default' => TRUE
+            'default' => TRUE,
           ),
           'case_end_date' => array(
             'title' => ts('Case End Date'),
             'name' => 'end_date',
-            'default' => TRUE
+            'default' => TRUE,
           ),
           'case_duration' => array(
             'name' => 'duration',
             'title' => ts('Duration (Days)'),
-            'default' => FALSE
+            'default' => FALSE,
           ),
           'case_is_deleted' => array(
             'name' => 'is_deleted',
             'title' => ts('Case Deleted?'),
             'default' => FALSE,
-            'type' => CRM_Utils_Type::T_INT
-          )
+            'type' => CRM_Utils_Type::T_INT,
+          ),
         ),
         'filters' => array(
           'case_start_date' => array(
@@ -670,18 +670,18 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
             'title' => ts('Case End Date'),
             'operatorType' => CRM_Report_Form::OP_DATE,
             'type' => CRM_Utils_Type::T_DATE,
-            'name' => 'end_date'
+            'name' => 'end_date',
           ),
           'case_type_id' => array(
             'title' => ts('Case Type'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-            'options' => $this->case_types
+            'options' => $this->case_types,
           ),
           'case_status_id' => array(
             'title' => ts('Case Status'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => $this->case_statuses,
-            'name' => 'status_id'
+            'name' => 'status_id',
           ),
           'case_is_deleted' => array(
             'title' => ts('Case Deleted?'),
@@ -689,10 +689,10 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
             'operatorType' => CRM_Report_Form::OP_SELECT,
             'options' => $this->deleted_labels,
             'default' => 0,
-            'name' => 'is_deleted'
-          )
-        )
-      )
+            'name' => 'is_deleted',
+          ),
+        ),
+      ),
     );
   }
 
@@ -730,7 +730,7 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
       'order_by' => TRUE,
       'filters' => TRUE,
       'defaults' => array(
-        'country_id' => TRUE
+        'country_id' => TRUE,
       ),
     );
 
index 832ad76d4ce0594b25109479b5695ca377e662c3..d09f93bfe24774bf86eaf08e70215b34f5371128 100644 (file)
@@ -38,7 +38,7 @@ class CRM_Report_Form_Grant_Detail extends CRM_Report_Form {
   protected $_addressField = FALSE;
 
   protected $_customGroupExtends = array(
-    'Grant'
+    'Grant',
   );
 
   /**
index 700c782ce180d4b438112663b43c6777b40c1f54..9b7bca57049223c892b922aa774aa04c383ccf39 100644 (file)
@@ -215,7 +215,7 @@ class CRM_Report_Form_Grant_Statistics extends CRM_Report_Form {
     foreach ($this->_columns as $tableName => $table) {
       if (in_array($tableName, array(
         'civicrm_address',
-        'civicrm_world_region'
+        'civicrm_world_region',
       ))) {
         $this->_addressField = TRUE;
       }
index 0e47961d2363bdcb1c64f446f9282114a0490aed..974413e0bdb371dff762e25f229efa65ca9b4074 100644 (file)
@@ -89,7 +89,7 @@ class CRM_Report_Form_Instance {
       ts('Limit Dashboard Results'),
       array(
     'maxlength' => 64,
-        'size' => 5
+        'size' => 5,
       )
     );
 
index dde606de27d64917adfcddb3e24bc21b87c1975b..533121d3bd807b04677760e07e240f0c48878dac 100644 (file)
@@ -48,7 +48,7 @@ class CRM_Report_Form_Mailing_Bounce extends CRM_Report_Form {
     'Contact',
     'Individual',
     'Household',
-    'Organization'
+    'Organization',
   );
 
   protected $_charts = array(
@@ -95,7 +95,7 @@ class CRM_Report_Form_Mailing_Bounce extends CRM_Report_Form {
         'sort_name' => array(
           'title' => ts('Contact Name'),
           'default' => TRUE,
-          'default_order' => 'ASC'
+          'default_order' => 'ASC',
         ),
       ),
       'grouping' => 'contact-fields',
index 6dc66966714119f57015671827093c59b51f6478..15dbd9c73571db9fc708d917db351340fd9e4b3d 100644 (file)
@@ -45,7 +45,7 @@ class CRM_Report_Form_Mailing_Clicks extends CRM_Report_Form {
     'Contact',
     'Individual',
     'Household',
-    'Organization'
+    'Organization',
   );
 
   protected $_charts = array(
@@ -92,7 +92,7 @@ class CRM_Report_Form_Mailing_Clicks extends CRM_Report_Form {
         'sort_name' => array(
           'title' => ts('Contact Name'),
           'default' => TRUE,
-          'default_order' => 'ASC'
+          'default_order' => 'ASC',
         ),
       ),
       'grouping' => 'contact-fields',
index 3b0090983c1cf6ade47e44ff9902ce42653df29c..8d0ffd2c1e066c3507b0db7802a89652111697c8 100644 (file)
@@ -160,7 +160,7 @@ class CRM_Report_Form_Mailing_Detail extends CRM_Report_Form {
           'options' => array(
             '' => ts('Any'),
             '0' => ts('No'),
-            '1' => ts('Yes')
+            '1' => ts('Yes'),
           ),
           'clause' => 'mailing_event_unsubscribe_civireport.id IS NULL',
         ),
@@ -171,7 +171,7 @@ class CRM_Report_Form_Mailing_Detail extends CRM_Report_Form {
           'options' => array(
             '' => ts('Any'),
             '0' => ts('No'),
-            '1' => ts('Yes')
+            '1' => ts('Yes'),
           ),
           'clause' => 'mailing_event_unsubscribe_civireport2.id IS NULL',
         ),
@@ -196,7 +196,7 @@ class CRM_Report_Form_Mailing_Detail extends CRM_Report_Form {
           'options' => array(
             '' => ts('Any'),
             '0' => ts('No'),
-            '1' => ts('Yes')
+            '1' => ts('Yes'),
           ),
           'clause' => 'mailing_event_reply_civireport.id IS NULL',
         ),
@@ -221,7 +221,7 @@ class CRM_Report_Form_Mailing_Detail extends CRM_Report_Form {
           'options' => array(
             '' => ts('Any'),
             '0' => ts('No'),
-            '1' => ts('Yes')
+            '1' => ts('Yes'),
           ),
           'clause' => 'mailing_event_forward_civireport.id IS NULL',
         ),
@@ -264,7 +264,7 @@ class CRM_Report_Form_Mailing_Detail extends CRM_Report_Form {
               'unsubscribe_id',
               'optout_id',
               'forward_id',
-              'reply_id'
+              'reply_id',
             ))) {
               $select[] = "IF({$field['dbAlias']} IS NULL, 'No', 'Yes') as {$tableName}_{$fieldName}";
               $this->_columnHeaders["{$tableName}_{$fieldName}"]['type'] = CRM_Utils_Array::value('type', $field);
index c866b842053ba1d6fd84a746a338d8d1cfdb5c9d..152387f2fe15bc61378ad67ebdf60c0100ae00fa 100644 (file)
@@ -45,7 +45,7 @@ class CRM_Report_Form_Mailing_Opened extends CRM_Report_Form {
     'Contact',
     'Individual',
     'Household',
-    'Organization'
+    'Organization',
   );
 
   protected $_charts = array(
@@ -92,7 +92,7 @@ class CRM_Report_Form_Mailing_Opened extends CRM_Report_Form {
         'sort_name' => array(
           'title' => ts('Contact Name'),
           'default' => TRUE,
-          'default_order' => 'ASC'
+          'default_order' => 'ASC',
         ),
       ),
       'grouping' => 'contact-fields',
index b9e34aac174a8a165d34744c87cfaefad380e2e9..e99cb59c3c982b270b73f01b638d21bd8d091e6d 100644 (file)
@@ -43,7 +43,7 @@ class CRM_Report_Form_Member_ContributionDetail extends CRM_Report_Form {
 
   protected $_customGroupExtends = array(
     'Contribution',
-    'Membership'
+    'Membership',
   );
 
   /**
index 952f5cb1a8a1009e9dbf420422b30c990b478e86..92122e0f2e413553b1cd7186b1856f46a0338d55 100644 (file)
@@ -111,7 +111,7 @@ class CRM_Report_Form_Member_Detail extends CRM_Report_Form {
             'title' => ts('Last Name, First Name'),
             'default' => '1',
             'default_weight' => '0',
-            'default_order' => 'ASC'
+            'default_order' => 'ASC',
           ),
         ),
         'grouping' => 'contact-fields',
index 371d4cbbb6045cc6ec5c32c5304c95cec8692896..eee3cc3a5ded18ddca5040601725eec281e9bf61 100644 (file)
@@ -40,7 +40,7 @@ class CRM_Report_Form_Member_Lapse extends CRM_Report_Form {
   protected $_phoneField = FALSE;
   protected $_charts = array('' => 'Tabular');
   protected $_customGroupExtends = array(
-    'Membership'
+    'Membership',
   );
   public $_drilldownReport = array('member/detail' => 'Link to Detail Report');
 
index 2163a08fedfce904add84e0fbe2b6965baf42170..599382f036e2fe9b3c1add9b76c676f8a8bececc 100644 (file)
@@ -354,7 +354,7 @@ LEFT  JOIN civicrm_contribution  {$this->_aliases['civicrm_contribution']}
       foreach (array(
                  'receive_date',
                  $this->_interval,
-                 'value'
+                 'value',
                ) as $ignore) {
         unset($graphRows[$ignore][$count - 1]);
       }
index 4711c56a723cfd813547fb0573cf530da4f94c85..68f3e524c708f95b0d27b92adebc81644d98589d 100644 (file)
@@ -50,7 +50,7 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form {
   protected $_pledgeStatuses = array();
   protected $_customGroupExtends = array(
     'Pledge',
-    'Individual'
+    'Individual',
   );
 
   /**
@@ -223,7 +223,7 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form {
       $this->_totalPaid = TRUE; // add pledge_payment join
       $this->_columnHeaders["{$tableName}_{$fieldName}"] = array(
         'title' => $field['title'],
-        'type' => $field['type']
+        'type' => $field['type'],
       );
       return "COALESCE(sum({$this->_aliases[$tableName]}.actual_amount), 0) as {$tableName}_{$fieldName}";
     }
@@ -234,7 +234,7 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form {
       $this->_columnHeaders["{$tableName}_{$fieldName}"] = $field['title'];
       $this->_columnHeaders["{$tableName}_{$fieldName}"] = array(
         'title' => $field['title'],
-        'type' => $field['type']
+        'type' => $field['type'],
       );
       return "IF({$this->_aliases['civicrm_pledge']}.status_id IN({$cancelledStatus}, $completedStatus), 0, COALESCE({$this->_aliases['civicrm_pledge']}.amount, 0) - COALESCE(sum({$this->_aliases[$tableName]}.actual_amount),0)) as {$tableName}_{$fieldName}";
     }
@@ -436,7 +436,7 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form {
      */
     $tableHeaders = array(
       'civicrm_pledge_payment_total_paid',
-      'civicrm_pledge_payment_balance_due'
+      'civicrm_pledge_payment_balance_due',
     );
 
     foreach ($tableHeaders as $header) {
index a59a6774f381c68d76f911ec17ad3df3fa014454..7771143722851da99a2ec4e2cc507a1b915588f8 100644 (file)
@@ -41,7 +41,7 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
   public $_drilldownReport = array('pledge/summary' => 'Link to Detail Report');
 
   protected $_customGroupExtends = array(
-    'Pledge'
+    'Pledge',
   );
 
   /**
@@ -233,7 +233,7 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
     foreach (array(
                'Pending',
                'In Progress',
-               'Overdue'
+               'Overdue',
              ) as $statusKey) {
       if ($key = CRM_Utils_Array::key($statusKey, $allStatus)) {
         $unpaidStatus[] = $key;
index 839b9e33c9683a3bf06a2ee43ac1783ff158b2df..1164f84613d12b77055f6cd5e2b2532c48517c24 100644 (file)
@@ -48,7 +48,7 @@ class CRM_Report_Form_Walklist_Walklist extends CRM_Report_Form {
     'Contact',
     'Individual',
     'Household',
-    'Organization'
+    'Organization',
   );
 
   /**
@@ -84,7 +84,7 @@ class CRM_Report_Form_Walklist_Walklist extends CRM_Report_Form {
           'sort_name' => array(
             'title' => ts('Contact Name'),
             'required' => TRUE,
-          )
+          ),
         ),
       ),
       'civicrm_address' => array(
index f32b631a9ac590989108176f5369de3b430f211c..9009f4fab7e0842c3159d87af488dcb76f29881c 100644 (file)
@@ -434,7 +434,7 @@ WHERE  inst.report_id = %1";
             'default' => 'null',
           ),
         ),
-        'ignoreKey' => TRUE
+        'ignoreKey' => TRUE,
       );
       $messages[] = $wrapper->run($templateInfo['name'], NULL, $arguments);
     }
index c6f6e5c89c86c9c0b6e73aea03d8dbc22e23a8e6..274bff6f70b9e222abf3c27c09eb98528a52d7b5 100644 (file)
@@ -213,13 +213,13 @@ INNER JOIN civicrm_mailing_job mj ON mj.mailing_id = m.id AND mj.id = %1";
         'email' => array(
       1 => array(
           'location_type_id' => $phoneloc,
-          'email' => $stripFrom . '@mobile.sms'
+          'email' => $stripFrom . '@mobile.sms',
         )),
         'phone' => array(
       1 => array(
           'phone_type_id' => $phonetype,
           'location_type_id' => $phoneloc,
-          'phone' => $stripFrom
+          'phone' => $stripFrom,
         )),
       );
       $fromContact = CRM_Contact_BAO_Contact::create($contactparams, FALSE, TRUE, FALSE);
@@ -246,7 +246,7 @@ INNER JOIN civicrm_mailing_job mj ON mj.mailing_id = m.id AND mj.id = %1";
         'activity_date_time' => date('YmdHis'),
         'status_id' => $actStatusIDs['Completed'],
         'details' => $body,
-        'phone_number' => $from
+        'phone_number' => $from,
       );
       if ($trackID) {
         $trackID = CRM_Utils_Type::escape($trackID, 'String');
index 489b49645c8b597ccb39bd20c8f663e983db7b00..cc6105482da58938d9854930330f40ed45b55a10 100644 (file)
@@ -91,7 +91,7 @@ class CRM_UF_Form_Preview extends CRM_UF_Form_AbstractPreview {
         'county',
         'phone',
         'email',
-        'im'
+        'im',
       );
 
       if ($fieldDAO->location_type_id) {
index 78bb47fa4284f04242a7bca70e5d73c5ab907b36..2aa3dc1ffa420c89b3ef49b4428d9e3d5ebfb9d4 100644 (file)
@@ -501,7 +501,7 @@ SET    version = '$version'
                array(
                  1 => $minPhpVersion,
                  2 => $phpVersion,
-                 3 => $latestVer
+                 3 => $latestVer,
                ));
     }
 
@@ -514,7 +514,7 @@ SET    version = '$version'
     if (CRM_Core_DAO::getGlobalSetting('thread_stack', 0) < (1024 * self::MINIMUM_THREAD_STACK)) {
       $error = ts('CiviCRM %1 requires MySQL thread stack >= %2k', array(
         1 => $latestVer,
-        2 => self::MINIMUM_THREAD_STACK
+        2 => self::MINIMUM_THREAD_STACK,
       ));
     }
 
index 87ca1f4c13172b370f597bd3e25cd77a6e923d97..7743a01e00205e7996b01feac5651af676ee545f 100644 (file)
@@ -103,12 +103,12 @@ SELECT  id
     if (file_exists($ofcFile)) {
       if (@unlink($ofcFile)) {
         $preUpgradeMessage .= '<br />' . ts('This system included an outdated, insecure script (%1). The file was automatically deleted.', array(
-          1 => $ofcFile
+          1 => $ofcFile,
         ));
       }
       else {
         $preUpgradeMessage .= '<br />' . ts('This system includes an outdated, insecure script (%1). Please delete it.', array(
-          1 => $ofcFile
+          1 => $ofcFile,
         ));
       }
     }
index 3fff8370960228a31ee3a59c78f45438eba8ed9b..16b80da6e569d99381839d9adbcb96e9553ff85e 100644 (file)
@@ -69,7 +69,7 @@ class CRM_Upgrade_Incremental_php_FourFour {
       }
       if ($oversizedEntries > 0) {
         $preUpgradeMessage .= '<br/>' . ts("WARNING: There are %1 word-replacement entries which will not be valid in v4.4+ (eg with over 255 characters). They will be dropped during upgrade. For details, consult the CiviCRM log.", array(
-          1 => $oversizedEntries
+          1 => $oversizedEntries,
         ));
       }
     }
index 39e046d4f525d75910de979b61c0bb69b812cc61..f6cc5ef71494c3d8c330556d2d5d6b2fb51c9289 100644 (file)
@@ -516,7 +516,7 @@ AND       ceft.entity_table = 'civicrm_contribution'
     $queryParams = array(
       1 => array($completedStatus, 'Integer'),
       2 => array($pendingStatus, 'Integer'),
-      3 => array($cancelledStatus, 'Integer')
+      3 => array($cancelledStatus, 'Integer'),
     );
 
     $accountType = key(CRM_Core_PseudoConstant::accountOptionValues('financial_account_type', NULL, " AND v.name = 'Asset' "));
@@ -872,7 +872,7 @@ WHERE     cc.contact_type = 'Organization' AND cc.organization_name = %1
           'display_name' => $dao->name,
           'legal_name' => $dao->name,
           'organization_name' => $dao->name,
-          'contact_type' => 'Organization'
+          'contact_type' => 'Organization',
         );
         $contact = CRM_Contact_BAO_Contact::add($params);
         $contactID = $contact->id;
index 2eb0e4b6aabe713dba0693fa8783983a15b724b1..7c9b4a33e4da0aa2148df6c183a16986ea53a7c2 100644 (file)
@@ -108,7 +108,7 @@ ORDER BY mp.contribution_id, mp.membership_id";
       // note: error conditions are also checked in upgrade_4_2_beta2()
       if (!defined('CIVICRM_SETTINGS_PATH')) {
         $preUpgradeMessage .= '<br />' . ts('Could not determine path to civicrm.settings.php. Please manually locate it and add these lines at the bottom: <pre>%1</pre>', array(
-          1 => self::SETTINGS_SNIPPET
+          1 => self::SETTINGS_SNIPPET,
         ));
       }
       elseif (preg_match(self::SETTINGS_SNIPPET_PATTERN, file_get_contents(CIVICRM_SETTINGS_PATH))) {
@@ -117,7 +117,7 @@ ORDER BY mp.contribution_id, mp.membership_id";
       elseif (!is_writable(CIVICRM_SETTINGS_PATH)) {
         $preUpgradeMessage .= '<br />' . ts('The settings file (%1) must be updated. Please make it writable or manually add these lines:<pre>%2</pre>', array(
           1 => CIVICRM_SETTINGS_PATH,
-          2 => self::SETTINGS_SNIPPET
+          2 => self::SETTINGS_SNIPPET,
         ));
       }
     }
@@ -160,7 +160,7 @@ INNER JOIN civicrm_price_set cps ON cps.id = cpf.price_set_id AND cps.name <>'de
       $config = CRM_Core_Config::singleton();
       if (!empty($config->extensionsDir)) {
         $postUpgradeMessage .= '<br />' . ts('Please <a href="%1" target="_blank">configure the Extension Resource URL</a>.', array(
-          1 => CRM_Utils_System::url('civicrm/admin/setting/url', 'reset=1')
+          1 => CRM_Utils_System::url('civicrm/admin/setting/url', 'reset=1'),
         ));
       }
     }
@@ -398,11 +398,11 @@ HAVING COUNT(cpse.price_set_id) > 1 AND MIN(cpse1.id) <> cpse.id ";
     $daoName = array(
         'civicrm_contribution_page' => array(
           'CRM_Contribute_BAO_ContributionPage',
-          CRM_Core_Component::getComponentID('CiviContribute')
+          CRM_Core_Component::getComponentID('CiviContribute'),
         ),
         'civicrm_event' => array(
           'CRM_Event_BAO_Event',
-          CRM_Core_Component::getComponentID('CiviEvent')
+          CRM_Core_Component::getComponentID('CiviEvent'),
         ),
       );
 
index 10d01f4c5cbc838902bb2e8f73245d300513b962..4d0ad97ed575276253442abeb733c6e1851a6f0d 100644 (file)
@@ -174,7 +174,7 @@ class CRM_Utils_Geocode_Yahoo {
             if (CRM_Utils_System::isUserLoggedIn()) {
               $msg = ts('The Yahoo Geocoding system returned a different postal code (%1) than the one you entered (%2). If you want the Yahoo value, please delete the current postal code and save again.', array(
                 1 => $ret['postal'],
-                2 => $current_pc_suffix ? "$current_pc-$current_pc_suffix" : $current_pc
+                2 => $current_pc_suffix ? "$current_pc-$current_pc_suffix" : $current_pc,
               ));
 
               CRM_Core_Session::setStatus($msg, ts('Postal Code Mismatch'), 'error');
index 0e084fda3c7f78262eaa92b50e19e9d28e743fd7..59c56eb8101879d43d29814f91fba03f26d7af03 100644 (file)
@@ -195,7 +195,7 @@ class CRM_Utils_HttpClient {
   protected function createCurl($remoteFile) {
     require_once 'CA/Config/Curl.php';
     $caConfig = CA_Config_Curl::probe(array(
-      'verify_peer' => (bool) CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'verifySSL', NULL, TRUE)
+      'verify_peer' => (bool) CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'verifySSL', NULL, TRUE),
     ));
 
     $ch = curl_init();
index a1886d3a5ea0d0e212e0b9983c7dc864343898bc..dbb1965dcc65281174854003babdb47fae4e3c8a 100644 (file)
@@ -75,7 +75,7 @@ class CRM_Utils_Migrate_Export {
         'mappedFields' => array(
           array('optionGroup', 'option_group_id', 'option_group_name'),
           array('customGroup', 'custom_group_id', 'custom_group_name'),
-        )
+        ),
       ),
       'optionGroup' => array(
         'data' => array(),
@@ -127,7 +127,7 @@ class CRM_Utils_Migrate_Export {
         'required' => FALSE,
         'idNameMap' => array(),
         'mappedFields' => array(
-          array('profileGroup', 'uf_group_id', 'profile_group_name')
+          array('profileGroup', 'uf_group_id', 'profile_group_name'),
         ),
       ),
       'profileJoin' => array(
@@ -137,7 +137,7 @@ class CRM_Utils_Migrate_Export {
         'required' => FALSE,
         'idNameMap' => array(),
         'mappedFields' => array(
-          array('profileGroup', 'uf_group_id', 'profile_group_name')
+          array('profileGroup', 'uf_group_id', 'profile_group_name'),
         ),
       ),
       'mappingGroup' => array(
@@ -149,7 +149,7 @@ class CRM_Utils_Migrate_Export {
         'idNameMap' => array(),
         'mappedFields' => array(
           array('optionValue', 'mapping_type_id', 'mapping_type_name', 'mapping_type'),
-        )
+        ),
       ),
       'mappingField' => array(
         'data' => array(),
index ed286b59a56f99b6fd5c104e4f129a6ea14bb2c8..8388c61e6f76370e70902e8339d6405c31d7dff2 100644 (file)
@@ -470,7 +470,7 @@ WHERE ac.contact_id IN ( $ids )
         'id' => $dao->acID,
         'contact_id' => $dao->contact_id,
         'activity_id' => $dao->activity_id,
-        'record_type_id' => $dao->record_type_id
+        'record_type_id' => $dao->record_type_id,
       );
       $this->appendValue($dao->acID, 'civicrm_activity_contact', $activityContacts);
 
index f40e1cb54f8182e6c36fa243f72bcfdc1f03d30e..30ebc296b348684bdb4dbc31f445ca49d175f17c 100644 (file)
@@ -110,7 +110,7 @@ class CRM_Utils_Migrate_Import {
             array(
               1 => $keyName,
               2 => $dao->$keyName,
-              3 => $dao->__table
+              3 => $dao->__table,
             )
           ), '', 'info');
           return FALSE;
@@ -283,7 +283,7 @@ AND        v.name = %1
               1 => array(
                 (string ) $customGroupXML->extends_entity_column_value_option_group,
                 'String',
-              )
+              ),
             );
             $valueID = (int ) CRM_Core_DAO::singleValueQuery($sql, $params);
             if ($valueID) {
@@ -447,7 +447,7 @@ AND        f.column_name = %2
               array(
                 1 => $profileField->field_name,
                 2 => $tableName,
-                3 => $columnName
+                3 => $columnName,
               )
             ) . "<br />");
           }
index b17809a550b494f52cd5a2cb58c87dffcabf67bd..ec0591c31a385a07db48e99884e3e4d5b5301c14 100644 (file)
@@ -428,7 +428,7 @@ class CRM_Utils_Rule {
                           'CRM_Contribute_DAO_Contribution',
                           'currency', array(
                                            'keyColumn' => 'name',
-                                           'labelColumn' => 'symbol'
+                                           'labelColumn' => 'symbol',
                                             ));
     $value = str_replace($currencySymbols, '', $value);
 
index 2755a23cd85d3901af2b75740fb08693657f55ab..4120bdf62d1596890e44831b338a02621194b079 100644 (file)
@@ -147,7 +147,7 @@ function civicrm_api3_attachment_create($params) {
   }
 
   $result = array(
-    $fileDao->id => _civicrm_api3_attachment_format_result($fileDao, $entityFileDao, $returnContent, $isTrusted)
+    $fileDao->id => _civicrm_api3_attachment_format_result($fileDao, $entityFileDao, $returnContent, $isTrusted),
   );
   return civicrm_api3_create_success($result, $params, 'Attachment', 'create');
 }
index ef0a33d5d9de2861769939afd7f54d5214d710a5..f9c96b894c3237c81c44d29f4d2815d4c8265d2e 100644 (file)
@@ -187,7 +187,7 @@ function _civicrm_api3_constant_get_spec(&$params) {
       'title' => 'Constant Name',
       'name' => 'name',
       'api.required' => 1,
-        'options' => array_combine($options, $options)
+        'options' => array_combine($options, $options),
       ))
   );
 }
index 13b832c77e408b8fbab26013e3a4f16e8a5705ed..6b597cc564cd9a1074e1579bde85337d1467edc8 100644 (file)
@@ -393,7 +393,7 @@ function _civicrm_api3_contact_check_params(&$params, $dupeCheck = TRUE, $dupeEr
     else {
       $result = civicrm_api3('contact', 'create', array(
         'organization_name' => $params['current_employer'],
-        'contact_type' => 'Organization'
+        'contact_type' => 'Organization',
       ));
       $params['employer_id'] = $result['id'];
     }
@@ -834,16 +834,16 @@ LIMIT    0, {$limit}
         $contactList = array(
           array(
           'data' => $currEmpDetails['data'],
-            'id'   => $currEmpDetails['id']
-          )
+            'id'   => $currEmpDetails['id'],
+          ),
         );
       }
       else {
         $contactList = array(
           array(
             'data' => $name,
-            'id'   => $name
-          )
+            'id'   => $name,
+          ),
         );
       }
     }
index 749ec6ce7080d3427d51aa131793c5de23e5b6e9..2e8cee81cce724f11825b47538bb4458a4affb3b 100644 (file)
@@ -158,14 +158,14 @@ function _civicrm_api3_contribution_create_legacy_support_45(&$params) {
     $params['soft_credit'][] = array(
       'contact_id'          => $params['soft_credit_to'],
       'amount'              => $params['total_amount'],
-      'soft_credit_type_id' => CRM_Core_OptionGroup::getDefaultValue("soft_credit_type")
+      'soft_credit_type_id' => CRM_Core_OptionGroup::getDefaultValue("soft_credit_type"),
     );
   }
   if (!empty($params['honor_contact_id'])) {
     $params['soft_credit'][] = array(
       'contact_id'          => $params['honor_contact_id'],
       'amount'              => $params['total_amount'],
-      'soft_credit_type_id' => CRM_Utils_Array::value('honor_type_id', $params, CRM_Core_OptionGroup::getValue('soft_credit_type', 'in_honor_of', 'name'))
+      'soft_credit_type_id' => CRM_Utils_Array::value('honor_type_id', $params, CRM_Core_OptionGroup::getValue('soft_credit_type', 'in_honor_of', 'name')),
     );
   }
 }
@@ -381,7 +381,7 @@ function civicrm_api3_contribution_sendconfirmation($params) {
 function _civicrm_api3_contribution_sendconfirmation_spec(&$params) {
   $params['id'] = array(
     'api.required' => 1,
-    'title' => 'Contribution ID'
+    'title' => 'Contribution ID',
   );
   $params['receipt_from_email'] = array(
     'api.required' => 1,
index ae9ce6498b36350e4951c34914422b3dd5d84d5e..dea29583509e036456d210dcb4767c3ae7ed0183 100644 (file)
@@ -63,7 +63,7 @@ function civicrm_api3_domain_get($params) {
     if (!empty($domain['contact_id'])) {
       $values = array();
       $locparams = array(
-        'contact_id' => $domain['contact_id']
+        'contact_id' => $domain['contact_id'],
       );
       $values['location'] = CRM_Core_BAO_Location::getValues($locparams, TRUE);
 
@@ -89,7 +89,7 @@ function civicrm_api3_domain_get($params) {
         'phone' => CRM_Utils_Array::value(
           'phone',
         $values['location']['phone'][1]
-        )
+        ),
         );
       }
 
index cdf473b400764fad831677e71f71cb8583b9ff06..f6e5aa2b97512578459efeb4927864eaf65cbcc4 100644 (file)
@@ -190,7 +190,7 @@ function _civicrm_api3_group_contact_common($params, $op = 'Added') {
     $extraReturnValues= array(
       'total_count' => 0,
       'added' => 0,
-      'not_added' => 0
+      'not_added' => 0,
     );
     foreach ($groupIDs as $groupID) {
       list($tc, $a, $na) = CRM_Contact_BAO_GroupContact::addContactsToGroup($contactIDs,
@@ -208,7 +208,7 @@ function _civicrm_api3_group_contact_common($params, $op = 'Added') {
     $extraReturnValues= array(
       'total_count' => 0,
       'removed' => 0,
-      'not_removed' => 0
+      'not_removed' => 0,
     );
     foreach ($groupIDs as $groupID) {
       list($tc, $r, $nr) = CRM_Contact_BAO_GroupContact::removeContactsFromGroup($contactIDs, $groupID, $method, $status, $tracking);
index f69c1ebd698c2d143847d28ad8fb7a5828da2cfc..481e47f6efdb2f2fe137882d860ceefe524c5426 100644 (file)
@@ -213,7 +213,7 @@ function _civicrm_api3_job_send_reminder(&$params) {
   // as it is calling the api fn to set the filters - update getfields to reflect
   $params['id'] = array(
     'type' => CRM_Utils_Type::T_INT,
-    'title' => 'Action Schedule ID'
+    'title' => 'Action Schedule ID',
   );
 }
 /**
index f32f4a2fa519aae30de6732d57b356651dcf441b..a6029c757fd158209c339155bfcb26a32505be0a 100755 (executable)
@@ -479,7 +479,7 @@ function civicrm_api3_mailing_send_test($params) {
         $contact   = civicrm_api3('Contact', 'create',
           array('contact_type' => 'Individual',
             'email' => $email,
-            'api.Email.get' => array('return' => 'id')
+            'api.Email.get' => array('return' => 'id'),
           )
         );
         $contactId = $contact['id'];
@@ -488,7 +488,7 @@ function civicrm_api3_mailing_send_test($params) {
       civicrm_api3('MailingEventQueue', 'create',
         array('job_id' => $job['id'],
           'email_id' => $emailId,
-          'contact_id' => $contactId
+          'contact_id' => $contactId,
         )
       );
     }
@@ -545,27 +545,27 @@ function civicrm_api3_mailing_stats($params) {
     switch ($detail) {
       case 'Delivered':
         $stats[$params['mailing_id']] += array(
-          $detail =>  CRM_Mailing_Event_BAO_Delivered::getTotalCount($params['mailing_id'], $params['job_id'], FALSE, $params['date'])
+          $detail =>  CRM_Mailing_Event_BAO_Delivered::getTotalCount($params['mailing_id'], $params['job_id'], FALSE, $params['date']),
         );
         break;
       case 'Bounces':
         $stats[$params['mailing_id']] += array(
-          $detail =>  CRM_Mailing_Event_BAO_Bounce::getTotalCount($params['mailing_id'], $params['job_id'], FALSE, $params['date'])
+          $detail =>  CRM_Mailing_Event_BAO_Bounce::getTotalCount($params['mailing_id'], $params['job_id'], FALSE, $params['date']),
         );
         break;
       case 'Unsubscribers':
         $stats[$params['mailing_id']] += array(
-          $detail =>  CRM_Mailing_Event_BAO_Unsubscribe::getTotalCount($params['mailing_id'], $params['job_id'], FALSE, NULL, $params['date'])
+          $detail =>  CRM_Mailing_Event_BAO_Unsubscribe::getTotalCount($params['mailing_id'], $params['job_id'], FALSE, NULL, $params['date']),
         );
         break;
       case 'Unique Clicks':
         $stats[$params['mailing_id']] += array(
-          $detail =>  CRM_Mailing_Event_BAO_TrackableURLOpen::getTotalCount($params['mailing_id'], $params['job_id'], FALSE, NULL, $params['date'])
+          $detail =>  CRM_Mailing_Event_BAO_TrackableURLOpen::getTotalCount($params['mailing_id'], $params['job_id'], FALSE, NULL, $params['date']),
         );
         break;
       case 'Opened':
         $stats[$params['mailing_id']] += array(
-          $detail =>  CRM_Mailing_Event_BAO_Opened::getTotalCount($params['mailing_id'], $params['job_id'], FALSE, $params['date'])
+          $detail =>  CRM_Mailing_Event_BAO_Opened::getTotalCount($params['mailing_id'], $params['job_id'], FALSE, $params['date']),
         );
         break;
     }
index d230f203c63b54aec2aecac5c7b0e7398efe3add..065474dc2dea0186b6522d4141ae716ab169979a 100755 (executable)
@@ -223,8 +223,8 @@ function civicrm_api3_mailing_a_b_graph_stats($params) {
         $graphStats[$name] = array(
           $params['split_count_select'] => array(
             'count' => CRM_Mailing_Event_BAO_Opened::getTotalCount($mailingAB[$column], NULL, TRUE, $toDate),
-            'time' => CRM_Utils_Date::customFormat($toDate)
-          )
+            'time' => CRM_Utils_Date::customFormat($toDate),
+          ),
         );
         break;
       case 'total unique clicks':
@@ -237,8 +237,8 @@ function civicrm_api3_mailing_a_b_graph_stats($params) {
         $graphStats[$name] = array(
           $params['split_count_select'] => array(
             'count' => CRM_Mailing_Event_BAO_TrackableURLOpen::getTotalCount($params['mailing_id'], NULL, FALSE, NULL, $toDate),
-            'time' => CRM_Utils_Date::customFormat($toDate)
-          )
+            'time' => CRM_Utils_Date::customFormat($toDate),
+          ),
         );
         break;
       case 'total clicks on a particular link':
@@ -256,8 +256,8 @@ function civicrm_api3_mailing_a_b_graph_stats($params) {
         $graphStats[$name] = array(
           $params['split_count_select'] => array(
             'count' => CRM_Mailing_Event_BAO_TrackableURLOpen::getTotalCount($params['mailing_id'], NULL, FALSE, $url_id, $toDate),
-            'time' => CRM_Utils_Date::customFormat($toDate)
-          )
+            'time' => CRM_Utils_Date::customFormat($toDate),
+          ),
         );
         break;
     }
index 4ca17da2566c9cd33c9689d90864d759bc887fda..f807114bfff5b1e3662bb490443fd9551bda6cef 100644 (file)
@@ -92,7 +92,7 @@ function _civicrm_api3_mailing_contact_get_spec(&$params) {
     'options' => array(
       'Delivered' => 'Delivered',
       'Bounced' => 'Bounced',
-    )
+    ),
   );
 }
 
@@ -136,13 +136,13 @@ GROUP BY   m.id
 ";
 
     $qParams = array(
-      1 => array($contactID, 'Integer')
+      1 => array($contactID, 'Integer'),
     );
     $dao = CRM_Core_DAO::executeQuery($sql, $qParams);
 
     $params = array(
       'type'   => $type,
-      'contact_id' => $contactID
+      'contact_id' => $contactID,
     );
 
     $results = $dao->N;
@@ -196,7 +196,7 @@ LIMIT %2, %3
     $qParams = array(
       1 => array($contactID, 'Integer'),
       2 => array($offset, 'Integer'),
-      3 => array($limit, 'Integer')
+      3 => array($limit, 'Integer'),
     );
     $dao = CRM_Core_DAO::executeQuery($sql, $qParams);
 
index a6a29785e6895793ebd406e0530d7d6de175a944..742e4236eaa9b04a26d2b7af700cf651a4b1750b 100644 (file)
@@ -158,7 +158,7 @@ function _civicrm_api3_membership_create_spec(&$params) {
   $params['membership_type_id']['api.aliases'] = array('membership_type');
   $params['status_id']['api.aliases'] = array('membership_status');
   $params['skipStatusCal'] = array(
-    'title' => 'Skip status calculation. By default this is 0 if id is not set and 1 if it is set.'
+    'title' => 'Skip status calculation. By default this is 0 if id is not set and 1 if it is set.',
   );
   $params['num_terms'] = array(
     'title' => 'Number of terms to add/renew. If this parameter is passed, dates will be calculated automatically. If no id is passed (new membership) and no dates are given, num_terms will be assumed to be 1.',
index 1bebdf83e0233bbff8456a697cfc747f7bed495e..b4bf07fffee4c8a0476931034370f24d15135f16 100644 (file)
@@ -77,7 +77,7 @@ function civicrm_api3_pledge_create($params) {
 function civicrm_api3_pledge_delete($params) {
   if (CRM_Pledge_BAO_Pledge::deletePledge($params['id'])) {
     return civicrm_api3_create_success(array(
-      'id' => $params['id']
+      'id' => $params['id'],
     ), $params, 'pledge', 'delete');
   }
   else {
index 79498d08db11507667fd8577657f3b04b554cb40..ffa64e8b3abf525965e4f5347800f64c66632f0c 100644 (file)
@@ -218,14 +218,14 @@ function civicrm_api3_profile_submit($params) {
   if (isset($contactParams['api.contribution.create']) && isset($contactParams['api.membership.create'])) {
     $contactParams['api.membership_payment.create'] = array(
       'contribution_id' => '$value.api.contribution.create.id',
-      'membership_id' => '$value.api.membership.create.id'
+      'membership_id' => '$value.api.membership.create.id',
     );
   }
 
   if (isset($contactParams['api.contribution.create']) && isset($contactParams['api.participant.create'])) {
     $contactParams['api.participant_payment.create'] = array(
       'contribution_id' => '$value.api.contribution.create.id',
-      'participant_id' => '$value.api.participant.create.id'
+      'participant_id' => '$value.api.participant.create.id',
     );
   }
 
index 63f16cfd3a0e191c39123fd31e87cecfa6bec40c..5e1a3ee55fd8ee6503fad07f5870a3eb0bce147a 100644 (file)
@@ -46,7 +46,7 @@ function civicrm_api3_setting_getfields($params) {
         'api.required' => 0,
         'title' => 'Setting Group',
         'description' => 'Settings Group. This is required if the setting is not stored in config',
-        'type' => CRM_Utils_Type::T_STRING)
+        'type' => CRM_Utils_Type::T_STRING),
       );
     return civicrm_api3_create_success($result, $params, 'setting', 'getfields');
   }
@@ -168,7 +168,7 @@ function civicrm_api3_setting_fill(&$params) {
   foreach ($domains as $domainID) {
     $apiArray = array(
       'version' => $params['version'],
-      'domain_id' => $domainID
+      'domain_id' => $domainID,
     );
     $existing = civicrm_api3('setting', 'get', $apiArray);
     $valuesToFill = array_diff_key($defaults['values'][$domainID], $existing['values'][$domainID]);
@@ -189,7 +189,7 @@ function _civicrm_api3_setting_fill_spec(&$params) {
     'api.default' => 'current_domain',
     'title' => 'Setting Domain',
     'description' => 'Defaults may differ by domain - if you do not pass in a domain id this will default to the current domain
-      an array or "all" are acceptable values for multiple domains'
+      an array or "all" are acceptable values for multiple domains',
   );
 }
 
@@ -222,11 +222,11 @@ function _civicrm_api3_setting_create_spec(&$params) {
     'api.default' => 'current_domain',
     'title' => 'Setting Domain',
     'description' => 'if you do not pass in a domain id this will default to the current domain
-      an array or "all" are acceptable values for multiple domains'
+      an array or "all" are acceptable values for multiple domains',
    );
   $params['group'] = array(
      'title' => 'Setting Group',
-     'description' => 'if you know the group defining it will make the api more efficient'
+     'description' => 'if you know the group defining it will make the api more efficient',
    );
 }
 
@@ -256,11 +256,11 @@ function _civicrm_api3_setting_get_spec(&$params) {
   $params['domain_id'] = array(
     'api.default' => 'current_domain',
     'title' => 'Setting Domain',
-    'description' => 'if you do not pass in a domain id this will default to the current domain'
+    'description' => 'if you do not pass in a domain id this will default to the current domain',
   );
   $params['group'] = array(
     'title' => 'Setting Group',
-    'description' => 'if you know the group defining it will make the api more efficient'
+    'description' => 'if you know the group defining it will make the api more efficient',
   );
 }
 /**
@@ -317,7 +317,7 @@ function _civicrm_api3_setting_getvalue_spec(&$params) {
   );
   $params['domain_id'] = array(
     'title' => 'Setting Domain',
-    'description' => 'if you do not pass in a domain id this will default to the current domain'
+    'description' => 'if you do not pass in a domain id this will default to the current domain',
   );
 }
 
index 5ab390605bf536d4f649e21d0c366b4822c444e2..b4148f703e13911d4b9d1f615bbea0642e31a8ce 100644 (file)
@@ -49,6 +49,6 @@ return array(
       'is_domain' => 1,
       'is_contact' => 1,
       'description' => "WRITE ME",
-      'help_text' => 'WRITE ME'
+      'help_text' => 'WRITE ME',
   ),
 );
index 8597d25ca937d34e85b3661dd8ae38f000ad6da1..89c1c3f163e2e7064b3b7993127a4d8b55043e9d 100644 (file)
@@ -36,7 +36,7 @@ class CRM_Case_BAO_CaseTypeForkTest extends CiviCaseTestCase {
           array('name' => 'First act'),
           array('name' => 'Second act'),
         ),
-      )
+      ),
     ));
 
     $this->assertTrue(CRM_Case_BAO_CaseType::isForkable($caseTypeId));
@@ -71,7 +71,7 @@ class CRM_Case_BAO_CaseTypeForkTest extends CiviCaseTestCase {
           array('name' => 'First act'),
           array('name' => 'Second act'),
         ),
-      )
+      ),
     ));
 
     $this->assertFalse(CRM_Case_BAO_CaseType::isForkable($caseTypeId));
index 8dd988606924b1ef4f2364528ac3dc5ac20ce438..19a8e71f6840bfa02fc5912805c6981f3e7c00d4 100644 (file)
@@ -76,7 +76,7 @@ class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase {
         2 => 'Cool City',
         3 => 1,
         4 => 0,
-      )
+      ),
     );
     $returnProperties = array(
       'contact_type' => 1,
@@ -114,7 +114,7 @@ class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase {
         2 => 'Dumb City',
         3 => 1,
         4 => 0,
-      )
+      ),
     );
     $returnProperties = array(
       'contact_type' => 1,
@@ -153,7 +153,7 @@ class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase {
           2 => 'Cool City',
           3 => 1,
           4 => 0,
-        )
+        ),
       );
     $returnProperties = array(
         'contact_type' => 1,
index 5aacef45b03ad3f2c5dc36f1ba2f1053a6659715..72f7cd13ed648982e943c8aff0365ae428e7a7d3 100644 (file)
@@ -72,7 +72,7 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase {
       'repetition_frequency_unit' => 'month',
       'repetition_frequency_interval' => 3,
       'start_action_offset' => 5,
-      'used_for'            => 'activity'
+      'used_for'            => 'activity',
     );
 
     $generatedEntities = $recursion->generate();
@@ -82,7 +82,7 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase {
       '20141227103000',
       '20150328103000',
       '20150627103000',
-      '20150926103000'
+      '20150926103000',
     );
     foreach ($generatedEntities['civicrm_activity'] as $entityID) {
       $this->assertDBNotNull('CRM_Activity_DAO_Activity', $entityID, 'id',
@@ -146,7 +146,7 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase {
       'repetition_frequency_unit'     => 'week',
       'repetition_frequency_interval' => 1,
       'start_action_offset'           => 4,
-      'used_for'                      => 'event'
+      'used_for'                      => 'event',
     );
 
     $recursion->linkedEntities = array(
@@ -154,7 +154,7 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase {
         'table'         => 'civicrm_tell_friend',
         'findCriteria'  => array(
           'entity_id'    => $recursion->entity_id,
-          'entity_table' => 'civicrm_event'
+          'entity_table' => 'civicrm_event',
         ),
         'linkedColumns' => array('entity_id'),
         'isRecurringEntityRecord' => TRUE,
@@ -169,7 +169,7 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase {
       '20141027103000' => '20141029103000',
       '20141103103000' => '20141105103000',
       '20141110103000' => '20141112103000',
-      '20141117103000' => '20141119103000'
+      '20141117103000' => '20141119103000',
     );
 
     $this->assertCount($recursion->schedule['start_action_offset'], $generatedEntities['civicrm_event'], 'Check if the number of events created are right');
@@ -214,22 +214,22 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase {
     //Cross check event exists before we test deletion
     $searchParamsEventBeforeDelete = array(
       'entity_id'    => $generatedEntities['civicrm_event'][$key],
-      'entity_table' => 'civicrm_event'
+      'entity_table' => 'civicrm_event',
     );
     $expectedValuesEventBeforeDelete = array(
       'entity_id'    => $generatedEntities['civicrm_event'][$key],
-      'entity_table' => 'civicrm_event'
+      'entity_table' => 'civicrm_event',
     );
     $this->assertDBCompareValues('CRM_Core_DAO_RecurringEntity', $searchParamsEventBeforeDelete, $expectedValuesEventBeforeDelete);
 
     //Cross check event exists before we test deletion
     $searchParamsTellAFriendBeforeDelete = array(
       'entity_id'    => $generatedEntities['civicrm_tell_friend'][$actKey],
-      'entity_table' => 'civicrm_tell_friend'
+      'entity_table' => 'civicrm_tell_friend',
     );
     $expectedValuesTellAFriendBeforeDelete = array(
       'entity_id'    => $generatedEntities['civicrm_tell_friend'][$actKey],
-      'entity_table' => 'civicrm_tell_friend'
+      'entity_table' => 'civicrm_tell_friend',
     );
     $this->assertDBCompareValues('CRM_Core_DAO_RecurringEntity', $searchParamsTellAFriendBeforeDelete, $expectedValuesTellAFriendBeforeDelete);
 
@@ -245,7 +245,7 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase {
     $this->assertDBNull('CRM_Event_DAO_Event', $generatedEntities['civicrm_event'][$key], 'id', 'id', 'Check if event was deleted');
     $searchParams = array(
       'entity_id' => $generatedEntities['civicrm_event'][$key],
-      'entity_table' => 'civicrm_event'
+      'entity_table' => 'civicrm_event',
     );
     $compareParams = array();
     $this->assertDBCompareValues('CRM_Core_DAO_RecurringEntity', $searchParams, $compareParams);
@@ -253,7 +253,7 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase {
     //Find tell_a_friend id if that was deleted from civicrm
     $searchActParams = array(
       'entity_id' => $generatedEntities['civicrm_tell_friend'][$actKey],
-      'entity_table' => 'civicrm_tell_friend'
+      'entity_table' => 'civicrm_tell_friend',
     );
     $compareActParams = array();
     $this->assertDBCompareValues('CRM_Friend_DAO_Friend', $searchActParams, $compareActParams);
index 8e40c24fc0aac67b22ca930527396bc7b6a7cee0..2032949d88a45cdf83da2ff3e740a9bb3a15e7be 100644 (file)
@@ -147,7 +147,7 @@ class CRM_Core_BAO_SettingTest extends CiviUnitTestCase {
       'version' => 3,
       'name' => 'max_attachments',
       'group' => CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
-      'domain_id' => 2
+      'domain_id' => 2,
     ));
 
     $this->assertEquals(3, $value);
@@ -221,7 +221,7 @@ class CRM_Core_BAO_SettingTest extends CiviUnitTestCase {
         'description' => NULL,
         'help_text' => NULL,
         'on_change' => array(// list of callbacks
-          array(__CLASS__, '_testOnChange_onChangeExample')
+          array(__CLASS__, '_testOnChange_onChangeExample'),
         ),
       ),
     ));
index 93effc4684ae88888ad0e0dc4e7e9f6e7365b877..cbb01a5e3e6a6e31367dc4c2ca27c721e7cb7ac9 100644 (file)
@@ -41,7 +41,7 @@ class CRM_Core_BAO_UFFieldTest extends CiviUnitTestCase {
       array(
         'field_name' => 'activity_date_time',
         'field_type' => 'Activity',
-      )
+      ),
     ));
     $fields = CRM_Core_BAO_UFField::getAvailableFields($ufGroupId);
 
index 9998c0ce80da34329ec34ffa684b6e330401efd6..55c5e59825f2208283bf3be74d5b4a53a30cb141 100644 (file)
@@ -58,11 +58,11 @@ class CRM_Core_CommunityMessagesTest extends CiviUnitTestCase {
       self::$webResponses = array(
         'http-error' => array(
           CRM_Utils_HttpClient::STATUS_DL_ERROR,
-          NULL
+          NULL,
         ),
         'bad-json' => array(
           CRM_Utils_HttpClient::STATUS_OK,
-          '<html>this is not json!</html>'
+          '<html>this is not json!</html>',
         ),
         'invalid-ttl-document' => array(
           CRM_Utils_HttpClient::STATUS_OK,
@@ -74,7 +74,7 @@ class CRM_Core_CommunityMessagesTest extends CiviUnitTestCase {
                 'markup' => '<h1>Invalid document</h1>',
               ),
             ),
-          ))
+          )),
         ),
         'first-valid-response' => array(
           CRM_Utils_HttpClient::STATUS_OK,
@@ -86,7 +86,7 @@ class CRM_Core_CommunityMessagesTest extends CiviUnitTestCase {
                 'markup' => '<h1>First valid response</h1>',
               ),
             ),
-          ))
+          )),
         ),
         'second-valid-response' => array(
           CRM_Utils_HttpClient::STATUS_OK,
@@ -98,7 +98,7 @@ class CRM_Core_CommunityMessagesTest extends CiviUnitTestCase {
                 'markup' => '<h1>Second valid response</h1>',
               ),
             ),
-          ))
+          )),
         ),
         'two-messages' => array(
           CRM_Utils_HttpClient::STATUS_OK,
@@ -115,7 +115,7 @@ class CRM_Core_CommunityMessagesTest extends CiviUnitTestCase {
                 'components' => array('CiviMail'),
               ),
             ),
-          ))
+          )),
         ),
         'two-messages-halfbadcomp' => array(
           CRM_Utils_HttpClient::STATUS_OK,
@@ -132,7 +132,7 @@ class CRM_Core_CommunityMessagesTest extends CiviUnitTestCase {
                 'components' => array('CiviMail'),
               ),
             ),
-          ))
+          )),
         ),
       );
     }
index 1e8de86e7fff92809b52d0033fcaec65bbc966cf..37dd86123a8ac1834a659e77fe3694ea95c6cf28 100644 (file)
@@ -60,7 +60,7 @@ class CRM_Core_Config_MailerTest extends CiviUnitTestCase {
       $test->calls['send']++;
       $test->assertEquals(array('to@example.org'), $recipients);
       $test->assertEquals('Subject Example', $headers['Subject']);
-    }
+    },
     ));
 
     CRM_Utils_Hook::singleton()->setHook('civicrm_alterMailer',
index 7d744672e715aa405199af506ec1bfd0ccd1843a..527064f3d7775259a86b065f58cbe178732a8fb1 100644 (file)
@@ -20,7 +20,7 @@ class CRM_Core_InnoDBIndexerTest extends CiviUnitTestCase {
     $idx = new CRM_Core_InnoDBIndexer(TRUE, array(
       'civicrm_contact' => array(
         array('first_name', 'last_name'),
-        array('foo')
+        array('foo'),
       ),
       'civicrm_email' => array(
         array('whiz'),
index 943774fd065d815d229cb17e64f171b54d897cc9..8b6bc83d14bf2c95019fc817b18b7b081b9a8751 100644 (file)
@@ -180,7 +180,7 @@ class CRM_Core_ManagedEntitiesTest extends CiviUnitTestCase {
 
     // create first managed entity ('foo')
     $decls[] = array_merge($this->fixtures['com.example.one-foo'], array(
-      'cleanup' => 'never'
+      'cleanup' => 'never',
     ));
     $me = new CRM_Core_ManagedEntities($this->modules, $decls);
     $me->reconcile();
@@ -209,7 +209,7 @@ class CRM_Core_ManagedEntitiesTest extends CiviUnitTestCase {
 
     // create first managed entity ('foo')
     $decls[] = array_merge($this->fixtures['com.example.one-foo'], array(
-      'cleanup' => 'unused'
+      'cleanup' => 'unused',
     ));
     $me = new CRM_Core_ManagedEntities($this->modules, $decls);
     $me->reconcile();
@@ -224,7 +224,7 @@ class CRM_Core_ManagedEntitiesTest extends CiviUnitTestCase {
           'name' => 'mock',
           'type' => 'mock',
           'count' => 1,
-        )
+        ),
       ));
     });
 
index e5977e0ae7f6dcd73aaa20df2a7fbdb91c6954ee..daf919797b5bff75e1f394ef9b00f2885ce45874 100644 (file)
@@ -24,7 +24,7 @@ class CRM_Core_Page_RedirectTest extends CiviUnitTestCase {
       '',
       'gid=2&reset=1',
       'url=civicrm/newfoo/%%gid%%?reset=%%reset%%',
-      '/index.php?q=civicrm/newfoo/2&amp;reset=1'
+      '/index.php?q=civicrm/newfoo/2&amp;reset=1',
     );
 
     return $cases;
index b0e8dd15e08e1f9482207616587f5d06c5d5a3eb..59ad720756f40d156e7e5d4848c6bf9737c5552b 100644 (file)
@@ -125,7 +125,7 @@ class CRM_Core_Payment_AuthorizeNetIPNTest extends CiviUnitTestCase {
       'x_avs_code' => 'Z',
       'x_response_reason_text' => 'This transaction has been approved.',
       'x_response_reason_code' => '1',
-      'x_response_code' => '1'
+      'x_response_code' => '1',
     );
   }
 
index c34f9c0c60bc9386a58bbcb4d8f2d498e627306d..fd8f5ba1cba520f6d93bb1521e5ded9ac3f5f2b4 100644 (file)
@@ -68,7 +68,7 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
       // (as least it will once the pseudoconstant s in the schema)
       'payment_processor_type_id' => $this->callAPISuccess('payment_processor_type', 'getvalue', array(
         'return' => 'id',
-        'name' => 'AuthNet'
+        'name' => 'AuthNet',
       )),
     );
 
index ac33547c83ac18fbad518b1b279b862b16df1d23..2b481ce44723daccda94c213c67238364a683cd3 100644 (file)
@@ -269,7 +269,7 @@ class CRM_Core_Payment_PayPalProIPNTest extends CiviUnitTestCase {
       'shipping' => '0.00',
       'product_type' => '1',
       'time_created' => '12:02:25 May 14, 2013 PDT',
-      'ipn_track_id' => '912e5010eb5a6'
+      'ipn_track_id' => '912e5010eb5a6',
     );
   }
   /**
@@ -322,7 +322,7 @@ class CRM_Core_Payment_PayPalProIPNTest extends CiviUnitTestCase {
       'receiver_email' => 'nil@civicrm.org',
       'next_payment_date' => '03:00:00 Aug 14, 2013 PDT',
       'tax' => '0.00',
-      'residence_country' => 'US'
+      'residence_country' => 'US',
     );
   }
 
index a98f46d7ea749bace9530f4c63b238d30ad653cf..17b805ca83e2f3613dcb3101a27695b17579bbc6 100644 (file)
@@ -19,7 +19,7 @@ class CRM_Core_Permission_JoomlaTest extends CiviUnitTestCase {
     $cases[] = array("cms:unknown universal name", CRM_Core_Permission::ALWAYS_DENY_PERMISSION);
     $cases[] = array(
       "Joomla:civicrmplusplus.extragood:com_civicrmplusplus",
-      array("civicrmplusplus.extragood", "com_civicrmplusplus")
+      array("civicrmplusplus.extragood", "com_civicrmplusplus"),
     );
     $cases[] = array("otherruntime:foo", CRM_Core_Permission::ALWAYS_DENY_PERMISSION);
     $cases[] = array(CRM_Core_Permission::ALWAYS_DENY_PERMISSION, CRM_Core_Permission::ALWAYS_DENY_PERMISSION);
index 31b08724c8ab6e32ecad66b131fe97b03381a57d..10e54f9c443546eb38ab49320f974a1d65c786a8 100644 (file)
@@ -74,11 +74,11 @@ class CRM_Core_RegionTest extends CiviUnitTestCase {
     ));
     CRM_Core_Region::instance('testAllTypes')->add(array(
       // note: returns a value which gets appended to the region
-      'callback' => create_function('&$spec, &$html', 'return "callback-return<br/>";')
+      'callback' => create_function('&$spec, &$html', 'return "callback-return<br/>";'),
     ));
     CRM_Core_Region::instance('testAllTypes')->add(array(
       // note: returns void; directly modifies region's $html
-      'callback' => create_function('&$spec, &$html', '$html = "callback-ref<br/>" . $html;')
+      'callback' => create_function('&$spec, &$html', '$html = "callback-ref<br/>" . $html;'),
     ));
     CRM_Core_Region::instance('testAllTypes')->add(array(
       'scriptUrl' => '/foo%20bar.js',
index bc0909915abca3491fdd94d0fd92f2e24656ed63..ac858e45757c49a16938d079f08c0fc385bc3edf 100644 (file)
@@ -140,7 +140,7 @@ class CRM_Event_BAO_AdditionalPaymentTest extends CiviUnitTestCase {
       'receive_date' => date('Y-m-d') . " 00:00:00",
       'skipLineItem' => 1,
       'partial_payment_total' => $feeTotal,
-      'partial_amount_pay' => $actualPaidAmt
+      'partial_amount_pay' => $actualPaidAmt,
     );
 
     $contribution = CRM_Contribute_BAO_Contribution::create($contributionParams);
index acc7191f672d9395f86ee3999d587e23b0925a7e..753a9e5d2d9ec2a3a73e071981bf393e6692ddae 100644 (file)
@@ -114,7 +114,7 @@ class CRM_Extension_Container_BasicTest extends CiviUnitTestCase {
   public function testConvertPathsToUrls() {
     $relPaths = array(
       'foo.bar' => 'foo\bar',
-      'whiz.bang' => 'tests\extensions\whiz\bang'
+      'whiz.bang' => 'tests\extensions\whiz\bang',
     );
     $expectedRelUrls = array(
       'foo.bar' => 'foo/bar',
index b140789e98608179911f94b363c5ad84c2bc4c55..b8f1235db07f4a606a9efacbb5c44843acca29f0 100644 (file)
@@ -72,7 +72,7 @@ class CRM_Member_Import_Parser_MembershipTest extends CiviUnitTestCase {
       'visibility' => 'Public',
       'is_active' => 1,
       'fixed_period_start_day' => 101,
-      'fixed_period_rollover_day' => 1231
+      'fixed_period_rollover_day' => 1231,
     );
     $ids = array();
     $membershipType = CRM_Member_BAO_MembershipType::add($params, $ids);
index 3b3ec177524e6fecaa105142ae786b13701cbe3e..6a194b8d5fb53469328a471315e1f79505b93a23 100644 (file)
@@ -63,7 +63,7 @@ class CRM_Report_Form_Contribute_DetailTest extends CiviReportTestCase {
         ),
         'fixtures/dataset-ascii.sql',
         'fixtures/report-ascii.csv',
-      )
+      ),
     );
   }
 
index 1e4cc39a2bb1615fbcd351fd8a62ce010edfc529..7c5abb027857779d0d20370713d1eb5709dd723a 100644 (file)
@@ -39,7 +39,7 @@ class CRM_Utils_API_MatchOptionTest extends CiviUnitTestCase {
       $this->assertEquals(1, count($value['api.Address.get']['values']));
     }
     CRM_core_DAO::executeQuery('DELETE FROM civicrm_address WHERE contact_id=%1', array(
-      1 => array($this->noise['individual'], 'Positive')
+      1 => array($this->noise['individual'], 'Positive'),
     ));
     $this->callAPISuccess('Contact', 'delete', array(
       'id' => $this->noise['individual'],
index 5dda910f2f9b60c6259c80f9772270825c89a1b3..9a22155784bfb523c32a4c0437270cee1d8ddf07 100644 (file)
@@ -57,7 +57,7 @@ class CRM_Utils_API_ReloadOptionTest extends CiviUnitTestCase {
       'last_name' => 'Last',
       'nick_name' => 'Firstie',
       'options' => array(
-        'reload' => 1
+        'reload' => 1,
       ),
     ));
     $this->assertEquals('First', $result['values'][$result['id']]['first_name']);
@@ -78,7 +78,7 @@ class CRM_Utils_API_ReloadOptionTest extends CiviUnitTestCase {
         'email' => 'test@example.com',
       ),
       'options' => array(
-        'reload' => 1
+        'reload' => 1,
       ),
     ));
     $this->assertEquals('First', $result['values'][$result['id']]['first_name']);
@@ -99,7 +99,7 @@ class CRM_Utils_API_ReloadOptionTest extends CiviUnitTestCase {
       CRM_Core_DAO::executeQuery(
         "UPDATE civicrm_contact SET nick_name = 'munged' WHERE id = %1",
         array(
-          1 => array($objectId, 'Integer')
+          1 => array($objectId, 'Integer'),
         )
       );
     }
index fad576b0bcba0b30178a97ac85593682e563af1b..3a0fce936f45fec54482bf4656472f94e8babe5a 100644 (file)
@@ -12,33 +12,33 @@ class CRM_Utils_ArrayTest extends CiviUnitTestCase {
       'lang' => 'en',
       'msgid' => 'greeting',
       'familiar' => FALSE,
-      'value' => 'Hello'
+      'value' => 'Hello',
     );
     $inputs[] = array(
       'lang' => 'en',
       'msgid' => 'parting',
-      'value' => 'Goodbye'
+      'value' => 'Goodbye',
     );
     $inputs[] = array(
       'lang' => 'fr',
       'msgid' => 'greeting',
-      'value' => 'Bon jour'
+      'value' => 'Bon jour',
     );
     $inputs[] = array(
       'lang' => 'fr',
       'msgid' => 'parting',
-      'value' => 'Au revoir'
+      'value' => 'Au revoir',
     );
     $inputs[] = array(
       'lang' => 'en',
       'msgid' => 'greeting',
       'familiar' => TRUE,
-      'value' => 'Hey'
+      'value' => 'Hey',
     );
     $inputs[] = array(
       'msgid' => 'greeting',
       'familiar' => TRUE,
-      'value' => 'Universal greeting'
+      'value' => 'Universal greeting',
     );
 
     $byLangMsgid = CRM_Utils_Array::index(array('lang', 'msgid'), $inputs);
index f409e9fd978c903f682bed407f7c674c584b09e8..5ef2f47d8c250bd611f7552d28e2c9ed57ab8fa0 100644 (file)
@@ -160,7 +160,7 @@ class CRM_Utils_Migrate_ImportExportTest extends CiviUnitTestCase {
    */
   public function testBasicXMLExports($customGroupParams, $fieldParams, $expectedXmlFilePath) {
     $this->assertDBQuery(0, 'SELECT count(*) FROM civicrm_custom_group WHERE title = %1', array(
-      1 => array($customGroupParams['title'], 'String')
+      1 => array($customGroupParams['title'], 'String'),
     ));
     $customGroup = $this->customGroupCreate($customGroupParams);
     $fieldParams['custom_group_id'] = $customGroup['id'];
@@ -185,7 +185,7 @@ class CRM_Utils_Migrate_ImportExportTest extends CiviUnitTestCase {
    */
   public function testBasicXMLImports($expectCustomGroup, $expectCustomField, $inputXmlFilePath) {
     $this->assertDBQuery(0, 'SELECT count(*) FROM civicrm_custom_group WHERE title = %1', array(
-      1 => array($expectCustomGroup['title'], 'String')
+      1 => array($expectCustomGroup['title'], 'String'),
     ));
 
     $importer = new CRM_Utils_Migrate_Import();
index b82bc0d491971428b6a642fef98343fa0ebe4642..b0135cd0c5c07c3191bee794a11a5f56a2e852ae 100644 (file)
@@ -22,7 +22,7 @@ class CRM_Utils_SQL_InsertTest extends CiviUnitTestCase {
       ->row(array('first' => '1', 'second' => '2'))
       ->rows(array(
       array('second' => '2b', 'first' => '1b'),
-      array('first' => '1c', 'second' => '2c')
+      array('first' => '1c', 'second' => '2c'),
       ))
       ->row(array('second' => '2d', 'first' => '1d'));
     $expected = '
index 896a8b880a851d74011f32397bde608bcfb18d20..bee0798fff1b1a5d49290309cb57c64a6fcec7f5 100644 (file)
@@ -109,7 +109,7 @@ class CRM_Utils_SQL_SelectTest extends CiviUnitTestCase {
       array(
         '@escaped' => 'foo"bar',
         '!unescaped' => 'concat(foo,bar)',
-        '#validated' => 15.2
+        '#validated' => 15.2,
       )
     );
     $this->assertLike('"foo\"bar" concat(foo,bar) 15.2', $actual);
@@ -121,7 +121,7 @@ class CRM_Utils_SQL_SelectTest extends CiviUnitTestCase {
       array(
         '@escaped' => array('foo"bar', "whiz", "null", NULL, "bang"),
         '!unescaped' => array('foo"bar', 'bar'),
-        '#validated' => array(1, 10, NULL, 100.1)
+        '#validated' => array(1, 10, NULL, 100.1),
       )
     );
     $this->assertLike('("foo\\"bar", "whiz", "null", NULL, "bang") (foo"bar, bar) (1, 10, NULL, 100.1)', $actual);
@@ -130,7 +130,7 @@ class CRM_Utils_SQL_SelectTest extends CiviUnitTestCase {
   public function testInterpolateBadNumber() {
     try {
       $result = CRM_Utils_SQL_Select::from('ignore')->interpolate('#num', array(
-        '#num' => '5not-a-number5'
+        '#num' => '5not-a-number5',
       ));
       $this->fail('Expected exception; got: ' . var_export($result, TRUE));
     }
@@ -140,7 +140,7 @@ class CRM_Utils_SQL_SelectTest extends CiviUnitTestCase {
 
     try {
       $result = CRM_Utils_SQL_Select::from('ignore')->interpolate('#num', array(
-        '#num' => array(1, '5not-a-number5', 2)
+        '#num' => array(1, '5not-a-number5', 2),
       ));
       $this->fail('Expected exception; got: ' . var_export($result, TRUE));
     }
@@ -152,7 +152,7 @@ class CRM_Utils_SQL_SelectTest extends CiviUnitTestCase {
   public function testInterpolateBadKey() {
     try {
       $result = CRM_Utils_SQL_Select::from('ignore')->interpolate('this is a {var}', array(
-        '{var}' => 'not a well-formed variable name'
+        '{var}' => 'not a well-formed variable name',
       ));
       $this->fail('Expected exception; got: ' . var_export($result, TRUE));
     }
index 3e881d7c9f96ea138f8c9d812712638b95262d10..428ac318da7b2c8e76a7bbb5a1902c70409aff01 100644 (file)
@@ -43,7 +43,7 @@ class CRM_Utils_versionCheckTest extends CiviUnitTestCase {
         array('version' => '4.2.16', 'date' => '2014-02-18'),
         array('version' => '4.2.17', 'date' => '2014-07-01', 'security' => TRUE),
         array('version' => '4.2.18', 'date' => '2014-08-06'),
-        array('version' => '4.2.19', 'date' => '2014-09-17', 'security' => TRUE)
+        array('version' => '4.2.19', 'date' => '2014-09-17', 'security' => TRUE),
       ),
     ),
     '4.3' => array(
@@ -58,7 +58,7 @@ class CRM_Utils_versionCheckTest extends CiviUnitTestCase {
         array('version' => '4.3.6', 'date' => '2013-09-25'),
         array('version' => '4.3.7', 'date' => '2013-10-02', 'security' => TRUE),
         array('version' => '4.3.8', 'date' => '2013-11-06', 'security' => TRUE),
-        array('version' => '4.3.9', 'date' => '2014-09-07', 'security' => TRUE)
+        array('version' => '4.3.9', 'date' => '2014-09-07', 'security' => TRUE),
       ),
     ),
     '4.4' => array(
@@ -75,7 +75,7 @@ class CRM_Utils_versionCheckTest extends CiviUnitTestCase {
         array('version' => '4.4.8', 'date' => '2014-10-14'),
         array('version' => '4.4.9', 'date' => '2014-11-05'),
         array('version' => '4.4.10', 'date' => '2014-11-19'),
-        array('version' => '4.4.11', 'date' => '2014-12-17', 'security' => TRUE)
+        array('version' => '4.4.11', 'date' => '2014-12-17', 'security' => TRUE),
       ),
     ),
     '4.5' => array(
@@ -87,14 +87,14 @@ class CRM_Utils_versionCheckTest extends CiviUnitTestCase {
         array('version' => '4.5.3', 'date' => '2014-11-05'),
         array('version' => '4.5.4', 'date' => '2014-11-19'),
         array('version' => '4.5.5', 'date' => '2014-12-17', 'security' => TRUE),
-      )
+      ),
     ),
     '4.6' => array(
       'status' => 'testing',
       'releases' => array(
         array('version' => '4.6.alpha1', 'date' => '2015-02-01'),
         array('version' => '4.6.beta1', 'date' => '2015-03-01'),
-      )
+      ),
     ),
   );
 
index 0a997e18b96dc6ddb46200d8779451052d6eaccc..6d13bdf8bd6f17fd59d7c98772fa329e589155be 100644 (file)
@@ -114,7 +114,7 @@ class DynamicFKAuthorizationTest extends \CiviUnitTestCase {
     $cases[] = array(
       'FakeFile',
       'create',
-      array('entity_table' => 'fake_widget', 'entity_id' => self::WIDGET_ID)
+      array('entity_table' => 'fake_widget', 'entity_id' => self::WIDGET_ID),
     );
     $cases[] = array('FakeFile', 'get', array('entity_table' => 'fake_widget'));
 
@@ -137,13 +137,13 @@ class DynamicFKAuthorizationTest extends \CiviUnitTestCase {
       'FakeFile',
       'create',
       array('entity_table' => 'fake_forbidden', 'entity_id' => self::FORBIDDEN_ID),
-      '/Authorization failed/'
+      '/Authorization failed/',
     );
     $cases[] = array(
       'FakeFile',
       'get',
       array('entity_table' => 'fake_forbidden', 'entity_id' => self::FORBIDDEN_ID),
-      '/Authorization failed/'
+      '/Authorization failed/',
     );
 
     $cases[] = array('FakeFile', 'create', array(), "/Mandatory key\\(s\\) missing from params array: 'id' or 'entity_table/");
index 1dc87c5969d4ac0126ecec4378cd4665d7621f77..d4c3a83bf4bd06dff29dcf949c63e718b03bf041 100644 (file)
@@ -67,7 +67,7 @@ class TransactionSubscriberTest extends \CiviUnitTestCase {
       'first_name' => 'Me',
       'last_name' => 'Myself',
       'options' => array(
-        'force_rollback' => TRUE
+        'force_rollback' => TRUE,
       ),
     ));
     $this->assertTrue(is_numeric($result['id']));
index 20d02765d91ccd3088d188cceb0842433c78f3e4..e7997e69567e3236a7ae935fbf4500915af4a7e9 100644 (file)
@@ -60,7 +60,7 @@ class CiviCaseTestCase extends CiviUnitTestCase {
     // state where tests could run afterwards without re-loading.
     $this->caseStatusGroup = $this->callAPISuccess('option_group', 'get', array(
         'name' => 'case_status',
-        'format.only_id' => 1
+        'format.only_id' => 1,
       )
     );
     $optionValues = array(
index f7b70cb2b3678aa965ea4e1b0f8991183ce373a3..7bc484bcd4621828bb69c647c59de1a987702ce6 100644 (file)
@@ -340,7 +340,7 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
     $result = $this->webtest_civicrm_api("OptionValue", "getvalue", array(
       'option_group_name' => $option_group_name,
       'option.limit' => 1,
-      'return' => 'value'
+      'return' => 'value',
     ));
     return $result;
   }
@@ -383,7 +383,7 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
       $result = $this->webtest_civicrm_api("Domain", "getvalue", array(
         'current_domain' => 1,
         'option.limit' => 1,
-        'return' => 'config_backend'
+        'return' => 'config_backend',
       ));
       $_config_backend = unserialize($result);
     }
@@ -2219,8 +2219,8 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
         "{$customSet['entity']}_{$customSet['subEntity']}" => array(
           'cgtitle' => $customGroupTitle,
           'gid' => $gid,
-          'triggerElement' => $customSet['triggerElement']
-        )
+          'triggerElement' => $customSet['triggerElement'],
+        ),
       );
 
       // Go home for a sec to give time for caches to clear
index daa38f550ca89a093e80044ad9a18203127471d0..895153016a6b3b35e374a4aa5b327cc40a9849aa 100755 (executable)
@@ -353,7 +353,7 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
       'CiviMember',
       'CiviMail',
       'CiviReport',
-      'CiviPledge'
+      'CiviPledge',
     ));
 
     return TRUE;
@@ -1135,7 +1135,7 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
           'Acme',
           'Roberts and Sons',
           'Cryo Space Labs',
-          'Sharper Pens'
+          'Sharper Pens',
         ),
       ),
       'Household' => array(
@@ -1720,7 +1720,7 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
         'state_province' => 'Michigan',
         'supplemental_address_1' => 'Hallmark Ct',
         'supplemental_address_2' => 'Jersey Village',
-      )
+      ),
     );
 
     $params = array(
@@ -2020,7 +2020,7 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
     //have a crack @ deleting it first in the hope this will prevent derailing our tests
     $this->callAPISuccess('custom_group', 'get', array(
         'title' => $params['title'],
-        array('api.custom_group.delete' => 1)
+        array('api.custom_group.delete' => 1),
       ));
 
     return $this->callAPISuccess('custom_group', 'create', $params);
@@ -2065,7 +2065,7 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
 
     $customField = $this->customFieldCreate(array(
         'custom_group_id' => $ids['custom_group_id'],
-        'label' => 'field_1' . $ids['custom_group_id']
+        'label' => 'field_1' . $ids['custom_group_id'],
       ));
 
     $ids['custom_field_id'][] = $customField['id'];
@@ -2073,14 +2073,14 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
     $customField = $this->customFieldCreate(array(
         'custom_group_id' => $ids['custom_group_id'],
         'default_value' => '',
-        'label' => 'field_2' . $ids['custom_group_id']
+        'label' => 'field_2' . $ids['custom_group_id'],
       ));
     $ids['custom_field_id'][] = $customField['id'];
 
     $customField = $this->customFieldCreate(array(
         'custom_group_id' => $ids['custom_group_id'],
         'default_value' => '',
-        'label' => 'field_3' . $ids['custom_group_id']
+        'label' => 'field_3' . $ids['custom_group_id'],
       ));
     $ids['custom_field_id'][] = $customField['id'];
 
@@ -2787,167 +2787,167 @@ AND    ( TABLE_NAME LIKE 'civicrm_value_%' )
     $GLOBALS['_HTML_QuickForm_registered_rules'] = array(
       'required' => array(
         'html_quickform_rule_required',
-        'HTML/QuickForm/Rule/Required.php'
+        'HTML/QuickForm/Rule/Required.php',
       ),
       'maxlength' => array(
         'html_quickform_rule_range',
-        'HTML/QuickForm/Rule/Range.php'
+        'HTML/QuickForm/Rule/Range.php',
       ),
       'minlength' => array(
         'html_quickform_rule_range',
-        'HTML/QuickForm/Rule/Range.php'
+        'HTML/QuickForm/Rule/Range.php',
       ),
       'rangelength' => array(
         'html_quickform_rule_range',
-        'HTML/QuickForm/Rule/Range.php'
+        'HTML/QuickForm/Rule/Range.php',
       ),
       'email' => array(
         'html_quickform_rule_email',
-        'HTML/QuickForm/Rule/Email.php'
+        'HTML/QuickForm/Rule/Email.php',
       ),
       'regex' => array(
         'html_quickform_rule_regex',
-        'HTML/QuickForm/Rule/Regex.php'
+        'HTML/QuickForm/Rule/Regex.php',
       ),
       'lettersonly' => array(
         'html_quickform_rule_regex',
-        'HTML/QuickForm/Rule/Regex.php'
+        'HTML/QuickForm/Rule/Regex.php',
       ),
       'alphanumeric' => array(
         'html_quickform_rule_regex',
-        'HTML/QuickForm/Rule/Regex.php'
+        'HTML/QuickForm/Rule/Regex.php',
       ),
       'numeric' => array(
         'html_quickform_rule_regex',
-        'HTML/QuickForm/Rule/Regex.php'
+        'HTML/QuickForm/Rule/Regex.php',
       ),
       'nopunctuation' => array(
         'html_quickform_rule_regex',
-        'HTML/QuickForm/Rule/Regex.php'
+        'HTML/QuickForm/Rule/Regex.php',
       ),
       'nonzero' => array(
         'html_quickform_rule_regex',
-        'HTML/QuickForm/Rule/Regex.php'
+        'HTML/QuickForm/Rule/Regex.php',
       ),
       'callback' => array(
         'html_quickform_rule_callback',
-        'HTML/QuickForm/Rule/Callback.php'
+        'HTML/QuickForm/Rule/Callback.php',
       ),
       'compare' => array(
         'html_quickform_rule_compare',
-        'HTML/QuickForm/Rule/Compare.php'
-      )
+        'HTML/QuickForm/Rule/Compare.php',
+      ),
     );
     // FIXME: â€¦ditto for $GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES']
     $GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES'] = array(
       'group' => array(
         'HTML/QuickForm/group.php',
-        'HTML_QuickForm_group'
+        'HTML_QuickForm_group',
       ),
       'hidden' => array(
         'HTML/QuickForm/hidden.php',
-        'HTML_QuickForm_hidden'
+        'HTML_QuickForm_hidden',
       ),
       'reset' => array(
         'HTML/QuickForm/reset.php',
-        'HTML_QuickForm_reset'
+        'HTML_QuickForm_reset',
       ),
       'checkbox' => array(
         'HTML/QuickForm/checkbox.php',
-        'HTML_QuickForm_checkbox'
+        'HTML_QuickForm_checkbox',
       ),
       'file' => array(
         'HTML/QuickForm/file.php',
-        'HTML_QuickForm_file'
+        'HTML_QuickForm_file',
       ),
       'image' => array(
         'HTML/QuickForm/image.php',
-        'HTML_QuickForm_image'
+        'HTML_QuickForm_image',
       ),
       'password' => array(
         'HTML/QuickForm/password.php',
-        'HTML_QuickForm_password'
+        'HTML_QuickForm_password',
       ),
       'radio' => array(
         'HTML/QuickForm/radio.php',
-        'HTML_QuickForm_radio'
+        'HTML_QuickForm_radio',
       ),
       'button' => array(
         'HTML/QuickForm/button.php',
-        'HTML_QuickForm_button'
+        'HTML_QuickForm_button',
       ),
       'submit' => array(
         'HTML/QuickForm/submit.php',
-        'HTML_QuickForm_submit'
+        'HTML_QuickForm_submit',
       ),
       'select' => array(
         'HTML/QuickForm/select.php',
-        'HTML_QuickForm_select'
+        'HTML_QuickForm_select',
       ),
       'hiddenselect' => array(
         'HTML/QuickForm/hiddenselect.php',
-        'HTML_QuickForm_hiddenselect'
+        'HTML_QuickForm_hiddenselect',
       ),
       'text' => array(
         'HTML/QuickForm/text.php',
-        'HTML_QuickForm_text'
+        'HTML_QuickForm_text',
       ),
       'textarea' => array(
         'HTML/QuickForm/textarea.php',
-        'HTML_QuickForm_textarea'
+        'HTML_QuickForm_textarea',
       ),
       'fckeditor' => array(
         'HTML/QuickForm/fckeditor.php',
-        'HTML_QuickForm_FCKEditor'
+        'HTML_QuickForm_FCKEditor',
       ),
       'tinymce' => array(
         'HTML/QuickForm/tinymce.php',
-        'HTML_QuickForm_TinyMCE'
+        'HTML_QuickForm_TinyMCE',
       ),
       'dojoeditor' => array(
         'HTML/QuickForm/dojoeditor.php',
-        'HTML_QuickForm_dojoeditor'
+        'HTML_QuickForm_dojoeditor',
       ),
       'link' => array(
         'HTML/QuickForm/link.php',
-        'HTML_QuickForm_link'
+        'HTML_QuickForm_link',
       ),
       'advcheckbox' => array(
         'HTML/QuickForm/advcheckbox.php',
-        'HTML_QuickForm_advcheckbox'
+        'HTML_QuickForm_advcheckbox',
       ),
       'date' => array(
         'HTML/QuickForm/date.php',
-        'HTML_QuickForm_date'
+        'HTML_QuickForm_date',
       ),
       'static' => array(
         'HTML/QuickForm/static.php',
-        'HTML_QuickForm_static'
+        'HTML_QuickForm_static',
       ),
       'header' => array(
         'HTML/QuickForm/header.php',
-        'HTML_QuickForm_header'
+        'HTML_QuickForm_header',
       ),
       'html' => array(
         'HTML/QuickForm/html.php',
-        'HTML_QuickForm_html'
+        'HTML_QuickForm_html',
       ),
       'hierselect' => array(
         'HTML/QuickForm/hierselect.php',
-        'HTML_QuickForm_hierselect'
+        'HTML_QuickForm_hierselect',
       ),
       'autocomplete' => array(
         'HTML/QuickForm/autocomplete.php',
-        'HTML_QuickForm_autocomplete'
+        'HTML_QuickForm_autocomplete',
       ),
       'xbutton' => array(
         'HTML/QuickForm/xbutton.php',
-        'HTML_QuickForm_xbutton'
+        'HTML_QuickForm_xbutton',
       ),
       'advmultiselect' => array(
         'HTML/QuickForm/advmultiselect.php',
-        'HTML_QuickForm_advmultiselect'
-      )
+        'HTML_QuickForm_advmultiselect',
+      ),
     );
   }
 
@@ -3024,13 +3024,13 @@ AND    ( TABLE_NAME LIKE 'civicrm_value_%' )
     $this->callAPISuccess('price_set', 'create', array(
         'id' => $contributionPriceSet['id'],
         'is_active' => 0,
-        'name' => 'old'
+        'name' => 'old',
       ));
     unset($contributionPriceSet['id']);
     $newPriceSet = $this->callAPISuccess('price_set', 'create', $contributionPriceSet);
     $priceField = $this->callAPISuccess('price_field', 'getsingle', array(
         'price_set_id' => $firstID,
-        'options' => array('limit' => 1)
+        'options' => array('limit' => 1),
       ));
     unset($priceField['id']);
     $priceField['price_set_id'] = $newPriceSet['id'];
@@ -3038,7 +3038,7 @@ AND    ( TABLE_NAME LIKE 'civicrm_value_%' )
     $priceFieldValue = $this->callAPISuccess('price_field_value', 'getsingle', array(
         'price_set_id' => $firstID,
         'sequential' => 1,
-        'options' => array('limit' => 1)
+        'options' => array('limit' => 1),
       ));
 
     unset($priceFieldValue['id']);
@@ -3108,7 +3108,7 @@ AND    ( TABLE_NAME LIKE 'civicrm_value_%' )
         'contact_id' => $this->_contactID,
         'contribution_page_id' => $this->_contributionPageID,
         'payment_processor_id' => $this->_paymentProcessorID,
-      )
+      ),
     ));
     $this->_contributionRecurID = $contributionRecur['id'];
     $this->_contributionID = $contributionRecur['values']['0']['api.contribution.create']['id'];
@@ -3143,16 +3143,16 @@ AND    ( TABLE_NAME LIKE 'civicrm_value_%' )
       'financial_type_id' => 1,
       'price_field_id' => $this->callAPISuccess('price_field', 'getvalue', array(
           'return' => 'id',
-          'label' => 'Membership Amount'
+          'label' => 'Membership Amount',
         )),
       'price_field_value_id' => $this->callAPISuccess('price_field_value', 'getvalue', array(
           'return' => 'id',
-          'label' => 'General'
+          'label' => 'General',
         )),
     ));
     $this->callAPISuccess('membership_payment', 'create', array(
         'contribution_id' => $this->_contributionID,
-        'membership_id' => $this->ids['membership']
+        'membership_id' => $this->ids['membership'],
       ));
   }
 
index 0e4e4c43d0d1144394bdfb4d32e7141df01fa538..bf00e269a707dc92a5cd999d3f0a467ef3510202 100644 (file)
@@ -169,7 +169,7 @@ class WebTest_Activity_StandaloneAddTest extends CiviSeleniumTestCase {
     $triggerElement = array('name' => 'activity_type_id', 'type' => 'select');
     $customSets = array(
       array('entity' => 'Activity', 'subEntity' => 'Interview', 'triggerElement' => $triggerElement),
-      array('entity' => 'Activity', 'subEntity' => 'Meeting', 'triggerElement' => $triggerElement)
+      array('entity' => 'Activity', 'subEntity' => 'Meeting', 'triggerElement' => $triggerElement),
     );
 
     $pageUrl = array('url' => 'activity', 'args' => 'reset=1&action=add&context=standalone');
index e72db674d7167b8b22c3976ade8eea62fae84ea7..95846f780222ef558bacc8a3a1d95e6faa9437f6 100644 (file)
@@ -88,7 +88,7 @@ class WebTest_Campaign_CampaignDescriptionTest extends CiviSeleniumTestCase {
     $triggerElement = array('name' => 'campaign_type_id', 'type' => 'select');
     $customSets = array(
       array('entity' => 'Campaign', 'subEntity' => 'Referral Program', 'triggerElement' => $triggerElement),
-      array('entity' => 'Campaign', 'subEntity' => 'Constituent Engagement', 'triggerElement' => $triggerElement)
+      array('entity' => 'Campaign', 'subEntity' => 'Constituent Engagement', 'triggerElement' => $triggerElement),
     );
 
     $pageUrl = array('url' => 'campaign/add', 'args' => 'reset=1');
index 26ff03e10ecad27248705b8a0fe2b7638d374f85..26b59d4d1d6d0d3ad354ac9c819e31ff864000da 100644 (file)
@@ -147,7 +147,7 @@ class WebTest_Contact_AddressParsingTest extends CiviSeleniumTestCase {
         'street_number' => '121',
         'street_name' => 'SW Sherman Way',
         'street_unit' => 'Suite 15',
-      )
+      ),
     );
     foreach ($verifyData as $loc => $values) {
       $num = $address[$loc];
index 8387fd3e80f8f79bd7865a1adee4e37e62a37054..d66cb46c94de3af1557cddfff107be130e623324 100644 (file)
@@ -621,7 +621,7 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
     $contactEmails = array(
       1 => "{$firstName}.{$lastName}@example.com",
       2 => "{$firstName2}.{$lastName2}@example.com",
-      3 => "{$firstName3}.{$lastName3}@example.com"
+      3 => "{$firstName3}.{$lastName3}@example.com",
     );
 
     foreach ($contactEmails as $key => $value) {
@@ -721,7 +721,7 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
 
       return array(
         'mainId' => $mainId,
-        'duplicateId' => $duplicateId
+        'duplicateId' => $duplicateId,
       );
     }
   }
index 767e6e8b1e5b6ec4e73eccb5ce414fb532d3edf3..d40a74e595ec169aa15afb6b1d1306fa9d5654c5 100644 (file)
@@ -360,7 +360,7 @@ class WebTest_Contact_RelationshipAddTest extends CiviSeleniumTestCase {
     $triggerElement = array('name' => 'relationship_type_id', 'type' => 'select');
     $customSets = array(
       array('entity' => 'Relationship', 'subEntity' => 'Partner of', 'triggerElement' => $triggerElement),
-      array('entity' => 'Relationship', 'subEntity' => 'Spouse of', 'triggerElement' => $triggerElement)
+      array('entity' => 'Relationship', 'subEntity' => 'Spouse of', 'triggerElement' => $triggerElement),
     );
 
     $pageUrl = array('url' => 'contact/view/rel', 'args' => "cid={$contactId[1]}&action=add&reset=1");
index b9f7c237fb4a8a8c8637d85e7ac92b4bf280efa0..9ae0031e80c2f7192b851580ad209e03e1148801 100644 (file)
@@ -420,7 +420,7 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase {
     $this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
     $this->enterValues(1, 1, 'Contribution', 'Financial Type', NULL, 'IN', array(
       $financialTypeName1,
-      $financialTypeName2
+      $financialTypeName2,
     ));
     $this->clickLink('_qf_Builder_refresh');
 
index 738245953b393246a9ab75db1e224fca00db88e2..1e4ebb9a2b3927c3af22cc1eab6cde88a71e33b8 100644 (file)
@@ -297,7 +297,7 @@ class WebTest_Contribute_AddBatchesTest extends CiviSeleniumTestCase {
       $this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
       $expected = array(
         2 => 'General',
-        4 => 'New'
+        4 => 'New',
       );
       foreach ($expected as $label => $value) {
         $this->verifyText("xpath=id('MembershipView')/div[2]/div/table[1]/tbody/tr[$label]/td[2]", preg_quote($value));
index f551e02ac4491d761b4f0df1ec8045674edea189..7d0ce9e8a789d9a27580d7c2236e97f06002e563 100644 (file)
@@ -197,7 +197,7 @@ class WebTest_Contribute_OfflineContributionTest extends CiviSeleniumTestCase {
       4 => 'Donation',
       2 => '50.00',
       6 => 'Completed',
-      1 => "{$firstName} {$lastName}"
+      1 => "{$firstName} {$lastName}",
     );
     foreach ($expected as $value => $label) {
       $this->verifyText("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[2]/td[$value]", preg_quote($label));
@@ -429,7 +429,7 @@ class WebTest_Contribute_OfflineContributionTest extends CiviSeleniumTestCase {
       'Financial Type' => 'Donation',
       'Total Amount' => '0.00',
       'Contribution Status' => 'Completed',
-      'Paid By' => 'Credit Card'
+      'Paid By' => 'Credit Card',
     );
     $this->webtestVerifyTabularData($expected);
   }
index 093d9e6675d34caa5475f2183440f31b5d98ca75..4f0eb82276712bf722234de05f07c05eacac6a9f 100644 (file)
@@ -310,7 +310,7 @@ class WebTest_Contribute_OnlineContributionTest extends CiviSeleniumTestCase {
       'From' => "{$firstName} {$lastName}",
       'Financial Type' => 'Donation',
       $amountLabel => $amountValue,
-      'Contribution Status' => 'Completed'
+      'Contribution Status' => 'Completed',
     );
     $this->webtestVerifyTabularData($expected);
   }
index 071c3f815c2d2155bae971c303383e2906642b06..ac60d23349deea8e99c447880e73bce3a5533bff 100644 (file)
@@ -281,7 +281,7 @@ class WebTest_Contribute_StandaloneAddTest extends CiviSeleniumTestCase {
     $triggerElement = array('name' => 'financial_type_id', 'type' => 'select');
     $customSets = array(
       array('entity' => 'Contribution', 'subEntity' => 'Donation', 'triggerElement' => $triggerElement),
-      array('entity' => 'Contribution', 'subEntity' => 'Member Dues', 'triggerElement' => $triggerElement)
+      array('entity' => 'Contribution', 'subEntity' => 'Member Dues', 'triggerElement' => $triggerElement),
     );
 
     $pageUrl = array('url' => 'contribute/add', 'args' => 'reset=1&action=add&context=standalone');
index 0a52cfa2d8fcdaa3b13c05b5520e9c93affd4af4..4267e0e37d0ca2f588f678053db0e6223d40904b 100644 (file)
@@ -360,7 +360,7 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase {
     'entity' => 'ParticipantEventName',
     'subEntity' => 'Fall Fundraiser Dinner',
         'triggerElement' => array('name' => "event_id", 'type' => "select2")),
-      array('entity' => 'ParticipantRole', 'subEntity' => 'Attendee', 'triggerElement' => array('name' => 'role_id', 'type' => "select"))
+      array('entity' => 'ParticipantRole', 'subEntity' => 'Attendee', 'triggerElement' => array('name' => 'role_id', 'type' => "select")),
     );
     $pageUrl = array('url' => "participant/add", 'args' => "reset=1&action=add&context=standalone");
     $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl, TRUE);
@@ -387,7 +387,7 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase {
     'subEntity' => 'Rain-forest Cup Youth Soccer Tournament',
         'triggerElement' => array('name' => "event_id", 'type' => "select")),
       array('entity' => 'ParticipantRole', 'subEntity' => '- Any -', 'triggerElement' => array('type' => "checkbox")),
-      array('entity' => 'ParticipantRole', 'subEntity' => 'Volunteer', 'triggerElement' => array('type' => "checkbox"))
+      array('entity' => 'ParticipantRole', 'subEntity' => 'Volunteer', 'triggerElement' => array('type' => "checkbox")),
     );
 
     $return = $this->addCustomGroupField($customSets);
index 3dcdda4e5ec74cb9d23b5db942bb4e46ed76d179..63d963d7818e39ecd64cc4f00a2feface484845b 100644 (file)
@@ -121,12 +121,12 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
             1 => array(
           'label' => 'Chicken',
               'amount' => '30.00',
-              'financial_type_id' => 'Donation'
+              'financial_type_id' => 'Donation',
             ),
             2 => array(
               'label' => 'Vegetarian',
               'amount' => '25.00',
-              'financial_type_id' => 'Donation'
+              'financial_type_id' => 'Donation',
             ),
           );
           $this->addMultipleChoiceOptions($options, $validateStrings);
@@ -140,13 +140,13 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
             1 => array(
           'label' => 'Yes',
               'amount' => '50.00',
-              'financial_type_id' => 'Donation'
+              'financial_type_id' => 'Donation',
 
              ),
             2 => array(
               'label' => 'No',
               'amount' => '0',
-              'financial_type_id' => 'Donation'
+              'financial_type_id' => 'Donation',
             ),
           );
           $this->addMultipleChoiceOptions($options, $validateStrings);
@@ -161,12 +161,12 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
             1 => array(
           'label' => 'First Night',
               'amount' => '15.00',
-              'financial_type_id' => 'Donation'
+              'financial_type_id' => 'Donation',
             ),
             2 => array(
               'label' => 'Second Night',
               'amount' => '15.00',
-              'financial_type_id' => 'Donation'
+              'financial_type_id' => 'Donation',
             ),
           );
           $this->addMultipleChoiceOptions($options, $validateStrings);
index a22e6e6b20cb8b80d1953d69fd1e924ad15743f8..fe7f0c71160f3cffa5ba9a7f144681b0bd5f6ce7 100644 (file)
@@ -436,7 +436,7 @@ class WebTest_Export_ContactTest extends ExportCiviSeleniumTestCase {
     $genderLabelArray = array(
       1 => 'Female',
       2 => 'Male',
-      3 => 'Transgender'
+      3 => 'Transgender',
     );
     $prefix = rand(1, 4);
     $suffix = rand(1, 8);
@@ -468,7 +468,7 @@ class WebTest_Export_ContactTest extends ExportCiviSeleniumTestCase {
       'sequential' => 1,
       'option_group_name' => $optionGroupName,
       'value' => $optionValue,
-      'return' => 'label'
+      'return' => 'label',
     );
     $optionLabel = $this->webtest_civicrm_api("OptionValue", "getvalue", $params);
     return $optionLabel;
index 1f5a94bdf10f8e78e97273e852742601500d9ce8..b9eb423494b5f9ce026583de6b40088452d724f7 100644 (file)
@@ -79,7 +79,7 @@ class WebTest_Financial_FinancialAccountTest extends CiviSeleniumTestCase {
       'tax_rate'   => $taxRate,
       'is_tax' => 'on',
       'is_deductible' => 'off',
-      'is_default' => 'off'
+      'is_default' => 'off',
     );
 
     $this->assertEquals($orgName, $this->getText("xpath=//*[@id='s2id_contact_id']/a/span[1]"));
index 7a4f5f7bd351e0620def1d58b812b8dd167564ef..0035fe383b32f24583b7ea230f5601e90197c76a 100644 (file)
@@ -134,7 +134,7 @@ class WebTest_Financial_FinancialBatchExport extends CiviSeleniumTestCase {
     $this->clickLink("xpath=//div[@id='recently-viewed']/ul/li[1]/a", "_qf_Activity_cancel-bottom");
     $this->webtestVerifyTabularData(
       array(
-        'Current Attachment(s)' => 'Financial_Transactions_'
+        'Current Attachment(s)' => 'Financial_Transactions_',
       )
     );
   }
index d981e5375a45178f833203d41cf741f3d502cd8d..18bdc7a9cbd1362d667ec3ce4ef218d4590e1bc2 100644 (file)
@@ -115,7 +115,7 @@ class WebTest_Grant_CustomFieldsetTest extends CiviSeleniumTestCase {
     $triggerElement = array('name' => 'grant_type_id', 'type' => 'select');
     $customSets = array(
       array('entity' => 'Grant', 'subEntity' => 'Emergency', 'triggerElement' => $triggerElement),
-      array('entity' => 'Grant', 'subEntity' => 'Family Support', 'triggerElement' => $triggerElement)
+      array('entity' => 'Grant', 'subEntity' => 'Family Support', 'triggerElement' => $triggerElement),
     );
 
     $pageUrl = array('url' => 'grant/add', 'args' => 'reset=1&action=add&context=standalone');
index 1666b967a3848920d4257acd69256d8b85409704..f70eeabb02851ed75b0cd3baa7f49f05e90ecf8a 100644 (file)
@@ -440,7 +440,7 @@ class WebTest_Mailing_MailingTest extends CiviSeleniumTestCase {
         'Intended Recipients' =>
         array(
           'report' => array('report_name' => 'Mailing Details', 'Mailing' => "Mailing $mailingName Webtest"),
-          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest")
+          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest"),
         ),
         'Successful Deliveries' =>
         array(
@@ -448,17 +448,17 @@ class WebTest_Mailing_MailingTest extends CiviSeleniumTestCase {
     'report_name' => 'Mailing Details',
     'Mailing' => "Mailing $mailingName Webtest",
                     "Delivery Status" => " Successful"),
-          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing Delivery -' => "Successful")
+          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing Delivery -' => "Successful"),
         ),
         'Tracked Opens' =>
         array(
           'report' => array('report_name' => 'Mail Opened', 'Mailing' => "Mailing $mailingName Webtest"),
-          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: Trackable Opens -' => "Opened")
+          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: Trackable Opens -' => "Opened"),
         ),
         'Click-throughs' =>
         array(
           'report' => array('report_name' => 'Mail Clickthroughs', 'Mailing' => "Mailing $mailingName Webtest"),
-          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: Trackable URL Clicks -' => "Clicked")
+          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: Trackable URL Clicks -' => "Clicked"),
         ),
         'Forwards' =>
         array(
@@ -466,7 +466,7 @@ class WebTest_Mailing_MailingTest extends CiviSeleniumTestCase {
     'report_name' => 'Mailing Details',
     'Mailing' => "Mailing $mailingName Webtest",
                     'Forwarded' => 'Is equal to Yes'),
-          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: -' => "Forwards")
+          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: -' => "Forwards"),
         ),
         'Replies' =>
         array(
@@ -474,12 +474,12 @@ class WebTest_Mailing_MailingTest extends CiviSeleniumTestCase {
     'report_name' => 'Mailing Details',
     'Mailing' => "Mailing $mailingName Webtest",
                     'Replied' => 'Is equal to Yes'),
-          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: Trackable Replies -' => "Replied")
+          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: Trackable Replies -' => "Replied"),
         ),
         'Bounces' =>
         array(
           'report' => array('report_name' => 'Mail Bounces', 'Mailing' => "Mailing $mailingName Webtest"),
-          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing Delivery -' => "Bounced")
+          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing Delivery -' => "Bounced"),
         ),
         'Unsubscribe Requests' =>
         array(
@@ -487,7 +487,7 @@ class WebTest_Mailing_MailingTest extends CiviSeleniumTestCase {
     'report_name' => 'Mailing Details',
     'Mailing' => "Mailing $mailingName Webtest",
                     'Unsubscribed' => 'Is equal to Yes'),
-          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: -' => "Unsubscribe Requests")
+          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: -' => "Unsubscribe Requests"),
         ),
         'Opt-out Requests' =>
         array(
@@ -495,7 +495,7 @@ class WebTest_Mailing_MailingTest extends CiviSeleniumTestCase {
     'report_name' => 'Mailing Details',
     'Mailing' => "Mailing $mailingName Webtest",
                     'Opted-out' => 'Is equal to Yes'),
-          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: -' => "Opt-out Requests")
+          'search' => array('Mailing Name IN' => "\"Mailing {$mailingName} Webtest", 'Mailing: -' => "Opt-out Requests"),
         ),
       );
     $this->criteriaCheck($criteriaCheck, $mailingReportUrl);
index 06f387ecbb0e543d897283736693f1ec2159f37b..a898a998b78ad7dfee702cca02296bc4b5a4ad8e 100644 (file)
@@ -128,7 +128,7 @@ class WebTest_Member_InheritedMembershipTest extends CiviSeleniumTestCase {
         'Member Since' => $joinDate,
         'Start date' => $startDate,
         'End date' => $endDate,
-        'Max related' => "5"
+        'Max related' => "5",
       )
     );
 
index 5928e0952230c90658a5fc33b3586800a6a9d383..1453d603d2f72d769a8b4545f44660f9a4d2e785 100644 (file)
@@ -240,7 +240,7 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
     $triggerElement = array('name' => 'membership_type_id_1', 'type' => 'select');
     $customSets = array(
       array('entity' => 'Membership', 'subEntity' => 'General', 'triggerElement' => $triggerElement),
-      array('entity' => 'Membership', 'subEntity' => 'Student', 'triggerElement' => $triggerElement)
+      array('entity' => 'Membership', 'subEntity' => 'Student', 'triggerElement' => $triggerElement),
     );
 
     $pageUrl = array('url' => 'member/add', 'args' => 'reset=1&action=add&context=standalone');
index de76fd93ce435f112bc4b5e59f218c5d5143fe28..073888bc22dc6f769ded2cdbc7f7781c43e7aabf 100644 (file)
@@ -62,8 +62,8 @@ class WebTest_Profile_BatchUpdateTest extends CiviSeleniumTestCase {
       array(
         'type' => 'Individual',
         'name' => 'Last Name',
-        'label' => 'Last Name'
-      )
+        'label' => 'Last Name',
+      ),
     );
     $this->addProfile($profileTitle, $profileFields);
     $this->openCiviPage('contact/search', 'reset=1', '_qf_Basic_refresh');
index c281f7449082e9a57b05b8a142a7e924772074ee..bfd18cf83a0aaaf457478d0040a11c62c5cd1483 100644 (file)
@@ -45,7 +45,7 @@ class WebTest_Profile_MultiRecordProfileAddTest extends CiviSeleniumTestCase {
     $permissions = array(
       'edit-2-profile-listings-and-forms',
       'edit-2-access-all-custom-data',
-      'edit-2-access-civicrm'
+      'edit-2-access-civicrm',
     );
     $this->changePermissions($permissions);
     list($id, $profileTitle) = $this->_addNewProfile(TRUE, FALSE, TRUE);
index 6bb8682c5d16912989fc97a7c2a4994be55d5269..eb0b80754f5dc1dc0e4963072970e10b425274fc 100644 (file)
@@ -157,7 +157,7 @@ class WebTest_Profile_ProfileAddTest extends CiviSeleniumTestCase {
     $fields = array(
       'first_name' => 'Individual',
       'last_name'  => 'Individual',
-      'email'      => 'Contact'
+      'email'      => 'Contact',
     );
     $this->waitForElementPresent("field_name_0");
     foreach ($fields as $field => $type) {
@@ -199,7 +199,7 @@ class WebTest_Profile_ProfileAddTest extends CiviSeleniumTestCase {
     $this->clickLink("xpath=//table[@class='crm-group-selector no-footer dataTable']/tbody/tr/td[1]/span[text() = '$groupName']/parent::td/following-sibling::td[@class=' crm-group-group_links']/span/a");
     $contactEmails = array(
       1 => "$lastName1, $firstName1",
-      2 => "$lastName2, $firstName2"
+      2 => "$lastName2, $firstName2",
     );
     foreach ($contactEmails as $row => $name) {
       $this->assertTrue($this->isElementPresent("xpath=//div[@class='crm-search-results']/table/tbody/tr[$row]/td[4]/a[contains(text(), '$name')]"));
index 66d974adfee4867e6a07a4dbaf03adb769e7903a..a8355a3b4900b28c83e0a66bcfe690bd8c54ae22 100644 (file)
@@ -223,7 +223,7 @@ class WebTest_Report_LoggingReportTest extends CiviSeleniumTestCase {
 
     $relationshipInfo = array();
     $relationshipInfo['data'] = array(
-       array('field' => 'Relationship Is Active', 'changed_from' => 'true', 'changed_to' => 'false')
+       array('field' => 'Relationship Is Active', 'changed_from' => 'true', 'changed_to' => 'false'),
     );
     $relationshipInfo = array_merge($relationshipInfo, $data[2]);
 
index 45885ba9a446baab950ce831cf871bd690848428..0e928b8ce79caf96c6b8b1c5e026184946cb953f 100644 (file)
@@ -125,7 +125,7 @@ class WebTest_Report_RolePermissionReportTest extends CiviSeleniumTestCase {
       "edit-{$roleId}-access-civireport",
       "edit-{$roleId}-view-all-contacts",
       "edit-{$roleId}-administer-reports",
-      "edit-{$roleId}-access-civicrm"
+      "edit-{$roleId}-access-civicrm",
     );
     $this->changePermissions($permissions);
 
@@ -141,7 +141,7 @@ class WebTest_Report_RolePermissionReportTest extends CiviSeleniumTestCase {
       "edit-{$roleId}-view-all-contacts",
       "edit-{$roleId}-administer-reports",
       "edit-{$roleId}-access-civicrm",
-      "edit-{$roleId}-administer-reserved-reports"
+      "edit-{$roleId}-administer-reserved-reports",
     );
     $this->changePermissions($permissions);
 
index 672d5a40e9ca07b7aee722a5cffbd6d657f0abc2..7de715130a021ab9bfa798efbf24e83bde8acfa3 100644 (file)
@@ -66,7 +66,7 @@ class WebTest_Utils_RestTest extends CiviSeleniumTestCase {
     if (isset($this->nocms_contact_id)) {
       $deleteParams = array(
         "id" => $this->nocms_contact_id,
-        "skip_undelete" => 1
+        "skip_undelete" => 1,
       );
       $res = $this->webtest_civicrm_api("Contact", "delete", $deleteParams);
       unset($this->nocms_contact_id);
@@ -214,7 +214,7 @@ class WebTest_Utils_RestTest extends CiviSeleniumTestCase {
     $contactParams = array(
       "api_key" => $test_key,
       "contact_type" => "Individual",
-      "first_name" => "RestTester1"
+      "first_name" => "RestTester1",
     );
     $contact = $this->webtest_civicrm_api("Contact", "create", $contactParams);
     $this->nocms_contact_id = $contact["id"];
@@ -225,7 +225,7 @@ class WebTest_Utils_RestTest extends CiviSeleniumTestCase {
       "action" => "get",
       "key" => $this->settings->siteKey,
       "json" => "1",
-      "api_key" => $test_key
+      "api_key" => $test_key,
     );
     list($status, $data) = $client->post($this->url, $params);
     $this->assertEquals(CRM_Utils_HttpClient::STATUS_OK, $status);
@@ -246,7 +246,7 @@ class WebTest_Utils_RestTest extends CiviSeleniumTestCase {
     $contactParams = array(
       "api_key" => $test_key,
       "contact_type" => "Individual",
-      "first_name" => "RestTester1"
+      "first_name" => "RestTester1",
     );
     $contact = $this->webtest_civicrm_api("Contact", "create", $contactParams);
     $this->nocms_contact_id = $contact["id"];
@@ -256,7 +256,7 @@ class WebTest_Utils_RestTest extends CiviSeleniumTestCase {
       "q" => "civicrm/contact/get",
       "key" => $this->settings->siteKey,
       "json" => "1",
-      "api_key" => $test_key
+      "api_key" => $test_key,
     );
     list($status, $data) = $client->post($this->url, $params);
     $this->assertEquals(CRM_Utils_HttpClient::STATUS_OK, $status);
index efebb37bcfe81bf8e1b33fe20d0c6c9b396cb730..a9c5f5748845c992cd6f913850b7622c608989d6 100644 (file)
@@ -167,7 +167,7 @@ class api_v3_ACLPermissionTest extends CiviUnitTestCase {
       'phone_type_id',
       'phone',
       'worldregion_id',
-      'world_region'
+      'world_region',
     );
     $expectedReturnElements = array_diff(array_keys($fullresult['values'][0]), $elementsReturnDoesntSupport);
     $result = $this->callAPISuccess('contact', 'get', array(
@@ -235,12 +235,12 @@ class api_v3_ACLPermissionTest extends CiviUnitTestCase {
     $this->_permissionedDisabledGroup = $this->groupCreate(array(
         'title' => 'pick-me-disabled',
         'is_active' => 0,
-        'name' => 'pick-me-disabled'
+        'name' => 'pick-me-disabled',
       ));
     $this->_permissionedGroup = $this->groupCreate(array(
         'title' => 'pick-me-active',
         'is_active' => 1,
-        'name' => 'pick-me-active'
+        'name' => 'pick-me-active',
       ));
     $this->setupACL();
   }
index ee2a248da84d926edb695233e70540897651f97f..21efe922a9209718d33269201d5a4262ed07fb25 100644 (file)
@@ -120,7 +120,7 @@ class api_v3_ActionScheduleTest extends CiviUnitTestCase {
       'end_action' => 'before',
       'end_date' => 'activity_date_time',
       'body_html' => 'Test description',
-      'subject' => 'Test subject'
+      'subject' => 'Test subject',
     );
     $actionSchedule = $this->callAPISuccess('action_schedule', 'create', $params);
     $this->assertTrue(is_numeric($actionSchedule['id']), "In line " . __LINE__);
index 340ab6e9e83dc71f4cc9253c2371fc2cb7ef4589..dc1b8de9ecad262101f308c4fda0071ab8f13abe 100644 (file)
@@ -65,7 +65,7 @@ class api_v3_ActivityTest extends CiviUnitTestCase {
       'option_group_id' => 2,
       'name' => 'Test activity type',
       'label' => 'Test activity type',
-      'sequential' => 1
+      'sequential' => 1,
     ));
     $this->test_activity_type_value = $activityTypes['values'][0]['value'];
     $this->test_activity_type_id = $activityTypes['id'];
@@ -982,7 +982,7 @@ class api_v3_ActivityTest extends CiviUnitTestCase {
         'return.assignee_contact_id' => 1,
         'return.target_contact_id' => 1,
         'return.source_contact_id' => 1,
-        'id' => $result['id']
+        'id' => $result['id'],
       )
     );
 
index 1b52ce81c58fc7705d7eb69ef4e6fa46ae477d3c..8f4f80060a40d06947d365cb1131226d79bcabb4 100644 (file)
@@ -129,7 +129,7 @@ class api_v3_AddressTest extends CiviUnitTestCase {
     $this->callAPISuccess('address', 'create', array_merge($this->_params, $individualParams));
     $this->callAPISuccess('relationship', 'getcount', array(
         'contact_id_a' => $individualID,
-        'contact_id_b' => $this->_contactID
+        'contact_id_b' => $this->_contactID,
       ));
   }
 
@@ -146,7 +146,7 @@ class api_v3_AddressTest extends CiviUnitTestCase {
     $this->callAPISuccess('address', 'create', array_merge($this->_params, $individualParams));
     $this->callAPISuccess('relationship', 'getcount', array(
         'contact_id_a' => $individualID,
-        'contact_id_b' => $this->_contactID
+        'contact_id_b' => $this->_contactID,
       ));
   }
 
@@ -172,7 +172,7 @@ class api_v3_AddressTest extends CiviUnitTestCase {
     $this->callAPISuccessGetCount('relationship', array(
         'contact_id_a' => $individualID,
         'is_active' => TRUE,
-        'contact_id_b' => $organisation2ID
+        'contact_id_b' => $organisation2ID,
       ), 1);
 
   }
index 719da086c6d8fbb71fa18bbd801c2c3c1bcee279..0a7d84d6bc1a7f460c0f9865a7634449b80e6368 100644 (file)
@@ -95,7 +95,7 @@ class api_v3_AttachmentTest extends CiviUnitTestCase {
         'description' => 'My test description',
         'options' => array(
           'move-file' => $this->tmpFile('mytest.txt'),
-        )
+        ),
       ),
       'This comes from a file',
     );
@@ -134,7 +134,7 @@ class api_v3_AttachmentTest extends CiviUnitTestCase {
         'description' => 'My test description',
         'content' => 'too much content',
         'options' => array(
-          'move-file' => $this->tmpFile('too-much.txt')
+          'move-file' => $this->tmpFile('too-much.txt'),
         ),
       ),
       "/'content' and 'options.move-file' are mutually exclusive/",
@@ -185,7 +185,7 @@ class api_v3_AttachmentTest extends CiviUnitTestCase {
           'check_permissions' => 1,
           $readOnlyField => $newValue,
         ),
-        "/Cannot modify $readOnlyField/"
+        "/Cannot modify $readOnlyField/",
       );
     }
 
@@ -539,10 +539,10 @@ class api_v3_AttachmentTest extends CiviUnitTestCase {
     $this->assertTrue(is_numeric($fileId));
     $this->assertEquals($exists, file_exists($apiResult['values'][$fileId]['path']));
     $this->assertDBQuery($exists ? 1 : 0, 'SELECT count(*) FROM civicrm_file WHERE id = %1', array(
-      1 => array($fileId, 'Int')
+      1 => array($fileId, 'Int'),
     ));
     $this->assertDBQuery($exists ? 1 : 0, 'SELECT count(*) FROM civicrm_entity_file WHERE id = %1', array(
-      1 => array($fileId, 'Int')
+      1 => array($fileId, 'Int'),
     ));
   }
 
index 2fecf4f014ed70b9d55e5b86661acecba03f1761..10153c3cd0de88333c623ee58714b11ad0bdea0f 100644 (file)
@@ -59,7 +59,7 @@ class api_v3_CRM11793Test extends CiviUnitTestCase {
       'contact',
       'get',
       array(
-        'contact_type' => $contactType
+        'contact_type' => $contactType,
       )
     );
 
index 764dacff127a43de3c58f1a12332744ac74d80c2..da563fdda47e5d1e8d326ac95167dfc0d40c83a5 100644 (file)
@@ -58,7 +58,7 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
         'caseRoles' => array(
           array('name' => 'First role', 'creator' => 1, 'manager' => 1),
         ),
-      )
+      ),
     );
   }
 
index 325fcdb49f7eb521b5104bce27c1b011ea0a88a5..760ae1adc79f95909c1d4a8a360d95e265957086 100644 (file)
@@ -328,7 +328,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
 
     $check = $this->callAPISuccess($this->_entity, 'get', array(
         'return.custom_' . $ids['custom_field_id'] => 1,
-        'id' => $result['id']
+        'id' => $result['id'],
       ));
     $this->assertEquals("custom string", $check['values'][$check['id']]['custom_' . $ids['custom_field_id']]);
 
@@ -357,7 +357,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     //here we will just do the get for set-up purposes
     $count = $this->callAPISuccess('contact', 'getcount', array(
       'organization_name' => 'new employer org',
-      'contact_type' => 'Organization'
+      'contact_type' => 'Organization',
     ));
     $this->assertEquals(0, $count);
     $employerResult = $this->callAPISuccess('contact', 'create', array_merge($this->_params, array(
@@ -367,13 +367,13 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     // do it again as an update to check it doesn't cause an error
     $employerResult = $this->callAPISuccess('contact', 'create', array_merge($this->_params, array(
         'current_employer' => 'new employer org',
-        'id' => $employerResult['id']
+        'id' => $employerResult['id'],
       )
     ));
     $expectedCount = 1;
     $this->callAPISuccess('contact', 'getcount', array(
         'organization_name' => 'new employer org',
-        'contact_type' => 'Organization'
+        'contact_type' => 'Organization',
       ),
       $expectedCount);
 
@@ -403,13 +403,13 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $this->callAPISuccess('relationship', 'create', array('id' => $relationship['id'], 'is_active' => 0));
     $this->callAPISuccess('relationship', 'getvalue', array(
       'id' => $relationship['id'],
-      'return' => 'is_active'
+      'return' => 'is_active',
     ), 0);
 
     //re-set the current employer - thus enabling the relationshp
     $this->callAPISuccess('contact', 'create', array_merge($this->_params, array(
         'current_employer' => 'new employer org',
-        'id' => $employerResult['id']
+        'id' => $employerResult['id'],
       )
     ));
     //check is_active is now 1
@@ -429,7 +429,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
         'first_name' => 'bb',
         'last_name' => 'ccc',
         'contact_type' => 'Individual',
-        'is_deceased' => 1
+        'is_deceased' => 1,
       ));
     $result = $this->callAPISuccess($this->_entity, 'get', array('is_deceased' => 0));
     $this->assertFalse(array_key_exists($c2['id'], $result['values']));
@@ -443,7 +443,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $c2 = $this->callAPISuccess($this->_entity, 'create', array(
         'first_name' => 'bb',
         'last_name' => 'ccc',
-        'contact_type' => 'Individual'
+        'contact_type' => 'Individual',
       ));
     $result = $this->callAPISuccess($this->_entity, 'get', array(
       'sort' => 'first_name ASC',
@@ -474,12 +474,12 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $c2 = $this->callAPISuccess($this->_entity, 'create', array(
         'first_name' => 'bb',
         'last_name' => 'ccc',
-        'contact_type' => 'Individual'
+        'contact_type' => 'Individual',
       ));
     $c3 = $this->callAPISuccess($this->_entity, 'create', array(
         'first_name' => 'hh',
         'last_name' => 'll',
-        'contact_type' => 'Individual'
+        'contact_type' => 'Individual',
       ));
     $result = $this->callAPISuccess($this->_entity, 'get', array('id' => array('IN' => array($c1['id'], $c3['id']))));
     $this->assertEquals(2, $result['count']);
@@ -526,7 +526,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $c2 = $this->callAPISuccess($this->_entity, 'create', array(
         'first_name' => 'bb',
         'last_name' => 'ccc',
-        'contact_type' => 'Individual'
+        'contact_type' => 'Individual',
       ));
     $result = $this->callAPISuccess($this->_entity, 'getvalue', array(
       'return' => 'first_name',
@@ -580,7 +580,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
 
     $check = $this->callAPIAndDocument($this->_entity, 'get', array(
         'return.custom_' . $ids['custom_field_id'] => 1,
-        'id' => $result['id']
+        'id' => $result['id'],
       ), __FUNCTION__, __FILE__, $description, $subfile);
 
     $this->assertEquals("custom string", $check['values'][$check['id']]['custom_' . $ids['custom_field_id']]);
@@ -621,11 +621,11 @@ class api_v3_ContactTest extends CiviUnitTestCase {
         'contact_id' => $contactID,
         'address_name' => 'My house',
         'location_type_id' => 'Home',
-        'street_address' => '1 my road'
+        'street_address' => '1 my road',
       ));
     $result = $this->callAPISuccessGetSingle('contact', array(
         'return' => 'address_name, street_address',
-        'id' => $contactID
+        'id' => $contactID,
       ));
     $this->assertEquals('1 my road', $result['street_address']);
     $this->assertEquals('My house', $result['address_name']);
@@ -1258,13 +1258,13 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $this->assertEquals(date('Y-m-d', strtotime('first day of next month -20 years')), $result['values'][$contact3['id']]['birth_date']);
     $result = $this->callAPISuccess('contact', 'get', array(
         'birth_date_low' => date('Y-m-d', strtotime('-6 years')),
-        'birth_date_high' => date('Y-m-d', strtotime('- 3 years'))
+        'birth_date_high' => date('Y-m-d', strtotime('- 3 years')),
       ));
     $this->assertEquals(1, $result['count']);
     $this->assertEquals(date('Y-m-d', strtotime('first day of next month -5 years')), $result['values'][$contact2['id']]['birth_date']);
     $result = $this->callAPISuccess('contact', 'get', array(
         'birth_date_low' => '-6 years',
-        'birth_date_high' => '- 3 years'
+        'birth_date_high' => '- 3 years',
       ));
     $this->assertEquals(1, $result['count']);
     $this->assertEquals(date('Y-m-d', strtotime('first day of next month -5 years')), $result['values'][$contact2['id']]['birth_date']);
@@ -1289,7 +1289,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $this->assertEquals(date('Y-m-d', strtotime('first day of next month -20 years')), $result['values'][$contact3['id']]['deceased_date']);
     $result = $this->callAPISuccess('contact', 'get', array(
         'deceased_date_low' => '-6 years',
-        'deceased_date_high' => date('Y-m-d', strtotime('- 3 years'))
+        'deceased_date_high' => date('Y-m-d', strtotime('- 3 years')),
       ));
     $this->assertEquals(1, $result['count']);
     $this->assertEquals(date('Y-m-d', strtotime('first day of next month -5 years')), $result['values'][$contact2['id']]['deceased_date']);
@@ -1345,7 +1345,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     //now we check they are still returned with 'return' key
     $result = $this->callAPISuccess('contact', 'getsingle', array(
         'id' => $contactID,
-        'return' => array_keys($extraParams)
+        'return' => array_keys($extraParams),
       ));
     foreach ($extraParams as $key => $value) {
       $this->assertEquals($result[$key], $value);
@@ -1369,8 +1369,8 @@ class api_v3_ContactTest extends CiviUnitTestCase {
           'phone' => '222-222-2222',
           'location_type_id' => 1,
           'phone_type_id' => 2,
-        )
-      )
+        ),
+      ),
     );
     $this->callAPISuccess('contact', 'create', $params);
     $this->callAPISuccessGetCount('phone', array('contact_id' => $contactID), 2);
@@ -1532,7 +1532,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $moreids = $this->CustomGroupMultipleCreateWithFields();
     $andmoreids = $this->CustomGroupMultipleCreateWithFields(array(
         'title' => "another group",
-        'name' => 'another name'
+        'name' => 'another name',
       ));
     $description = "/*this demonstrates the usage of chained api functions. A variety of techniques are used";
     $subfile = "APIChainedArrayMultipleCustom";
@@ -1739,7 +1739,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
       'contact_type' => 'Individual',
       'first_name' => 'Foo',
       'last_name' => 'Bear',
-      'check_permissions' => TRUE
+      'check_permissions' => TRUE,
     );
     $result = $this->callAPISuccess('contact', 'create', $params);
     $config = CRM_Core_Config::singleton();
@@ -1747,7 +1747,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
       'id' => $result['id'],
       'contact_type' => 'Individual',
       'last_name' => 'Bar',
-      'check_permissions' => TRUE
+      'check_permissions' => TRUE,
     );
 
     $config->userPermissionClass->permissions = array('access CiviCRM');
@@ -1759,7 +1759,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
       'add contacts',
       'view all contacts',
       'edit all contacts',
-      'import contacts'
+      'import contacts',
     );
     $this->callAPISuccess('contact', 'update', $params, NULL, 'overfluous permissions should be enough to update a contact');
   }
@@ -1837,7 +1837,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
             'email' => 'spam@dev.null',
             'is_primary' => 0,
             'location_type_id' => 1,
-          )
+          ),
         ),
       ),
       'api.Phone.replace' => array(
@@ -1865,7 +1865,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     //$refCountsIdx = CRM_Utils_Array::index(array('name'), $refCounts);
 
     $refCounts = $this->callAPISuccess('Contact', 'getrefcount', array(
-      'id' => $result['id']
+      'id' => $result['id'],
     ));
     $refCountsIdx = CRM_Utils_Array::index(array('name'), $refCounts['values']);
 
@@ -1935,7 +1935,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $this->callAPISuccess('address', 'create', array(
         'contact_id' => $contactID,
         'city' => 'Cool City',
-        'location_type_id' => 1
+        'location_type_id' => 1,
       ));
     $result = $this->callAPISuccess('contact', 'get', array('city' => 'Cool City', 'return' => 'contact_type'));
     $this->assertEquals(1, $result['count']);
@@ -1955,7 +1955,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     // Force-exclude the deceased contact
     $result = $this->callAPISuccess('contact', 'getlist', array(
         'input' => $name,
-        'params' => array('is_deceased' => 0)
+        'params' => array('is_deceased' => 0),
       ));
     $this->assertEquals(1, $result['count'], 'In line ' . __LINE__);
     $this->assertEquals($contact, $result['values'][0]['id'], 'In line ' . __LINE__);
index 36d833ecc22a1816d36ff48a095da8fb113c7947..b0ded9fb307196ee7a050950b7e4c407a5c1cdf3 100644 (file)
@@ -77,7 +77,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
       'is_quick_config' => 1,
       'extends' => 'CiviContribute',
       'financial_type_id' => 'Donation',
-      'title' => 'my Page'
+      'title' => 'my Page',
     );
   }
 
@@ -142,7 +142,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
     $submitParams = array(
       'price_' . $priceFieldID => $priceFieldValueID,
       'id' => (int) $this->_ids['contribution_page'],
-      'amount' => 10
+      'amount' => 10,
     );
 
     $this->callAPISuccess('contribution_page', 'submit', $submitParams);
@@ -246,7 +246,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
     $this->callAPIAndDocument('contribution_page', 'submit', $submitParams, __FUNCTION__, __FILE__, 'submit contribution page', NULL, 'Submit');
     $contributions = $this->callAPISuccess('contribution', 'get', array(
         'contribution_page_id' => $this->_ids['contribution_page'],
-        'contribution_status_id' => 1
+        'contribution_status_id' => 1,
       ));
     $this->assertCount(2, $contributions['values']);
     $membershipPayment = $this->callAPISuccess('membership_payment', 'getsingle', array());
@@ -292,7 +292,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
     $this->callAPIAndDocument('contribution_page', 'submit', $submitParams, __FUNCTION__, __FILE__, 'submit contribution page', NULL, 'Submit');
     $contribution = $this->callAPISuccess('contribution', 'getsingle', array(
         'contribution_page_id' => $this->_ids['contribution_page'],
-        'contribution_status_id' => 1
+        'contribution_status_id' => 1,
       ));
     $membershipPayment = $this->callAPISuccess('membership_payment', 'getsingle', array());
     $this->assertEquals($membershipPayment['contribution_id'], $contribution['id']);
@@ -309,7 +309,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
     $this->callAPISuccess('contribution', 'getsingle', array(
         'id' => array('NOT IN' => array($contribution['id'])),
         'contribution_page_id' => $this->_ids['contribution_page'],
-        'contribution_status_id' => 1
+        'contribution_status_id' => 1,
       ));
     $renewedMembership = $this->callAPISuccessGetSingle('membership', array('id' => $membershipPayment['membership_id']));
     $this->assertEquals(date('Y-m-d', strtotime('+ 1 year', strtotime($membership['end_date']))), $renewedMembership['end_date']);
@@ -354,7 +354,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
     $this->callAPIAndDocument('contribution_page', 'submit', $submitParams, __FUNCTION__, __FILE__, 'submit contribution page', NULL, 'Submit');
     $contribution = $this->callAPISuccess('contribution', 'getsingle', array(
         'contribution_page_id' => $this->_ids['contribution_page'],
-        'contribution_status_id' => 2
+        'contribution_status_id' => 2,
       ));
     $membershipPayment = $this->callAPISuccess('membership_payment', 'getsingle', array());
     $this->assertEquals($membershipPayment['contribution_id'], $contribution['id']);
@@ -365,7 +365,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
     //$this->callAPISuccess('line_item', 'getsingle', array('contribution_id' => $contribution['id'], 'entity_id' => $membership['id']));
     $this->callAPISuccess('contribution', 'completetransaction', array(
         'id' => $contribution['id'],
-        'trxn_id' => 'ipn_called'
+        'trxn_id' => 'ipn_called',
       ));
     $membership = $this->callAPISuccessGetSingle('membership', array('id' => $membershipPayment['membership_id']));
     //renew it with processor setting completed - should extend membership
@@ -380,10 +380,10 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
     $this->callAPISuccess('contribution_page', 'submit', $submitParams);
     $newContribution = $this->callAPISuccess('contribution', 'getsingle', array(
         'id' => array(
-          'NOT IN' => array($contribution['id'])
+          'NOT IN' => array($contribution['id']),
         ),
         'contribution_page_id' => $this->_ids['contribution_page'],
-        'contribution_status_id' => 2
+        'contribution_status_id' => 2,
       )
     );
 
@@ -425,7 +425,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
   public function setUpMembershipBlockPriceSet() {
     $this->_ids['price_set'][] = $this->callAPISuccess('price_set', 'getvalue', array(
         'name' => 'default_membership_type_amount',
-        'return' => 'id'
+        'return' => 'id',
       ));
     if (empty($this->_ids['membership_type'])) {
       $this->_ids['membership_type'] = array($this->membershipTypeCreate(array('minimum_fee' => 2)));
index 7325571d49cbe67c63d6d26f0f59e9a95bf97369..530033d4015d1f0847157982f7bbcb3fba36840a 100644 (file)
@@ -436,18 +436,18 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $contribution = $this->callAPISuccess('contribution', 'create', $params);
     $contribution = $this->callAPISuccess('contribution', 'get', array(
       'sequential' => 1,
-      'id' => $contribution['id']
+      'id' => $contribution['id'],
     ));
     $this->assertArrayHasKey('payment_instrument', $contribution['values'][0]);
     $this->assertEquals('EFT', $contribution['values'][0]['payment_instrument']);
 
     $this->callAPISuccess('contribution', 'create', array(
         'id' => $contribution['id'],
-        'payment_instrument' => 'Credit Card'
+        'payment_instrument' => 'Credit Card',
       ));
     $contribution = $this->callAPISuccess('contribution', 'get', array(
       'sequential' => 1,
-      'id' => $contribution['id']
+      'id' => $contribution['id'],
     ));
     $this->assertArrayHasKey('payment_instrument', $contribution['values'][0]);
     $this->assertEquals('Credit Card', $contribution['values'][0]['payment_instrument']);
@@ -460,35 +460,35 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->callAPISuccess('contribution', 'create', $params2);
     $contribution = $this->callAPISuccess('contribution', 'get', array(
         'sequential' => 1,
-        'contribution_payment_instrument_id' => 'Cash'
+        'contribution_payment_instrument_id' => 'Cash',
       ));
     $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_id' => 'EFT'
+        'payment_instrument_id' => 'EFT',
       ));
     $this->assertArrayHasKey('payment_instrument', $contribution['values'][0]);
     $this->assertEquals('EFT', $contribution['values'][0]['payment_instrument']);
     $this->assertEquals(1, $contribution['count']);
     $contribution = $this->callAPISuccess('contribution', 'get', array(
         'sequential' => 1,
-        'payment_instrument_id' => 5
+        'payment_instrument_id' => 5,
       ));
     $this->assertArrayHasKey('payment_instrument', $contribution['values'][0]);
     $this->assertEquals('EFT', $contribution['values'][0]['payment_instrument']);
     $this->assertEquals(1, $contribution['count']);
     $contribution = $this->callAPISuccess('contribution', 'get', array(
         'sequential' => 1,
-        'payment_instrument' => 'EFT'
+        'payment_instrument' => 'EFT',
       ));
     $this->assertArrayHasKey('payment_instrument', $contribution['values'][0]);
     $this->assertEquals('EFT', $contribution['values'][0]['payment_instrument']);
     $this->assertEquals(1, $contribution['count']);
     $contribution = $this->callAPISuccess('contribution', 'create', array(
         'id' => $contribution['id'],
-        'payment_instrument' => 'Credit Card'
+        'payment_instrument' => 'Credit Card',
       ));
     $contribution = $this->callAPISuccess('contribution', 'get', array('sequential' => 1, 'id' => $contribution['id']));
     $this->assertArrayHasKey('payment_instrument', $contribution['values'][0]);
@@ -603,7 +603,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess('note', 'get', array(
         'entity_table' => 'civicrm_contribution',
         'entity_id' => $contribution['id'],
-        'sequential' => 1
+        'sequential' => 1,
       ));
     $this->assertEquals('my contribution note', $result['values'][0]['note']);
     $this->callAPISuccess('contribution', 'delete', array('id' => $contribution['id']));
@@ -630,7 +630,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess('note', 'get', array(
         'entity_table' => 'civicrm_contribution',
         'entity_id' => $contribution['id'],
-        'sequential' => 1
+        'sequential' => 1,
       ));
     $this->assertEquals('my contribution note', $result['values'][0]['note']);
     $this->callAPISuccess('contribution', 'delete', array('id' => $contribution['id']));
@@ -645,12 +645,12 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $subfile = "ContributionCreateWithSoftCredit";
     $contact2 = $this->callAPISuccess('Contact', 'create', array(
         'display_name' => 'superman',
-        'contact_type' => 'Individual'
+        'contact_type' => 'Individual',
       ));
     $softparams = array(
       'contact_id' => $contact2['id'],
       'amount' => 50,
-      'soft_credit_type_id' => 3
+      'soft_credit_type_id' => 3,
     );
 
     $params = $this->_params + array('soft_credit' => array(1 => $softparams));
@@ -670,7 +670,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $subfile = "ContributionCreateWithSoftCreditDefaults";
     $contact2 = $this->callAPISuccess('Contact', 'create', array(
         'display_name' => 'superman',
-        'contact_type' => 'Individual'
+        'contact_type' => 'Individual',
       ));
     $params = $this->_params + array(
         'soft_credit_to' => $contact2['id'],
@@ -692,7 +692,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $subfile = "ContributionCreateWithHonoreeContact";
     $contact2 = $this->callAPISuccess('Contact', 'create', array(
         'display_name' => 'superman',
-        'contact_type' => 'Individual'
+        'contact_type' => 'Individual',
       ));
     $params = $this->_params + array(
         'honor_contact_id' => $contact2['id'],
@@ -899,7 +899,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $contribution = $this->callAPISuccess('contribution', 'create', $this->_params);
     $contribution = $this->callAPISuccess('contribution', 'getsingle', array(
         'id' => $contribution['id'],
-        'api.contribution.delete' => 1
+        'api.contribution.delete' => 1,
       ));
     $this->assertEquals(1, $contribution['contribution_status_id']);
     $this->assertEquals('Check', $contribution['payment_instrument']);
@@ -924,7 +924,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $newParams = array(
 
       'id' => $contribution['id'],
-      'total_amount' => '125'
+      'total_amount' => '125',
     );
     $contribution = $this->callAPISuccess('contribution', 'create', $newParams);
 
@@ -1101,7 +1101,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->callAPISuccess('contribution', 'create', array('id' => $contribution['id'], 'source' => 'new source'));
     $contribution = $this->callAPISuccess('contribution', 'getsingle', array(
         'id' => $contribution['id'],
-        'api.contribution.delete' => 1
+        'api.contribution.delete' => 1,
       ));
     $this->assertEquals(2, $contribution['contribution_status_id']);
   }
@@ -1358,7 +1358,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     );
     $participantStatus = $this->callAPISuccessGetValue('participant', array(
         'id' => $this->_ids['participant'],
-        'return' => 'participant_status_id'
+        'return' => 'participant_status_id',
       ));
     $this->assertEquals(1, $participantStatus);
     $mut->checkMailLog(array(
@@ -1421,7 +1421,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
       'is_quick_config' => 0,
       'extends' => 'CiviMember',
       'financial_type_id' => 1,
-      'title' => 'my Page'
+      'title' => 'my Page',
     ));
     $priceSetID = $priceSet['id'];
 
@@ -1518,7 +1518,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
         'Contribution Information',
         'Please print this confirmation for your records',
       ), array(
-        'Event'
+        'Event',
       )
     );
     $mut->stop();
@@ -1603,7 +1603,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $contribution = $this->callAPISuccess('contribution', 'create', $params);
     $this->callAPISuccess('participant_payment', 'create', array(
         'contribution_id' => $contribution['id'],
-        'participant_id' => $participantID
+        'participant_id' => $participantID,
       ));
     $this->callAPISuccess('line_item', 'get', array(
       'entity_id' => $contribution['id'],
index 5db408c5c084f8f8dd9cac8d3bf95512f2c63084..9dddfb00bcee86360906a5eda3980608b6523435 100644 (file)
@@ -62,7 +62,7 @@ class api_v3_DashboardContactTest extends CiviUnitTestCase {
         'first_name' => 'abc1',
         'contact_type' => 'Individual',
         'last_name' => 'xyz1',
-        'email' => 'abc@abc.com'
+        'email' => 'abc@abc.com',
       )
     );
     $oldCount = CRM_Core_DAO::singleValueQuery("select count(*) from civicrm_dashboard_contact where contact_id = {$contact['id']} AND is_active = 1 AND dashboard_id = {$dashresult['id']}");
index 874fea3a41cfc53587dc5c801ba78dde6c3e8250..d9fea6e95eda551c619e79f55ac7fc0f684cbf11 100644 (file)
@@ -74,7 +74,7 @@ class api_v3_DomainTest extends CiviUnitTestCase {
         'api.email.create' => array(
           'location_type_id' => $defaultLocationType->id,
           'email' => 'my@email.com',
-        )
+        ),
       )
     );
 
index 3cda472aafb1e3fbfb1b746a21ad8b87a6968994..dd9ad92e7ebe1ddd2dd60bc227d12d02ca8e2ed3 100644 (file)
@@ -170,7 +170,7 @@ class api_v3_JobTest extends CiviUnitTestCase {
   public function testCallUpdateGreetingSuccess() {
     $result = $this->callAPISuccess($this->_entity, 'update_greeting', array(
         'gt' => 'postal_greeting',
-        'ct' => 'Individual'
+        'ct' => 'Individual',
       ));
   }
 
@@ -211,7 +211,7 @@ class api_v3_JobTest extends CiviUnitTestCase {
       $this->callAPISuccess('group_contact', 'create', array(
           'contact_id' => $contactID,
           'status' => 'Added',
-          'group_id' => $groupID
+          'group_id' => $groupID,
         ));
     }
     $result = $this->callAPISuccess('job', 'send_reminder', array());
@@ -238,7 +238,7 @@ class api_v3_JobTest extends CiviUnitTestCase {
         $this->callAPISuccess('group_contact', 'create', array(
             'contact_id' => $contactID,
             'status' => 'Added',
-            'group_id' => $groupID
+            'group_id' => $groupID,
           ));
       }
       if ($i > 1) {
@@ -275,7 +275,7 @@ class api_v3_JobTest extends CiviUnitTestCase {
     CRM_Utils_Hook_UnitTests::singleton()->setHook('civicrm_pre', array($this, 'hookPreRelationship'));
     $relationshipTypeID = $this->callAPISuccess('relationship_type', 'getvalue', array(
         'return' => 'id',
-        'name_a_b' => 'Employee of'
+        'name_a_b' => 'Employee of',
       ));
     $result = $this->callAPISuccess('relationship', 'create', array(
       'relationship_type_id' => $relationshipTypeID,
index d50453ae40c5df8dc17f5163f54a4d44d28e5604..43bf62174146cfa1068344bdaf0efff820d1f120 100755 (executable)
@@ -171,20 +171,20 @@ class api_v3_MailingABTest extends CiviUnitTestCase {
     $this->assertDBQuery($expectedA, 'SELECT count(*) FROM civicrm_mailing_job WHERE mailing_id = %1', array(
         1 => array(
           $this->_mailingID_A,
-          'Integer'
-        )
+          'Integer',
+        ),
       ));
     $this->assertDBQuery($expectedB, 'SELECT count(*) FROM civicrm_mailing_job WHERE mailing_id = %1', array(
         1 => array(
           $this->_mailingID_B,
-          'Integer'
-        )
+          'Integer',
+        ),
       ));
     $this->assertDBQuery($expectedC, 'SELECT count(*) FROM civicrm_mailing_job WHERE mailing_id = %1', array(
         1 => array(
           $this->_mailingID_C,
-          'Integer'
-        )
+          'Integer',
+        ),
       ));
   }
 }
index a07977a6d5f3f0ef2e75556b2985bea8920e5753..c185da7571cb4b9597f06dea18047cca3086e249 100755 (executable)
@@ -302,7 +302,7 @@ class api_v3_MailingTest extends CiviUnitTestCase {
       $this->assertEquals($params['scheduled_date'], $submitResult['values'][$id]['scheduled_date']);
     }
     $this->assertDBQuery($expectedJobCount, 'SELECT count(*) FROM civicrm_mailing_job WHERE mailing_id = %1', array(
-      1 => array($id, 'Integer')
+      1 => array($id, 'Integer'),
     ));
   }
 
@@ -350,7 +350,7 @@ SELECT event_queue_id, time_stamp FROM mail_{$type}_temp";
       'Bounces' => 20,
       'Opened' => 20,
       'Unique Clicks' => 0,
-      'Unsubscribers' => 20
+      'Unsubscribers' => 20,
     );
     $this->checkArrayEquals($expectedResult, $result['values'][$mail['id']]);
   }
@@ -461,7 +461,7 @@ SELECT event_queue_id, time_stamp FROM mail_{$type}_temp";
     $createResult = $this->callAPISuccess('mailing', 'create', $createParams, __FUNCTION__, __FILE__);
     $this->assertTrue(is_numeric($createResult['id']));
     $this->assertDBQuery(0, 'SELECT count(*) FROM civicrm_mailing_job WHERE mailing_id = %1', array(
-      1 => array($createResult['id'], 'Integer')
+      1 => array($createResult['id'], 'Integer'),
     ));
     return $createResult['id'];
   }
index 113154c2e6a38b5c89c6622748e571c3b33dd99e..0a1089266f959fc2ee2976a2dfa239f32165cac8 100644 (file)
@@ -60,7 +60,7 @@ class api_v3_MembershipTest extends CiviUnitTestCase {
     $this->_membershipTypeID2 = $this->membershipTypeCreate(array(
       'period_type' => 'fixed',
       'fixed_period_start_day' => '301',
-      'fixed_period_rollover_day' => '1111'
+      'fixed_period_rollover_day' => '1111',
     ));
     $this->_membershipStatusID = $this->membershipStatusCreate('test status');
 
@@ -103,7 +103,7 @@ class api_v3_MembershipTest extends CiviUnitTestCase {
     $membershipID = $this->contactMembershipCreate($this->_params);
     $this->assertDBRowExist('CRM_Member_DAO_Membership', $membershipID);
     $params = array(
-      'id' => $membershipID
+      'id' => $membershipID,
     );
     $this->callAPIAndDocument('membership', 'delete', $params, __FUNCTION__, __FILE__);
     $this->assertDBRowNotExist('CRM_Member_DAO_Membership', $membershipID);
@@ -678,7 +678,7 @@ class api_v3_MembershipTest extends CiviUnitTestCase {
     $result = $this->callAPIAndDocument($this->_entity, 'create', $params, __FUNCTION__, __FILE__);
     $check = $this->callAPISuccess($this->_entity, 'get', array(
       'id' => $result['id'],
-      'contact_id' => $this->_contactID
+      'contact_id' => $this->_contactID,
     ));
     $this->assertEquals("custom string", $check['values'][$result['id']]['custom_' . $ids['custom_field_id']], ' in line ' . __LINE__);
   }
@@ -814,11 +814,11 @@ class api_v3_MembershipTest extends CiviUnitTestCase {
     $result = $this->callAPIAndDocument($this->_entity, 'create', $params, __FUNCTION__, __FILE__);
     $result = $this->callAPISuccess($this->_entity, 'create', array(
       'id' => $result['id'],
-      'custom_' . $ids['custom_field_id'] => "new custom"
+      'custom_' . $ids['custom_field_id'] => "new custom",
     ));
     $check = $this->callAPISuccess($this->_entity, 'get', array(
       'id' => $result['id'],
-      'contact_id' => $this->_contactID
+      'contact_id' => $this->_contactID,
     ));
 
     $this->assertEquals("new custom", $check['values'][$result['id']]['custom_' . $ids['custom_field_id']], ' in line ' . __LINE__);
index 0371baee23e6723c6ef025b79b78fea4aaee2fa8..d67d68d5c4076820f29f129253ceee57c91dc18a 100644 (file)
@@ -83,7 +83,7 @@ class api_v3_MessageTemplateTest extends CiviUnitTestCase {
     $entity = $this->createTestEntity();
     $result = $this->callAPIAndDocument('MessageTemplate', 'delete', array('id' => $entity['id']), __FUNCTION__, __FILE__);
     $checkDeleted = $this->callAPISuccess($this->entity, 'get', array(
-      'id' => $entity['id']
+      'id' => $entity['id'],
     ));
     $this->assertEquals(0, $checkDeleted['count'], 'In line ' . __LINE__);
   }
index 71c42ce2a069b493ead9f0229798aff4507ce009..99b42b6f7bbfd87dd6d9a197a130bb6f9041bb13 100644 (file)
@@ -198,7 +198,7 @@ class api_v3_OptionValueTest extends CiviUnitTestCase {
       'sequential' => 1,
       'api.option_value.create' => array(
         'component_id' => 'CiviContribute',
-        'name' => 'my@y.com'
+        'name' => 'my@y.com',
       ),
 
     ));
@@ -220,7 +220,7 @@ class api_v3_OptionValueTest extends CiviUnitTestCase {
       'sequential' => 1,
       'api.option_value.create' => array(
         'component_id' => 'CiviContribute',
-        'name' => 'my@y.com'
+        'name' => 'my@y.com',
       ),
 
     ));
@@ -329,7 +329,7 @@ class api_v3_OptionValueTest extends CiviUnitTestCase {
     // create a option group
     $og = $this->callAPISuccess('option_group', 'create', array(
         'name' => 'our test Option Group for with group id',
-        'is_active' => 1
+        'is_active' => 1,
       ));
     // create a option value
     $ov = $this->callAPISuccess('option_value', 'create',
@@ -339,7 +339,7 @@ class api_v3_OptionValueTest extends CiviUnitTestCase {
     $this->callAPISuccess('option_value', 'create', array(
         'id' => $ov['id'],
         'option_group_id' => $og['id'],
-        'is_active' => 0
+        'is_active' => 0,
       ));
     $val = $this->callAPISuccess('option_value', 'getvalue', array(
       'id' => $ov['id'],
index 763cee2fe3b7c03d5727cf2bde9879b19e643385..bbac928a8eb334415e0d5cbf804b2942d0fbb7ca 100644 (file)
@@ -80,7 +80,7 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
   public function tearDown() {
     $this->eventDelete($this->_eventID);
     $tablesToTruncate = array(
-      'civicrm_custom_group', 'civicrm_custom_field', 'civicrm_contact', 'civicrm_participant'
+      'civicrm_custom_group', 'civicrm_custom_field', 'civicrm_contact', 'civicrm_participant',
     );
     // true tells quickCleanup to drop any tables that might have been created in the test
     $this->quickCleanup($tablesToTruncate, TRUE);
@@ -138,7 +138,7 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
         'event_id',
         'participant_register_date',
         'participant_source',
-      )
+      ),
     );
     $result = $this->callAPISuccess('participant', 'get', $params);
     $this->assertAPISuccess($result, " in line " . __LINE__);
@@ -199,7 +199,7 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
       'contact_id' => $this->_contactID,
     'return.status_id' => 1,
       'return.participant_status_id' => 1,
-      'options' => array('limit' => 1)
+      'options' => array('limit' => 1),
     );
     $result = $this->callAPISuccess('participant', 'get', $params);
     $this->assertArrayHasKey('participant_status_id', $result['values'][$result['id']]);
@@ -513,7 +513,7 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
   public function testUpdate() {
     $participantId = $this->participantCreate(array(
       'contactID' => $this->_individualId,
-      'eventID' => $this->_eventID
+      'eventID' => $this->_eventID,
     ));
     $params = array(
       'id' => $participantId,
index 52fba65141a968367ca9947df6d1e3cced6d81c4..8247b5735c2e57222b4ce2e5706c0f91dadae1ae 100644 (file)
@@ -317,7 +317,7 @@ class api_v3_PledgeTest extends CiviUnitTestCase {
     //ensure that correct number of payments created & last payment has the right date
     $payments = $this->callAPISuccess('PledgePayment', 'Get', array(
       'pledge_id' => $pledge['id'],
-      'sequential' => 1
+      'sequential' => 1,
     ));
     $this->assertEquals(1, $payments['count'], 'In line ' . __LINE__);
     $this->assertEquals(2, $payments['values'][0]['status_id'], 'In line ' . __LINE__);
index fdb2f19306edd5f24fc2a84f7115f1b47e9a2039..00ea139c18b31a69bf08544b74d1128c8e2e1a4a 100644 (file)
@@ -73,7 +73,7 @@ class api_v3_PriceFieldValueTest extends CiviUnitTestCase {
       'price_field_id' => $this->priceFieldID,
       'name' => 'ryegrass',
       'label' => 'juicy and healthy',
-      'amount' => 1
+      'amount' => 1,
      );
 
     $membershipOrgId = $this->organizationCreate(NULL);
index 89f49bc1e932bce7182157898ebf37310f2449b9..4a52af2554152068eb1d6b209ec1c7ef9a2785be 100644 (file)
@@ -859,7 +859,7 @@ class api_v3_ProfileTest extends CiviUnitTestCase {
           'field_type' => 'Contact',
           'location_type_id' => 1,
           'phone_type_id' => 1,
-          'label' => 'Phone'
+          'label' => 'Phone',
         ),
         array(
           'field_name' => 'country',
@@ -867,7 +867,7 @@ class api_v3_ProfileTest extends CiviUnitTestCase {
           'visibility' => 'Public Pages and Listings',
           'field_type' => 'Contact',
           'location_type_id' => 1,
-          'label' => 'Country'
+          'label' => 'Country',
         ),
         array(
           'field_name' => 'state_province',
@@ -875,14 +875,14 @@ class api_v3_ProfileTest extends CiviUnitTestCase {
           'visibility' => 'Public Pages and Listings',
           'field_type' => 'Contact',
           'location_type_id' => 1,
-          'label' => 'State Province'
+          'label' => 'State Province',
         ),
         array(
           'field_name' => 'postal_code',
           'is_required' => 0,
           'field_type' => 'Contact',
           'location_type_id' => 1,
-          'label' => 'State Province'
+          'label' => 'State Province',
          ),
       ),
     );
index dc7c1e85b217b9070cadef9454f4d1a802bd598c..fe4c6d56c8b9456564d9bf7816f2fcc9757cf418 100644 (file)
@@ -55,7 +55,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $this->_cId_a_2 = $this->individualCreate(array(
         'last_name' => 'c2',
         'email' => 'c@w.com',
-        'contact_type' => 'Individual'
+        'contact_type' => 'Individual',
       ));
     $this->_cId_b = $this->organizationCreate();
     $this->_cId_b2 = $this->organizationCreate(array('organization_name' => ' Org 2'));
@@ -693,7 +693,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $rel1 = $this->callAPISuccess('relationship', 'create', $this->_params);
 
     $getParams = array(
-      'filters' => array('is_current' => 1)
+      'filters' => array('is_current' => 1),
     );
     $description = "demonstrates is_current filter";
     $subfile = 'filterIsCurrent';
@@ -762,7 +762,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
       array('relationship_type_id' => $relationType4)));
 
     $getParams = array(
-      'relationship_type_id' => array('IN' => array($relationType2, $relationType3))
+      'relationship_type_id' => array('IN' => array($relationType2, $relationType3)),
     );
 
     $description = "demonstrates use of IN filter";
@@ -775,7 +775,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $description = "demonstrates use of NOT IN filter";
     $subfile = 'NotInRelationshipType';
     $getParams = array(
-      'relationship_type_id' => array('NOT IN' => array($relationType2, $relationType3))
+      'relationship_type_id' => array('NOT IN' => array($relationType2, $relationType3)),
     );
     $result = $this->callAPIAndDocument('relationship', 'get', $getParams, __FUNCTION__, __FILE__, $description, $subfile);
     $this->assertEquals($result['count'], 2);
@@ -784,7 +784,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $description = "demonstrates use of BETWEEN filter";
     $subfile = 'BetweenRelationshipType';
     $getParams = array(
-      'relationship_type_id' => array('BETWEEN' => array($relationType2, $relationType4))
+      'relationship_type_id' => array('BETWEEN' => array($relationType2, $relationType4)),
     );
     $result = $this->callAPIAndDocument('relationship', 'get', $getParams, __FUNCTION__, __FILE__, $description, $subfile);
     $this->assertEquals($result['count'], 3);
@@ -793,7 +793,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $description = "demonstrates use of Not BETWEEN filter";
     $subfile = 'NotBetweenRelationshipType';
     $getParams = array(
-      'relationship_type_id' => array('NOT BETWEEN' => array($relationType2, $relationType4))
+      'relationship_type_id' => array('NOT BETWEEN' => array($relationType2, $relationType4)),
     );
     $result = $this->callAPIAndDocument('relationship', 'get', $getParams, __FUNCTION__, __FILE__, $description, $subfile);
     $this->assertEquals($result['count'], 1);
@@ -936,7 +936,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $this->callAPISuccess($this->_entity, 'create',
       array_merge($this->_params, array(
         'relationship_type_id' => $relType2,
-        'contact_id_b' => $this->_cId_b2
+        'contact_id_b' => $this->_cId_b2,
       ))
     );
 
@@ -944,7 +944,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $this->callAPISuccess($this->_entity, 'create',
       array_merge($this->_params, array(
         'relationship_type_id' => $relType3,
-        'contact_id_b' => $org3
+        'contact_id_b' => $org3,
       ))
     );
 
@@ -976,7 +976,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $this->callAPISuccess($this->_entity, 'create',
       array_merge($this->_params, array(
         'relationship_type_id' => $relType2,
-        'contact_id_b' => $this->_cId_b2
+        'contact_id_b' => $this->_cId_b2,
       ))
     );
 
@@ -984,7 +984,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $this->callAPISuccess($this->_entity, 'create',
       array_merge($this->_params, array(
         'relationship_type_id' => $relType3,
-        'contact_id_b' => $org3
+        'contact_id_b' => $org3,
       ))
     );
 
@@ -1022,7 +1022,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $this->callAPISuccess($this->_entity, 'create',
       array_merge($this->_params, array(
         'relationship_type_id' => $relType2,
-        'contact_id_b' => $this->_cId_b2
+        'contact_id_b' => $this->_cId_b2,
       ))
     );
 
@@ -1030,7 +1030,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $this->callAPISuccess($this->_entity, 'create',
       array_merge($this->_params, array(
         'relationship_type_id' => $relType3,
-        'contact_id_b' => $org3
+        'contact_id_b' => $org3,
       ))
     );
 
@@ -1039,7 +1039,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
       array_merge($this->_params, array(
         'relationship_type_id' => $relType1,
         'contact_id_a' => $this->_cId_a,
-        'contact_id_b' => $this->_cId_a_2
+        'contact_id_b' => $this->_cId_a_2,
       ))
     );
 
@@ -1077,7 +1077,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $this->callAPISuccess($this->_entity, 'create',
       array_merge($this->_params, array(
         'relationship_type_id' => $relType2,
-        'contact_id_b' => $this->_cId_b2
+        'contact_id_b' => $this->_cId_b2,
       ))
     );
 
@@ -1085,7 +1085,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $this->callAPISuccess($this->_entity, 'create',
       array_merge($this->_params, array(
         'relationship_type_id' => $relType3,
-        'contact_id_b' => $org3
+        'contact_id_b' => $org3,
       ))
     );
 
@@ -1094,7 +1094,7 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
       array_merge($this->_params, array(
         'relationship_type_id' => $relType1,
         'contact_id_a' => $this->_cId_a,
-        'contact_id_b' => $this->_cId_a_2
+        'contact_id_b' => $this->_cId_a_2,
       ))
     );
 
index dcd5246d4ccec3bddc1c797f3e82885534d36dc8..659bff5df1474cf06a508c0c9901d9f0d07dada0 100644 (file)
@@ -118,7 +118,7 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase {
     $description = "Retrieve rows from a report template (optionally providing the instance_id)";
     $result = $this->callAPIAndDocument('report_template', 'getrows', array(
       'report_id' => 'contact/summary',
-      'options' => array('metadata' => array('labels', 'title'))
+      'options' => array('metadata' => array('labels', 'title')),
     ), __FUNCTION__, __FILE__, $description, 'Getrows', 'getrows');
     $this->assertEquals('Contact Name', $result['metadata']['labels']['civicrm_contact_sort_name']);
 
index 5978b26f94401adec0c9122be0cb8d3fea1afb3c..addf0f1452c4e72ddcba61ca769c8b7fc8e093cd 100644 (file)
@@ -169,7 +169,7 @@ class api_v3_SettingTest extends CiviUnitTestCase {
         'description' => NULL,
         'help_text' => NULL,
         'on_change' => array(// list of callbacks
-          array(__CLASS__, '_testOnChange_onChangeExample')
+          array(__CLASS__, '_testOnChange_onChangeExample'),
         ),
       ),
     ));
@@ -308,7 +308,7 @@ class api_v3_SettingTest extends CiviUnitTestCase {
 
     $params = array(
       'domain_id' => 'all',
-      'return' => 'uniq_email_per_site'
+      'return' => 'uniq_email_per_site',
     );
     // we'll check it with a 'get'
     $description = "shows getting a variable for all domains";
@@ -411,12 +411,12 @@ class api_v3_SettingTest extends CiviUnitTestCase {
   public function testGetSetConfigSettingMultipleDomains() {
     $settings = $this->callAPISuccess('setting', 'create', array(
         'defaultCurrency' => 'USD',
-        'domain_id' => $this->_currentDomain
+        'domain_id' => $this->_currentDomain,
       )
     );
     $settings = $this->callAPISuccess('setting', 'create', array(
         'defaultCurrency' => 'CAD',
-        'domain_id' => $this->_domainID2
+        'domain_id' => $this->_domainID2,
       )
     );
     $settings = $this->callAPISuccess('setting', 'get', array(
@@ -445,7 +445,7 @@ class api_v3_SettingTest extends CiviUnitTestCase {
   public function testGetValue() {
     $params = array(
       'name' => 'petition_contacts',
-      'group' => 'Campaign Preferences'
+      'group' => 'Campaign Preferences',
     );
     $description = "Demonstrates getvalue action - intended for runtime use as better caching than get";
 
@@ -478,7 +478,7 @@ class api_v3_SettingTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess('setting', 'create', $params);
     $this->assertAPISuccess($result, "in line " . __LINE__);
     $revertParams = array(
-      'name' => 'address_format'
+      'name' => 'address_format',
     );
     $result = $this->callAPISuccess('setting', 'get', $params);
     //make sure it's set
index 128e02fa497682c39d464874e13cc8f36eb08451..61693de8f0b8ecfe6d88369857e1acc6c4e87be8 100644 (file)
@@ -49,7 +49,7 @@ class api_v3_SurveyRespondantTest extends CiviUnitTestCase {
     $surveyID = $survey['id'];
     $this->params = array(
       'sequential' => '1',
-      'survey_id' => $surveyID
+      'survey_id' => $surveyID,
     );
   }
 
index c476b2b1fd19f81611153cff613d39399d47442f..791b8d29400b60981d7d1a3660c2650de3e0ee5e 100644 (file)
@@ -106,7 +106,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     $tmp = civicrm_api('Entity', 'Get', array('version' => 3));
     if (getenv('SYNTAX_CONFORMANCE_ENTITIES')) {
       $tmp = array(
-        'values' => explode(' ', getenv('SYNTAX_CONFORMANCE_ENTITIES'))
+        'values' => explode(' ', getenv('SYNTAX_CONFORMANCE_ENTITIES')),
       );
     }
 
@@ -351,7 +351,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
       'PaymentProcessor',
       'Setting',
       'MailingContact',
-      'SystemLog' //skip this because it doesn't make sense to update logs
+      'SystemLog' //skip this because it doesn't make sense to update logs,
     );
     if ($sequential === TRUE) {
       return $entitiesWithout;
@@ -420,7 +420,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
           'state_province_id', //issues with country id - need to ensure same country
           'master_id', //creates relationship
         ),
-        'cant_return' => array()
+        'cant_return' => array(),
       ),
       'Batch' => array(
         'cant_update' => array(
@@ -428,19 +428,19 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
         ),
         'cant_return' => array(
           'entity_table',
-        )
+        ),
       ),
       'CaseType' => array(
         'cant_update' => array(
           'definition',
-        )
+        ),
       ),
       'MembershipBlock' => array(
         'cant_update' => array(
           // The fake/auto-generated values leave us unable to properly cleanup fake data
           'entity_type',
           'entity_id',
-        )
+        ),
       ),
       'Pledge' => array(
         'cant_update' => array(
@@ -448,7 +448,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
           'installments',
           'original_installment_amount',
           'next_pay_date',
-          'amount' // can't be changed through API
+          'amount' // can't be changed through API,
         ),
         'break_return' => array(// if these are passed in they are retrieved from the wrong table
           'honor_contact_id',
@@ -456,7 +456,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
           'contribution_page_id',
           'financial_account_id',
           'financial_type_id',
-          'currency'
+          'currency',
         ),
         'cant_return' => array(// can't be retrieved from api
           'honor_type_id', //due to uniquename missing
@@ -474,7 +474,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
           'pledge_status_id',
           'pledge_campaign_id',
           'pledge_financial_type_id',
-        )
+        ),
       ),
       'PaymentProcessorType' => array(
         'cant_update' => array(
@@ -1370,10 +1370,10 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     $this->assertAPISuccess($createResult);
     $eventId = $createResult['id'];
     $this->assertDBQuery('createNew: CiviCRM &lt;&gt; TheRest', 'SELECT title FROM civicrm_event WHERE id = %1', array(
-      1 => array($eventId, 'Integer')
+      1 => array($eventId, 'Integer'),
     ));
     $this->assertDBQuery('createNew: TheRest <> CiviCRM', 'SELECT description FROM civicrm_event WHERE id = %1', array(
-      1 => array($eventId, 'Integer')
+      1 => array($eventId, 'Integer'),
     ));
 
     // Verify that "create" handles encoding for updates
@@ -1385,10 +1385,10 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     ));
     $this->assertAPISuccess($createWithIdResult);
     $this->assertDBQuery('createWithId:  CiviCRM &lt;&gt; TheRest', 'SELECT title FROM civicrm_event WHERE id = %1', array(
-      1 => array($eventId, 'Integer')
+      1 => array($eventId, 'Integer'),
     ));
     $this->assertDBQuery('createWithId:  TheRest <> CiviCRM', 'SELECT description FROM civicrm_event WHERE id = %1', array(
-      1 => array($eventId, 'Integer')
+      1 => array($eventId, 'Integer'),
     ));
 
     // Verify that "setvalue" handles encoding for updates
@@ -1400,7 +1400,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     ));
     $this->assertAPISuccess($setValueTitleResult);
     $this->assertDBQuery('setValueTitle: CiviCRM &lt;&gt; TheRest', 'SELECT title FROM civicrm_event WHERE id = %1', array(
-      1 => array($eventId, 'Integer')
+      1 => array($eventId, 'Integer'),
     ));
     $setValueDescriptionResult = civicrm_api('Event', 'setvalue', array(
       'version' => 3,
@@ -1411,7 +1411,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     //$this->assertTrue((bool)$setValueDescriptionResult['is_error']); // not supported by setValue
     $this->assertAPISuccess($setValueDescriptionResult);
     $this->assertDBQuery('setValueDescription: TheRest <> CiviCRM', 'SELECT description FROM civicrm_event WHERE id = %1', array(
-      1 => array($eventId, 'Integer')
+      1 => array($eventId, 'Integer'),
     ));
   }
 }
index ba084d1743821e323a27ce8ed020e1c39b9b9648..ec6e258f14738d6437ad8fbc461087a61febab04 100644 (file)
@@ -77,7 +77,7 @@ class api_v3_SystemTest extends CiviUnitTestCase {
     $this->callAPISuccess('system', 'log', array('level' => 'info', 'message' => 'We wish you a merry Christmas'));
     $result = $this->callAPISuccess('SystemLog', 'getsingle', array(
         'sequential' => 1,
-        'message' => array('LIKE' => '%Chris%')
+        'message' => array('LIKE' => '%Chris%'),
       ));
     $this->assertEquals($result['message'], 'We wish you a merry Christmas');
     $this->assertEquals($result['level'], 'info');
@@ -90,7 +90,7 @@ class api_v3_SystemTest extends CiviUnitTestCase {
     $this->callAPISuccess('system', 'log', array('message' => 'We wish you a merry Christmas', 'level' => 'alert'));
     $result = $this->callAPISuccess('SystemLog', 'getsingle', array(
       'sequential' => 1,
-      'message' => array('LIKE' => '%Chris%')
+      'message' => array('LIKE' => '%Chris%'),
     ));
     $this->assertEquals($result['message'], 'We wish you a merry Christmas');
     $this->assertEquals($result['level'], 'alert');
index 58fd439b835a1e3f1efb78d0498502f35425d798..b78b445ae28a32d1f43e4e04d8939772ea3631f2 100644 (file)
@@ -193,7 +193,7 @@ class api_v3_TagTest extends CiviUnitTestCase {
     $description = "Demonstrates use of api.getlist for autocomplete and quicksearch applications";
     $params = array(
       'input' => $this->tag['name'],
-      'extra' => array('used_for')
+      'extra' => array('used_for'),
     );
     $result = $this->callAPIAndDocument('tag', 'getlist', $params, __FUNCTION__, __FILE__, $description);
     $this->assertEquals($this->tag['id'], $result['values'][0]['id'], 'In line ' . __LINE__);
index c8737c11c01e7901515469d1daa2074708a8f8ce..8752a257ba8a1b42b4a36c33be69eee2cae4a375 100644 (file)
@@ -67,7 +67,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
       'pay_later_text' => 'I will pay later',
       'pay_later_receipt' => "I will pay later",
       'is_monetary' => TRUE,
-      'is_billing_required' => TRUE
+      'is_billing_required' => TRUE,
     );
 
     $this->_priceSetParams = array(
@@ -79,7 +79,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
       'extends' => 2,
       'financial_type_id' => 3,
       'is_quick_config' => 0,
-      'is_reserved' => 0
+      'is_reserved' => 0,
     );
     // Financial Account with 20% tax rate
     $financialAccountSetparams = array(
@@ -109,7 +109,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
       'entity_table' => 'civicrm_financial_type',
       'entity_id' => $this->financialtypeID,
       'account_relationship' => 10,
-      'financial_account_id' => $this->financialAccountId
+      'financial_account_id' => $this->financialAccountId,
     );
     $financialRelation = CRM_Financial_BAO_FinancialTypeAccount::add($financialRelationParams);
 
@@ -122,7 +122,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
       'tax_rate' => 5.00,
       'is_reserved' => 0,
       'is_active' => 1,
-      'is_default' => 0
+      'is_default' => 0,
     );
     $halfFinancialAccount = CRM_Financial_BAO_FinancialAccount::add($financialAccHalftax);
     $this->halfFinancialAccId = $halfFinancialAccount->id;
@@ -138,7 +138,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
       'entity_table' => 'civicrm_financial_type',
       'entity_id' => $this->halfFinancialTypeId,
       'account_relationship' => 10,
-      'financial_account_id' => $this->halfFinancialAccId
+      'financial_account_id' => $this->halfFinancialAccId,
     );
 
     $halfFinancialRelation = CRM_Financial_BAO_FinancialTypeAccount::add($financialRelationHalftax);
@@ -172,7 +172,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
       'class_name' => 'Payment_Dummy',
       'billing_mode' => 1,
       'is_recur' => 1,
-      'payment_type' => 1
+      'payment_type' => 1,
     );
     $result = $this->callAPISuccess('payment_processor', 'create', $paymentProceParams);
     $this->_ids['paymentProcessID'] = $result['id'];
@@ -195,7 +195,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
       'civicrm_contact',
       'civicrm_membership',
       'civicrm_membership_payment',
-      'civicrm_payment_processor'
+      'civicrm_payment_processor',
     ));
     CRM_Core_PseudoConstant::flush('taxRates');
   }
@@ -223,14 +223,14 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
         'price_field_id' => $priceField['id'],
         'label' => 'Long Haired Goat',
         'amount' => 100,
-        'financial_type_id' => $this->financialtypeID
+        'financial_type_id' => $this->financialtypeID,
       ));
       $priceFieldValue = $this->callAPISuccess('price_field_value', 'create', array(
         'price_set_id' => $priceSetID,
         'price_field_id' => $priceField['id'],
         'label' => 'Shoe-eating Goat',
         'amount' => 300,
-        'financial_type_id' => $this->halfFinancialTypeId
+        'financial_type_id' => $this->halfFinancialTypeId,
       ));
       $this->_ids['price_field_value'] = array($priceFieldValue['id']);
     }
@@ -252,7 +252,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
       'trxn_id' => 12345,
       'invoice_id' => 67890,
       'source' => 'SSF',
-      'contribution_status_id' => 1
+      'contribution_status_id' => 1,
     );
 
     $contribution = $this->callAPIAndDocument('contribution', 'create', $params, __FUNCTION__, __FILE__);
@@ -389,7 +389,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
     $newParams = array(
       'id' => $contribution['id'],
       'financial_type_id'   => 1, // without tax rate i.e Donation
-      'total_amount' => '300'
+      'total_amount' => '300',
     );
     $contribution = $this->callAPISuccess('contribution', 'update', $newParams);
 
index 13f876f90738e3425b6e8fd723ef105c910924f5..a6111720068d867e19cc522bdb5f86ac1f7de4e5 100644 (file)
@@ -104,7 +104,7 @@ class api_v3_UFGroupTest extends CiviUnitTestCase {
       'title' => 'Edited Test Profile',
       'help_post' => 'Profile Pro help text.',
       'is_active' => 1,
-      'id' => $this->_ufGroupId
+      'id' => $this->_ufGroupId,
      );
 
     $result = $this->callAPISuccess('uf_group', 'create', $params);
index 48ce8686faa4b0cbfd0ed0b879121cee79c1e2bf..a4fa63503905dae54dd7e7cf22d7d42043e6aa8a 100644 (file)
@@ -140,7 +140,7 @@ class api_v3_UtilsTest extends CiviUnitTestCase {
       'contact_id' => $this->_contactID,
       'modified_date' => '2011-01-31',
       'subject' => NULL,
-      'version' => $this->_apiversion
+      'version' => $this->_apiversion,
     );
     try {
       $result = civicrm_api3_verify_mandatory($params, 'CRM_Core_BAO_Note', array('note', 'subject'));
index 9c96449dd608c9fccc2c11465aa2ade8537ec9c8..765decd6965417d0b224a0d9803ff181853a288f 100644 (file)
@@ -91,7 +91,7 @@ class api_v3_WebsiteTest extends CiviUnitTestCase {
   public function testGetMetadata() {
     $result = $this->callAPIAndDocument($this->_entity, 'get', array(
       'options' => array(
-    'metadata' => array('fields')
+    'metadata' => array('fields'),
     )), __FUNCTION__, __FILE__, 'Demonostrates returning field metadata', 'GetWithMetadata');
     $this->assertEquals('Website', $result['metadata']['fields']['url']['title']);
   }
index db27384f1f8375572e0c65090abfec0c74e97e3b..d176059369ebf862adad9dee17971e19d8b23416 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 CRM_Core_Resources::singleton()->addSetting(array(
-    'strings' => array('One, two, three' => 'Un, deux, trois')
+    'strings' => array('One, two, three' => 'Un, deux, trois'),
   )
 );
 // CRM_Core_Resources::singleton()->addScriptFile(...);