INFRA-132 - Spaces around "."
authorTim Otten <totten@civicrm.org>
Wed, 7 Jan 2015 05:52:59 +0000 (21:52 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 7 Jan 2015 05:52:59 +0000 (21:52 -0800)
117 files changed:
CRM/ACL/Form/WordPress/Permissions.php
CRM/Activity/Import/Form/DataSource.php
CRM/Activity/Page/AJAX.php
CRM/Badge/Form/Layout.php
CRM/Batch/BAO/Batch.php
CRM/Batch/Form/Entry.php
CRM/Campaign/Page/DashBoard.php
CRM/Case/Form/CaseView.php
CRM/Contact/BAO/Group.php
CRM/Contact/BAO/Relationship.php
CRM/Contact/Form/Inline/Email.php
CRM/Contact/Form/Inline/IM.php
CRM/Contact/Form/Inline/OpenID.php
CRM/Contact/Form/Inline/Phone.php
CRM/Contact/Selector.php
CRM/Contribute/Form/AdditionalInfo.php
CRM/Contribute/Form/AdditionalPayment.php
CRM/Contribute/Form/Contribution/Main.php
CRM/Contribute/Form/ManagePremiums.php
CRM/Contribute/Form/Task/PDFLetterCommon.php
CRM/Contribute/Import/Form/DataSource.php
CRM/Contribute/Import/Form/MapField.php
CRM/Contribute/PseudoConstant.php
CRM/Core/BAO/ActionSchedule.php
CRM/Core/BAO/Navigation.php
CRM/Core/BAO/Setting.php
CRM/Core/BAO/Tag.php
CRM/Core/CodeGen/Main.php
CRM/Core/CodeGen/Specification.php
CRM/Core/CodeGen/Util/Template.php
CRM/Core/Error.php
CRM/Core/Form/RecurringEntity.php
CRM/Core/Form/Renderer.php
CRM/Core/Page/AJAX.php
CRM/Core/Payment/AuthorizeNetIPN.php
CRM/Core/Payment/BaseIPN.php
CRM/Core/Payment/PaymentExpress.php
CRM/Core/PseudoConstant.php
CRM/Core/Smarty/plugins/function.crmAPI.php
CRM/Core/Smarty/plugins/prefilter.resetExtScope.php
CRM/Custom/Import/Form/DataSource.php
CRM/Custom/Import/Parser/Api.php
CRM/Event/BAO/Query.php
CRM/Event/Cart/Form/Checkout/Payment.php
CRM/Event/Form/ManageEvent/Registration.php
CRM/Event/Form/ManageEvent/Repeat.php
CRM/Event/Form/Participant.php
CRM/Event/Form/ParticipantFeeSelection.php
CRM/Event/Import/Form/DataSource.php
CRM/Financial/BAO/ExportFormat.php
CRM/Financial/BAO/ExportFormat/CSV.php
CRM/Financial/BAO/ExportFormat/IIF.php
CRM/Financial/Form/FinancialBatch.php
CRM/Financial/Form/FinancialTypeAccount.php
CRM/Financial/Page/AJAX.php
CRM/Financial/Page/FinancialTypeAccount.php
CRM/Import/DataSource/CSV.php
CRM/Mailing/BAO/Mailing.php
CRM/Mailing/BAO/Query.php
CRM/Member/Form/Membership.php
CRM/Member/Form/MembershipBlock.php
CRM/Member/Import/Form/DataSource.php
CRM/Price/BAO/PriceField.php
CRM/Price/Form/Field.php
CRM/Profile/Page/MultipleRecordFieldsListing.php
CRM/Report/Form/Contact/LoggingSummary.php
CRM/Upgrade/Incremental/php/FourFour.php
CRM/Upgrade/Incremental/php/FourThree.php
CRM/Upgrade/Incremental/php/FourTwo.php
CRM/Utils/Cache/SerializeCache.php
CRM/Utils/Mail/EmailProcessor.php
CRM/Utils/PDF/Utils.php
CRM/Utils/REST.php
CRM/Utils/String.php
CRM/Utils/System/Joomla.php
api/v3/Contact.php
api/v3/Generic/Setvalue.php
api/v3/Profile.php
api/v3/utils.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactSearchTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php
tests/phpunit/CRM/Core/ErrorTest.php
tests/phpunit/CRM/Core/Payment/PayPalProIPNTest.php
tests/phpunit/CRM/Extension/BrowserTest.php
tests/phpunit/CRM/Extension/ManagerTest.php
tests/phpunit/CRM/Financial/BAO/FinancialItemTest.php
tests/phpunit/CiviTest/CiviReportTestCase.php
tests/phpunit/WebTest/Activity/ContactContextAddTest.php
tests/phpunit/WebTest/Case/ActivityToCaseTest.php
tests/phpunit/WebTest/Case/AddCaseTypeTest.php
tests/phpunit/WebTest/Contact/AdvancedSearchedRelatedContactTest.php
tests/phpunit/WebTest/Contact/CustomDataAddTest.php
tests/phpunit/WebTest/Contact/GroupAddTest.php
tests/phpunit/WebTest/Contact/MergeContactsTest.php
tests/phpunit/WebTest/Contact/RelationshipAddTest.php
tests/phpunit/WebTest/Contribute/ContactContextAddTest.php
tests/phpunit/WebTest/Contribute/OnBehalfOfOrganization.php
tests/phpunit/WebTest/Contribute/StandaloneAddTest.php
tests/phpunit/WebTest/Contribute/UpdateContributionTest.php
tests/phpunit/WebTest/Event/AddEventTest.php
tests/phpunit/WebTest/Event/AddPricesetTest.php
tests/phpunit/WebTest/Event/ParticipantCountTest.php
tests/phpunit/WebTest/Event/PricesetMaxCountTest.php
tests/phpunit/WebTest/Event/TellAFriendTest.php
tests/phpunit/WebTest/Export/ContactTest.php
tests/phpunit/WebTest/Financial/FinancialAccountTest.php
tests/phpunit/WebTest/Financial/FinancialAccountTypeTest.php
tests/phpunit/WebTest/Import/AddressImportTest.php
tests/phpunit/WebTest/Member/OfflineMembershipAddPricesetTest.php
tests/phpunit/WebTest/Member/OnlineMembershipAddPricesetTest.php
tests/phpunit/WebTest/Member/StandaloneAddTest.php
tests/phpunit/WebTest/Profile/MultiRecordProfileAddTest.php
tests/phpunit/WebTest/Profile/SearchTest.php
tests/phpunit/WebTest/Report/LoggingReportTest.php
tests/phpunit/api/v3/ActionScheduleTest.php
tests/phpunit/api/v3/ReportTemplateTest.php
tests/phpunit/api/v3/TaxContributionPageTest.php

index 17790a9b5f3da586c068494198b74ef1e33f441f..a6abf1bb46faa145273fa3d62e88c80725e8b779 100644 (file)
@@ -64,7 +64,7 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
         if (!empty($roleObj->capabilities)) {
           foreach ($roleObj->capabilities as $ckey => $cname) {
             if (array_key_exists($ckey, $permissionsArray)) {
-              $elementName = $role.'['.$ckey.']';
+              $elementName = $role . '[' . $ckey . ']';
               $defaults[$elementName] = 1;
             }
           }
@@ -73,7 +73,7 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
         // Compose the checkbox array for each role, to assign to form
         $rolePerms[$role] = $permissionsArray;
         foreach ($rolePerms[$role] as $key => $value) {
-          $elementName = $role.'['.$key.']';
+          $elementName = $role . '[' . $key . ']';
           $this->add('checkbox', $elementName, $value);
         }
         $roles[$role] = $name;
index c026cba134314eb8845528eb094866e2fe5aa497..db08ae6ad3c7298c25020fa0d783036c368427d2 100644 (file)
@@ -59,7 +59,7 @@ class CRM_Activity_Import_Form_DataSource extends CRM_Core_Form {
     //Setting Upload File Size
     $config = CRM_Core_Config::singleton();
 
-    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize.'m', TRUE);
+    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize . 'm', TRUE);
     $uploadSize = round(($uploadFileSize / (1024 * 1024)), 2);
 
     $this->assign('uploadSize', $uploadSize);
index 9a96968ebf53fac46816c824cd82ba5372ed3032..f563c51b8ddd1634238733f3d2cb0b713775ad68 100644 (file)
@@ -92,7 +92,7 @@ class CRM_Activity_Page_AJAX {
     //CRM-14466 initialize variable to avoid php notice
     $sortSQL = "";
     if ($sort && $sortOrder) {
-      $sortSQL = $sort .' '.$sortOrder;
+      $sortSQL = $sort  . ' ' . $sortOrder;
     }
 
     // get the activities related to given case
@@ -129,7 +129,7 @@ class CRM_Activity_Page_AJAX {
 
     $params = $_POST;
     if ($sort && $sortOrder) {
-      $sortSQL = $sort .' '.$sortOrder;
+      $sortSQL = $sort  . ' ' . $sortOrder;
     }
 
     // Retrieve ALL client relationships
@@ -162,8 +162,8 @@ class CRM_Activity_Page_AJAX {
 
     // after sort we can update username fields to be a url
     foreach ($clientRelationships as $key => $value) {
-      $clientRelationships[$key]['name'] = '<a href='.CRM_Utils_System::url('civicrm/contact/view',
-       'action=view&reset=1&cid='.$clientRelationships[$key]['cid']).'>'.$clientRelationships[$key]['name'].'</a>';
+      $clientRelationships[$key]['name'] = '<a href=' . CRM_Utils_System::url('civicrm/contact/view',
+       'action=view&reset=1&cid=' . $clientRelationships[$key]['cid']) . '>' . $clientRelationships[$key]['name'] . '</a>';
     }
 
     $iFilteredTotal = $iTotal = $params['total'] = count($allClientRelationships);
@@ -194,7 +194,7 @@ class CRM_Activity_Page_AJAX {
 
     $params = $_POST;
     if ($sort && $sortOrder) {
-      $sortSQL = $sort .' '.$sortOrder;
+      $sortSQL = $sort  . ' ' . $sortOrder;
     }
 
     $caseRelationships = CRM_Case_BAO_Case::getCaseRoles($contactID, $caseID);
@@ -270,12 +270,12 @@ class CRM_Activity_Page_AJAX {
       list($typeLabel) = explode('<', $row['relation']);
       // view user links
       if (!empty($row['cid'])) {
-        $row['name'] = '<a class="view-contact" title="'. ts('View Contact') .'" href='.CRM_Utils_System::url('civicrm/contact/view',
-          'action=view&reset=1&cid='.$row['cid']).'>'.$row['name'].'</a>';
+        $row['name'] = '<a class="view-contact" title="' .  ts('View Contact')  . '" href=' . CRM_Utils_System::url('civicrm/contact/view',
+          'action=view&reset=1&cid=' . $row['cid']) . '>' . $row['name'] . '</a>';
       }
       // email column links/icon
       if ($row['email']) {
-        $row['email'] = '<a class="crm-hover-button crm-popup" href="'.CRM_Utils_System::url('civicrm/activity/email/add', 'reset=1&action=add&atype=3&cid='.$row['cid']).'&caseid='.$caseID.'" title="'. ts('Send an Email') . '"><span class="icon email-icon"></span></a>';
+        $row['email'] = '<a class="crm-hover-button crm-popup" href="' . CRM_Utils_System::url('civicrm/activity/email/add', 'reset=1&action=add&atype=3&cid=' . $row['cid']) . '&caseid=' . $caseID . '" title="' .  ts('Send an Email') . '"><span class="icon email-icon"></span></a>';
       }
       // edit links
       $row['actions'] = '';
@@ -285,18 +285,18 @@ class CRM_Activity_Page_AJAX {
         switch ($row['source']) {
           case 'caseRel':
             $row['actions'] =
-            '<a href="#editCaseRoleDialog" title="'. ts('Reassign %1', array(1 => $typeLabel)) .'" class="crm-hover-button case-miniform" data-contact_type="' . $contactType . '" data-rel_type="'. $row['relation_type'] .'" data-rel_id="'. $row['rel_id'] .'"data-key="'. CRM_Core_Key::get('civicrm/ajax/relation') .'">'.
-              '<span class="icon edit-icon"></span>'.
-            '</a>'.
-            '<a href="#deleteCaseRoleDialog" title="'. ts('Remove %1', array(1 => $typeLabel)) .'" class="crm-hover-button case-miniform" data-contact_type="' . $contactType . '" data-rel_type="'.$row['relation_type'].'" data-key="'. CRM_Core_Key::get('civicrm/ajax/delcaserole') .'">'.
-              '<span class="icon delete-icon"></span>'.
+            '<a href="#editCaseRoleDialog" title="' .  ts('Reassign %1', array(1 => $typeLabel))  . '" class="crm-hover-button case-miniform" data-contact_type="' . $contactType . '" data-rel_type="' .  $row['relation_type']  . '" data-rel_id="' .  $row['rel_id']  . '"data-key="' .  CRM_Core_Key::get('civicrm/ajax/relation')  . '">' .
+              '<span class="icon edit-icon"></span>' .
+            '</a>' .
+            '<a href="#deleteCaseRoleDialog" title="' .  ts('Remove %1', array(1 => $typeLabel))  . '" class="crm-hover-button case-miniform" data-contact_type="' . $contactType . '" data-rel_type="' . $row['relation_type'] . '" data-key="' .  CRM_Core_Key::get('civicrm/ajax/delcaserole')  . '">' .
+              '<span class="icon delete-icon"></span>' .
             '</a>';
             break;
 
           case 'caseRoles':
             $row['actions'] =
-            '<a href="#editCaseRoleDialog" title="'. ts('Assign %1', array(1 => $typeLabel)) .'" class="crm-hover-button case-miniform" data-contact_type="' . $contactType . '" data-rel_type="'. $row['relation_type'] .'" data-key="'. CRM_Core_Key::get('civicrm/ajax/relation') .'">'.
-              '<span class="icon edit-icon"></span>'.
+            '<a href="#editCaseRoleDialog" title="' .  ts('Assign %1', array(1 => $typeLabel))  . '" class="crm-hover-button case-miniform" data-contact_type="' . $contactType . '" data-rel_type="' .  $row['relation_type']  . '" data-key="' .  CRM_Core_Key::get('civicrm/ajax/relation')  . '">' .
+              '<span class="icon edit-icon"></span>' .
             '</a>';
             break;
         }
@@ -477,10 +477,10 @@ class CRM_Activity_Page_AJAX {
       //Check if recurring activity
       if (CRM_Utils_Array::value('is_recurring_activity', $value)) {
         if ($key == $value['is_recurring_activity']) {
-          $activities[$key]['activity_type'] = $activities[$key]['activity_type'].'<br/><span class="bold">Recurring Activity - (Parent)</span>';
+          $activities[$key]['activity_type'] = $activities[$key]['activity_type'] . '<br/><span class="bold">Recurring Activity - (Parent)</span>';
         }
         else {
-          $activities[$key]['activity_type'] = $activities[$key]['activity_type'].'<br/><span class="bold">Recurring Activity - (Child)</span>';
+          $activities[$key]['activity_type'] = $activities[$key]['activity_type'] . '<br/><span class="bold">Recurring Activity - (Child)</span>';
         }
       }
     }
index 7a9f8689d2aff2f3e0a7d6e4878fab712e20cc5a..4379559175278106425c3bece8f2499fb19fddff 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');
index f3b895a042f67ce7ec30dba9dc462bae99c530e0..3a389e200ff3c6bce5495cf9a3ee35b15e482f33 100755 (executable)
@@ -305,7 +305,7 @@ class CRM_Batch_BAO_Batch extends CRM_Batch_DAO_Batch {
           "' name='check_" .
           $object->id .
           "' value='1'  data-status_id='" .
-          $values['status_id']."' class='select-row'></input>";
+          $values['status_id'] . "' class='select-row'></input>";
 
         switch ($batchStatusByName[$values['status_id']]) {
           case 'Open':
@@ -655,7 +655,7 @@ class CRM_Batch_BAO_Batch extends CRM_Batch_DAO_Batch {
     // action is taken depending upon the mode
     $select = 'civicrm_financial_trxn.id ';
     if (!empty($returnValues)) {
-      $select .= " , ".implode(' , ', $returnValues);
+      $select .= " , " . implode(' , ', $returnValues);
     }
 
     $orderBy = " ORDER BY civicrm_financial_trxn.id";
@@ -780,7 +780,7 @@ WHERE  {$where}
   public static function getBatchNames($batchIds) {
     $query = 'SELECT id, title
       FROM civicrm_batch
-      WHERE id IN ('. $batchIds . ')';
+      WHERE id IN (' .  $batchIds . ')';
 
     $batches = array();
     $dao = CRM_Core_DAO::executeQuery($query);
@@ -800,7 +800,7 @@ WHERE  {$where}
   public static function getBatchStatuses($batchIds) {
     $query = 'SELECT id, status_id
       FROM civicrm_batch
-      WHERE id IN ('.$batchIds.')';
+      WHERE id IN (' . $batchIds . ')';
 
     $batches = array();
     $dao = CRM_Core_DAO::executeQuery($query);
index 18600211b805c7e77e7bd2b78002621d816b6410..fc2d9622fd9a3e3d98ee6b24cb061cf0531aeee2 100755 (executable)
@@ -492,7 +492,7 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
 
         // build line item params
         $this->_priceSet['fields'][$priceFieldID]['options'][$priceFieldValueID]['amount'] = $value['total_amount'];
-        $value['price_'. $priceFieldID] = 1;
+        $value['price_' .  $priceFieldID] = 1;
 
         $lineItem = array();
         CRM_Price_BAO_PriceSet::processAmount($this->_priceSet['fields'], $value, $lineItem[$priceSetId]);
index 472fb14c7c311407ea2b3a6a5d585873258cf8ec..d1eb133931b09829966d611ef4acff9282166962 100644 (file)
@@ -332,7 +332,7 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page {
         $surveysData[$sid]['is_default'] = $isDefault;
 
         if ($surveysData[$sid]['result_id']) {
-          $resultSet = '<a href= "javascript:displayResultSet( ' . $sid . ',' . "'" . $surveysData[$sid]['title'] . "'" . ', ' . $surveysData[$sid]['result_id'] . ' )" title="' . ts('view result set').'">' . ts('Result Set') . '</a>';
+          $resultSet = '<a href= "javascript:displayResultSet( ' . $sid . ',' . "'" . $surveysData[$sid]['title'] . "'" . ', ' . $surveysData[$sid]['result_id'] . ' )" title="' . ts('view result set') . '">' . ts('Result Set') . '</a>';
           $surveysData[$sid]['result_id'] = $resultSet;
         }
         else {
index 6bc55a23cfad227f3e6babc420c7adbe8b809932..dc9d69b09ce6dd27649a70d3f29f1f435e678e79 100644 (file)
@@ -506,7 +506,7 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form {
     foreach ($caseRelationships as $key => & $value) {
       $reporters[$value['cid']] = $value['name'] . " ( {$value['relation']} )";
     }
-    $form->add('select', 'reporter_id', ts('Reporter/Role'), $reporters, FALSE, array('id' => 'reporter_id_'.$form->_caseID));
+    $form->add('select', 'reporter_id', ts('Reporter/Role'), $reporters, FALSE, array('id' => 'reporter_id_' . $form->_caseID));
 
     // take all case activity types for search filter, CRM-7187
     $aTypesFilter = array();
@@ -518,17 +518,17 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form {
     }
     $aTypesFilter = $aTypesFilter + $aTypes;
     asort($aTypesFilter);
-    $form->add('select', 'activity_type_filter_id', ts('Activity Type'), array('' => ts('- select activity type -')) + $aTypesFilter, FALSE, array('id' => 'activity_type_filter_id_'.$form->_caseID));
+    $form->add('select', 'activity_type_filter_id', ts('Activity Type'), array('' => ts('- select activity type -')) + $aTypesFilter, FALSE, array('id' => 'activity_type_filter_id_' . $form->_caseID));
 
     $activityStatus = CRM_Core_PseudoConstant::activityStatus();
-    $form->add('select', 'status_id', ts('Status'), array("" => ts(' - any status - ')) + $activityStatus, FALSE, array('id' => 'status_id_'.$form->_caseID));
+    $form->add('select', 'status_id', ts('Status'), array("" => ts(' - any status - ')) + $activityStatus, FALSE, array('id' => 'status_id_' . $form->_caseID));
 
     // activity dates
-    $form->addDate('activity_date_low_'.$form->_caseID, ts('Activity Dates - From'), FALSE, array('formatType' => 'searchDate'));
-    $form->addDate('activity_date_high_'.$form->_caseID, ts('To'), FALSE, array('formatType' => 'searchDate'));
+    $form->addDate('activity_date_low_' . $form->_caseID, ts('Activity Dates - From'), FALSE, array('formatType' => 'searchDate'));
+    $form->addDate('activity_date_high_' . $form->_caseID, ts('To'), FALSE, array('formatType' => 'searchDate'));
 
     if (CRM_Core_Permission::check('administer CiviCRM')) {
-      $form->add('checkbox', 'activity_deleted', ts('Deleted Activities'), '', FALSE, array('id' => 'activity_deleted_'.$form->_caseID));
+      $form->add('checkbox', 'activity_deleted', ts('Deleted Activities'), '', FALSE, array('id' => 'activity_deleted_' . $form->_caseID));
     }
   }
 }
index 39b79063b01cd0490a40b16e893ee9df3e9f4c86..760ea39fbac8eee6dd190700854e17ed4e7b2b26 100644 (file)
@@ -756,7 +756,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
           foreach ($groupIds as $gId) {
             $title[] = $allGroups[$gId];
           }
-          $groupList[$id]['group_name'] .= '<div class="crm-row-parent-name"><em>'.ts('Child of').'</em>: ' . implode(', ', $title) . '</div>';
+          $groupList[$id]['group_name'] .= '<div class="crm-row-parent-name"><em>' . ts('Child of') . '</em>: ' . implode(', ', $title) . '</div>';
           $value['class'] = array_diff($value['class'], array('crm-row-parent'));
         }
         $value['class'][] = 'crm-entity';
index c023513d29f377b5f625c151929ef907419226f0..ba544051b8e15d06474b743a2b66401f2a2ae505 100644 (file)
@@ -1818,7 +1818,7 @@ AND cc.sort_name LIKE '%$name%'";
           FALSE,
           $values['cid']
         );
-        $contactRelationships[$relationshipId]['name'] = $icon.' '.CRM_Utils_System::href(
+        $contactRelationships[$relationshipId]['name'] = $icon . ' ' . CRM_Utils_System::href(
           $values['name'],
           'civicrm/contact/view',
           "reset=1&cid={$values['cid']}");
index a6e623d564106bd5b8078bc44bcf6ec682e7294f..2e4d668ff42f26b503359b0e199e427021892e49 100644 (file)
@@ -125,7 +125,7 @@ class CRM_Contact_Form_Inline_Email extends CRM_Contact_Form_Inline {
       }
 
       if (count($hasPrimary) > 1) {
-        $errors["email[".array_pop($hasPrimary)."][is_primary]"] = ts('Only one email can be marked as primary.');
+        $errors["email[" . array_pop($hasPrimary) . "][is_primary]"] = ts('Only one email can be marked as primary.');
       }
     }
     return $errors;
index bc583ea4869f4847ea7073abc7e759b8253ba091..698362e5c39dd58ed9b5c61bb24419db951461f0 100644 (file)
@@ -127,7 +127,7 @@ class CRM_Contact_Form_Inline_IM extends CRM_Contact_Form_Inline {
       }
 
       if (count($hasPrimary) > 1) {
-        $errors["im[".array_pop($hasPrimary)."][is_primary]"] = ts('Only one IM can be marked as primary.');
+        $errors["im[" . array_pop($hasPrimary) . "][is_primary]"] = ts('Only one IM can be marked as primary.');
       }
     }
     return $errors;
index 0f7bf65c331035a5da1b7a2d108f0132da0e9344..8a79fa730bc63760ac7c8e03ec1cd6755966b93d 100644 (file)
@@ -127,7 +127,7 @@ class CRM_Contact_Form_Inline_OpenID extends CRM_Contact_Form_Inline {
       }
 
       if (count($hasPrimary) > 1) {
-        $errors["openid[".array_pop($hasPrimary)."][is_primary]"] = ts('Only one OpenID can be marked as primary.');
+        $errors["openid[" . array_pop($hasPrimary) . "][is_primary]"] = ts('Only one OpenID can be marked as primary.');
       }
     }
     return $errors;
index 9a61f729ca711b18f737f7e86e4716605bd6eaa6..9edd86d248e21e4d10da3572075ddf77b3957e65 100644 (file)
@@ -128,7 +128,7 @@ class CRM_Contact_Form_Inline_Phone extends CRM_Contact_Form_Inline {
       }
 
       if (count($hasPrimary) > 1) {
-        $errors["phone[".array_pop($hasPrimary)."][is_primary]"] = ts('Only one phone can be marked as primary.');
+        $errors["phone[" . array_pop($hasPrimary) . "][is_primary]"] = ts('Only one phone can be marked as primary.');
       }
     }
     return $errors;
index 4f6b911543a77759c64c544e940525e81f056f16..9ae3d3329389f7d092e1e6107569d2c69b51826a 100644 (file)
@@ -1066,7 +1066,7 @@ SELECT DISTINCT 'civicrm_contact', contact_a.id, contact_a.id, '$cacheKey', cont
     //update pre/next cache using single insert query
     if (!empty($insertValues)) {
       $sql = 'INSERT INTO civicrm_prevnext_cache ( entity_table, entity_id1, entity_id2, cacheKey, data ) VALUES
-'.implode(',', $insertValues);
+' . implode(',', $insertValues);
 
       $result = CRM_Core_DAO::executeQuery($sql);
     }
index e45757fb631bad06d5725129bb8177cfef81e448..5578c80797a26e1f4e9ebc977583e6767a4bdfe5 100644 (file)
@@ -503,7 +503,7 @@ class CRM_Contribute_Form_AdditionalInfo {
         'toName' => $contributorDisplayName,
         'toEmail' => $contributorEmail,
         'isTest' => $form->_mode == 'test',
-        'PDFFilename' => ts('receipt').'.pdf',
+        'PDFFilename' => ts('receipt') . '.pdf',
         'isEmailPdf' => $isEmailPdf,
       )
     );
index 2267a54c7753788eee3a4ae4b080f782b10cf5df..1bbd022802b5d00d42d64ee0ddb4aca4b3628d59 100644 (file)
@@ -692,7 +692,7 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract
       'groupName' => 'msg_tpl_workflow_contribution',
       'valueName' => 'payment_or_refund_notification',
       'contactId' => $this->_contactId,
-      'PDFFilename' => ts('notification').'.pdf',
+      'PDFFilename' => ts('notification') . '.pdf',
     );
 
     // try to send emails only if email id is present
index 4cacae0c13fbb9cb0909b428286952ff294e81bb..929fa14009f59ff14d05393a4a1f67e046153311 100644 (file)
@@ -1263,14 +1263,14 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
       if ($is_quick_config) {
         foreach ($this->_values['fee'] as $key => & $val) {
           if ($val['name'] == 'other_amount' && $val['html_type'] == 'Text' && array_key_exists('price_'.$key, $params) ) {
-            $params['price_'.$key] = CRM_Utils_Rule::cleanMoney($params['price_'.$key]); //Clean out any currency symbols
+            $params['price_' . $key] = CRM_Utils_Rule::cleanMoney($params['price_' . $key]); //Clean out any currency symbols
             if ($params['price_'.$key] != 0) {
               foreach ($val['options'] as $optionKey => & $options) {
                 $options['amount'] = CRM_Utils_Array::value('price_'.$key, $params);
                 break;
               }
             }
-            $params['price_'.$key] = 1;
+            $params['price_' . $key] = 1;
             break;
           }
         }
index 813052315a2c6bdbe99485301024b40005419bbb..d72cb47b3eea4d7712c4d5f6914912dfd5a334e5 100644 (file)
@@ -363,7 +363,7 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
   private function _resizeImage($filename, $resizedName, $width, $height) {
     // figure out the new filename
     $pathParts = pathinfo($filename);
-    $newFilename = $pathParts['dirname']."/".$pathParts['filename'].$resizedName.".".$pathParts['extension'];
+    $newFilename = $pathParts['dirname'] . "/" . $pathParts['filename'] . $resizedName . "." . $pathParts['extension'];
 
     // get image about original image
     $imageInfo = getimagesize($filename);
@@ -396,7 +396,7 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
 
     // return the URL to link to
     $config = CRM_Core_Config::singleton();
-    return $config->imageUploadURL.basename($newFilename);
+    return $config->imageUploadURL . basename($newFilename);
   }
 
 }
index 7d2e6e99a328f250aaa1697b45a12aa1a4306353..fe086d97e0b78e1a6bf2d6cb6225b65a7c5e811f 100644 (file)
@@ -165,8 +165,8 @@ class CRM_Contribute_Form_Task_PDFLetterCommon extends CRM_Contact_Form_Task_PDF
   public static function isHtmlTokenInTableCell($token, $entity, $textToSearch) {
     $tokenToMatch = $entity . '.' . $token;
     $dontCare = array();
-    $within = preg_match_all("|<td.+?{".$tokenToMatch."}.+?</td|si", $textToSearch, $dontCare);
-    $total = preg_match_all("|{".$tokenToMatch."}|", $textToSearch, $dontCare);
+    $within = preg_match_all("|<td.+?{" . $tokenToMatch . "}.+?</td|si", $textToSearch, $dontCare);
+    $total = preg_match_all("|{" . $tokenToMatch . "}|", $textToSearch, $dontCare);
     return ($within == $total);
   }
 
index 0db01f96fffcfa12e6c676a56d6b987157f2fe04..356be735543b9cd115abf3ed05a222884204c88f 100644 (file)
@@ -59,7 +59,7 @@ class CRM_Contribute_Import_Form_DataSource extends CRM_Core_Form {
     //Setting Upload File Size
     $config = CRM_Core_Config::singleton();
 
-    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize.'m', TRUE);
+    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize . 'm', TRUE);
     $uploadSize = round(($uploadFileSize / (1024 * 1024)), 2);
 
     $this->assign('uploadSize', $uploadSize);
index 445dc45ba1e7d6065fe843676bb5e7fa6a4c43b9..2312392dfa80d845c64d981928a34c0adf2c3daf 100644 (file)
@@ -289,8 +289,8 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField {
           );
         }
         if (!empty($mapperKeysValues) && $mapperKeysValues[$i][0] == 'soft_credit') {
-          $js .= "cj('#mapper_".$i."_1').val($mapperKeysValues[$i][1]);\n";
-          $js .= "cj('#mapper_".$i."_2').val($mapperKeysValues[$i][2]);\n";
+          $js .= "cj('#mapper_" . $i . "_1').val($mapperKeysValues[$i][1]);\n";
+          $js .= "cj('#mapper_" . $i . "_2').val($mapperKeysValues[$i][2]);\n";
         }
       }
       $sel->setOptions(array($sel1, $sel2, $sel3, $sel4));
index 3e6420392205246066597d45d036a31c7cf13f8e..5cd2a80d8da25483a5b249cb4917ef8644db9d68 100644 (file)
@@ -160,7 +160,7 @@ class CRM_Contribute_PseudoConstant extends CRM_Core_PseudoConstant {
   public static function &financialAccount($id = NULL, $financialAccountTypeId = NULL, $retrieveColumn = 'name', $key = 'id') {
     $condition = NULL;
     if ($financialAccountTypeId) {
-      $condition = " financial_account_type_id = ". $financialAccountTypeId;
+      $condition = " financial_account_type_id = " .  $financialAccountTypeId;
     }
     $cacheKey = "{$id}_{$financialAccountTypeId}_{$retrieveColumn}_{$key}";
     if (!isset(self::$financialAccount[$cacheKey])) {
index 17de29d0b33b852658bdfecde67214d3f1c6d248..c04ba2999572bb4f1b358a3235772ccb360b1b6d 100644 (file)
@@ -1207,7 +1207,7 @@ reminder.action_schedule_id = %1";
         $date = $operator . "({$dateField}, INTERVAL {$actionSchedule->start_action_offset} {$actionSchedule->start_action_unit})";
         $startDateClause[] = "'{$now}' >= {$date}";
         if ($mapping->entity == 'civicrm_participant') {
-          $startDateClause[] = $operator. "({$now}, INTERVAL 1 DAY ) {$op} " . $dateField;
+          $startDateClause[] = $operator .  "({$now}, INTERVAL 1 DAY ) {$op} " . $dateField;
         }
         else {
           $startDateClause[] = "DATE_SUB({$now}, INTERVAL 1 DAY ) <= {$date}";
@@ -1390,7 +1390,7 @@ WHERE     m.owner_membership_id IS NOT NULL AND
     }
 
     if (!empty($excludeIds)) {
-      $clause = "AND {$field} NOT IN ( " .implode(', ', $excludeIds) . ' ) ';
+      $clause = "AND {$field} NOT IN ( "  . implode(', ', $excludeIds) . ' ) ';
       return $clause;
     }
     return NULL;
index a012d72d942ab530e270fc927f2f887708d80a64..169b2dfb0a674ff71a93e6d2b59ca23a0c4293ba 100644 (file)
@@ -630,7 +630,7 @@ ORDER BY parent_id, weight";
           <ul id='civicrm-home'>
             <li><a href='$homeURL'>$homeLabel</a></li>
             <li><a href='#' class='crm-hidemenu'>$hideLabel</a></li>
-            <li><a href='$logoutURL' class='crm-logout-link'>". ts('Log out') ."</a></li>
+            <li><a href='$logoutURL' class='crm-logout-link'>" .  ts('Log out')  . "</a></li>
           </ul>";
       // <li> tag doesn't need to be closed
     }
index ecbe53cfa3765fcfe6ff1253bee9ba62384e695e..ae9af0d1a4a40157ec3986667270a6d36882d18a 100644 (file)
@@ -663,7 +663,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
       $settingsMetadata = CRM_Core_BAO_Cache::getItem('CiviCRM setting Spec', 'All', $componentID);
       if (empty($settingsMetadata)) {
         global $civicrm_root;
-        $metaDataFolders = array($civicrm_root. '/settings');
+        $metaDataFolders = array($civicrm_root .  '/settings');
         CRM_Utils_Hook::alterSettingsFolders($metaDataFolders);
         $settingsMetadata = self::loadSettingsMetaDataFolders($metaDataFolders);
         CRM_Core_BAO_Cache::setItem($settingsMetadata,'CiviCRM setting Spec', 'All', $componentID);
index 23f4dc30c17ec67dafb4b6306ded641ae2726a5c..0a81bde29a9aef592df18aaeb1dc24241f8938f6 100644 (file)
@@ -304,7 +304,7 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag {
     $formattedTags = array();
     foreach ($tags as $key => $tag) {
       if (!empty($tag[2])) {
-        $key = $tag[2]. "-" . $key;
+        $key = $tag[2] .  "-" . $key;
       }
       $formattedTags[$key] = $tag[0] . $tag[1];
     }
index f359e767164deff3380804355993fd23e501f8e7..567c466f2370b1c7d8b11b9a48aa64b3b84f082e 100644 (file)
@@ -76,7 +76,7 @@ class CRM_Core_CodeGen_Main {
       unlink($this->digestPath);
     }
 
-    echo "\ncivicrm_domain.version := ". $this->db_version . "\n\n";
+    echo "\ncivicrm_domain.version := " .  $this->db_version . "\n\n";
     if ($this->buildVersion < 1.1) {
       echo "The Database is not compatible for this version";
       exit();
index 37678b34bbc70d48ec237ebb3af956e3749246d1..b15d3208d867cd83ac056ebc6d7a08281a561988 100644 (file)
@@ -19,7 +19,7 @@ class CRM_Core_CodeGen_Specification {
   public function parse($schemaPath, $buildVersion) {
     $this->buildVersion = $buildVersion;
 
-    echo "Parsing schema description ".$schemaPath."\n";
+    echo "Parsing schema description " . $schemaPath . "\n";
     $dbXML = CRM_Core_CodeGen_Util_Xml::parse($schemaPath);
     // print_r( $dbXML );
 
index 9924f6dcbf1233e58a2cb7a991075550f85de7e5..1fc02d62d1e965ec1cb0e8e5b529937a9c14bf7c 100644 (file)
@@ -50,7 +50,7 @@ class CRM_Core_CodeGen_Util_Template {
     }
     foreach ($inputs as $infile) {
       // FIXME: does not beautify.  Document.
-      file_put_contents($outpath, $this->smarty->fetch($infile) ."\n", FILE_APPEND);
+      file_put_contents($outpath, $this->smarty->fetch($infile)  . "\n", FILE_APPEND);
     }
   }
 
index 6a6026699b9c36440f9491ac26f25db74c7f665b..e34c6fa1efd82d5d3ffbb81d15d87a0467e10ebe 100644 (file)
@@ -739,11 +739,11 @@ class CRM_Core_Error extends PEAR_ErrorStack {
               break;
 
             case 'string':
-              $args[] = '"' . CRM_Utils_String::ellipsify(addcslashes((string) $arg, "\r\n\t\""), $maxArgLen). '"';
+              $args[] = '"' . CRM_Utils_String::ellipsify(addcslashes((string) $arg, "\r\n\t\""), $maxArgLen) .  '"';
               break;
 
             case 'array':
-              $args[] = '(Array:'.count($arg).')';
+              $args[] = '(Array:' . count($arg) . ')';
               break;
 
             case 'object':
index d08158e21ac33d403d7418cf51280694c6fa0364..a8818fe0c89f46f43f76e12a0f071129e18e87d6 100644 (file)
@@ -93,7 +93,7 @@ class CRM_Core_Form_RecurringEntity {
       }
     }
     if ($entityTable) {
-      CRM_Core_OptionValue::getValues(array('name' => $entityTable.'_repeat_exclude_dates_'.self::$_parentEntityId), $optionValue);
+      CRM_Core_OptionValue::getValues(array('name' => $entityTable . '_repeat_exclude_dates_' . self::$_parentEntityId), $optionValue);
       $excludeOptionValues = array();
       if (!empty($optionValue)) {
         foreach ($optionValue as $key => $val) {
@@ -180,7 +180,7 @@ class CRM_Core_Form_RecurringEntity {
     $form->add('select', 'repetition_frequency_interval', ts('Repeats every:'), $numericOptions, '', array('style' => 'width:55px;'));
     $form->addDateTime('repetition_start_date', ts('Repetition Start Date'), FALSE, array('formatType' => 'activityDateTime'));
     foreach ($dayOfTheWeek as $key => $val) {
-      $startActionCondition[] = $form->createElement('checkbox', $key, NULL, substr($val."&nbsp;", 0, 3));
+      $startActionCondition[] = $form->createElement('checkbox', $key, NULL, substr($val . "&nbsp;", 0, 3));
     }
     $form->addGroup($startActionCondition, 'start_action_condition', ts('Repeats on'));
     $roptionTypes = array(
@@ -358,7 +358,7 @@ class CRM_Core_Form_RecurringEntity {
 
           //Check if there exists any values for this option group
           $optionGroupIdExists = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup',
-              $type.'_repeat_exclude_dates_'.$params['parent_entity_id'],
+              $type . '_repeat_exclude_dates_' . $params['parent_entity_id'],
               'id',
               'name'
             );
@@ -367,8 +367,8 @@ class CRM_Core_Form_RecurringEntity {
           }
           $optionGroupParams =
               array(
-                'name'        => $type.'_repeat_exclude_dates_'.$actionScheduleObj->entity_value,
-                'title'       => $type.' recursion',
+                'name'        => $type . '_repeat_exclude_dates_' . $actionScheduleObj->entity_value,
+                'title'       => $type . ' recursion',
                 'is_reserved' => 0,
                 'is_active'   => 1
               );
@@ -383,7 +383,7 @@ class CRM_Core_Form_RecurringEntity {
                     'label'           => CRM_Utils_Date::processDate($val),
                     'value'           => CRM_Utils_Date::processDate($val),
                     'name'            => $opGroup->name,
-                    'description'     => 'Used for recurring '.$type,
+                    '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
                   );
index 9422f0adf0b492d21efa6863f0f414e0020c7337..97107e32b2e30acc26df0b66a8fa9664c7000bb6 100644 (file)
@@ -266,7 +266,7 @@ class CRM_Core_Form_Renderer extends HTML_QuickForm_Renderer_ArraySmarty {
       $display[] = $val['label'];
     }
 
-    $el['html'] = implode('; ', $display) . '<input type="hidden" value="'. $field->getValue() . '" name="' . $field->getAttribute('name') . '">';
+    $el['html'] = implode('; ', $display) . '<input type="hidden" value="' .  $field->getValue() . '" name="' . $field->getAttribute('name') . '">';
   }
 
   /**
index cec7e7dd8a0758bfeb7acd851477eb1fa1d28f79..4b3564a2fe8d38a5e0e4448be11967c68fa0fee8 100644 (file)
@@ -206,7 +206,7 @@ class CRM_Core_Page_AJAX {
   public static function setJsHeaders() {
     // Encourage browsers to cache for a long time - 1 year
     $year = 60 * 60 * 24 * 364;
-    header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + $year));
+    header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + $year));
     header('Content-Type:      application/javascript');
     header("Cache-Control: max-age=$year, public");
   }
index 276aa491d0c87f2faba52fd25a3064c5851da465..01b376940064d000be57138a2e226c192a37218e 100644 (file)
@@ -270,7 +270,7 @@ INNER JOIN civicrm_contribution co ON co.contribution_recur_id = cr.id
       $ids['contact'] = $contRecur->contact_id;
     }
     if (!$ids['contributionRecur']) {
-      CRM_Core_Error::debug_log_message("Could not find contributionRecur id: ".print_r($input, TRUE));
+      CRM_Core_Error::debug_log_message("Could not find contributionRecur id: " . print_r($input, TRUE));
       echo "Failure: Could not find contributionRecur<p>";
       exit();
     }
index 949924330625ef3396ed3dec54d9c052fa30d1c8..d0b2baf46270729f46d1d6b635bc4bb4cba22c92 100644 (file)
@@ -92,7 +92,7 @@ class CRM_Core_Payment_BaseIPN {
     $contact = new CRM_Contact_BAO_Contact();
     $contact->id = $ids['contact'];
     if (!$contact->find(TRUE)) {
-      CRM_Core_Error::debug_log_message("Could not find contact record: {$ids['contact']} in IPN request: ".print_r($input, TRUE));
+      CRM_Core_Error::debug_log_message("Could not find contact record: {$ids['contact']} in IPN request: " . print_r($input, TRUE));
       echo "Failure: Could not find contact record: {$ids['contact']}<p>";
       return FALSE;
     }
@@ -101,7 +101,7 @@ class CRM_Core_Payment_BaseIPN {
     $contribution = new CRM_Contribute_BAO_Contribution();
     $contribution->id = $ids['contribution'];
     if (!$contribution->find(TRUE)) {
-      CRM_Core_Error::debug_log_message("Could not find contribution record: {$contribution->id} in IPN request: ".print_r($input, TRUE));
+      CRM_Core_Error::debug_log_message("Could not find contribution record: {$contribution->id} in IPN request: " . print_r($input, TRUE));
       echo "Failure: Could not find contribution record for {$contribution->id}<p>";
       return FALSE;
     }
index ffe15b8abb301d9a91c7016f5acc479e7a027a68..22d37889941a27c6d4836a0371cd128fda8b74ff 100644 (file)
@@ -224,7 +224,7 @@ class CRM_Core_Payment_PaymentExpress extends CRM_Core_Payment {
       'MerchantReference' => $merchantRef,
       'TxnData1' => $params['qfKey'],
       'TxnData2' => $privateData,
-      'TxnData3' => $component . ",".$this->_paymentProcessor['id'],
+      'TxnData3' => $component . "," . $this->_paymentProcessor['id'],
       'TxnType' => 'Purchase',
       // Leave this empty for now, causes an error with DPS if we populate it
       'TxnId' => '',
index 21d5dcdbb1b5872dd2d28878043cd2fbc7c8bc02..fa8f5602eaeaccf3bd582a2aebea2d64556e08c8 100644 (file)
@@ -1473,7 +1473,7 @@ WHERE  id = %1";
    * @return array - array of all payment processor types
    */
   public static function &paymentProcessorType($all = FALSE, $id = NULL, $return = 'title') {
-    $cacheKey = $id . '_' .$return;
+    $cacheKey = $id . '_'  . $return;
     if (empty(self::$paymentProcessorType[$cacheKey])) {
       self::populate(self::$paymentProcessorType[$cacheKey], 'CRM_Financial_DAO_PaymentProcessorType', $all, $return, 'is_active', NULL, "is_default, $return", 'id');
     }
index 1177c2f48250822e9ee3ae79abbeaf2d2d272814..973fec9817b5dce0ee1ec5d2b90708c7c5cc7346 100644 (file)
@@ -62,7 +62,7 @@ function smarty_function_crmAPI($params, &$smarty) {
   }
 
   if (!empty($result['is_error'])) {
-    $smarty->trigger_error("{crmAPI} ".$result["error_message"]);
+    $smarty->trigger_error("{crmAPI} " . $result["error_message"]);
   }
 
   if (!array_key_exists('var', $params)) {
index 79f4799a48243dffbb7d71efc5d4b7ec161a645d..2415b84ce8dd9aecbe31c1713139325200749dfc 100644 (file)
@@ -8,5 +8,5 @@ function smarty_prefilter_resetExtScope($tpl_source, &$smarty) {
   return
     '{crmScope extensionKey=""}'
     . $tpl_source
-    .'{/crmScope}';
+     . '{/crmScope}';
 }
index 8668eadbd36b6b2695aaab9ef400ad341dd67120..e883decf0afda9d86b39a933556d1d7573dd3a84 100644 (file)
@@ -89,7 +89,7 @@ class CRM_Custom_Import_Form_DataSource extends CRM_Core_Form {
     //Setting Upload File Size
     $config = CRM_Core_Config::singleton();
 
-    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize.'m', TRUE);
+    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize . 'm', TRUE);
     $uploadSize = round(($uploadFileSize / (1024 * 1024)), 2);
 
     $this->assign('uploadSize', $uploadSize);
index 4559c7ca138f8793508839f2d19e9621ddb8b785..55b0dbe35fe5c779cb5a8b7477062a7d58bfb0fe 100644 (file)
@@ -157,7 +157,7 @@ class CRM_Custom_Import_Parser_Api extends CRM_Custom_Import_Parser {
 
     CRM_Contact_Import_Parser_Contact::formatCommonData($this->_params, $formatted, $formatted);
     foreach ($formatted['custom'] as $key => $val) {
-      $this->_params['custom_'.$key] = $val[-1]['value'];
+      $this->_params['custom_' . $key] = $val[-1]['value'];
     }
     $this->_params['skipRecentView'] = TRUE;
     $this->_params['check_permissions'] = TRUE;
index 35ab118480d7fef691898929b591dddc77aea8ed..c343efef6e6d4c12ec27b9e5294d7c11951b18fb 100644 (file)
@@ -284,7 +284,7 @@ class CRM_Event_BAO_Query {
           }
           if (!empty($allEventIds)) {
             $op = "IN";
-            $value = "(".implode(",", $allEventIds).")";
+            $value = "(" . implode(",", $allEventIds) . ")";
           }
         }
         $query->_where[$grouping][] = "civicrm_event.id $op {$value}";
index 00471494a43e2efb3d874011e0dbc284ae86ab85..8b9dbf8e54a0e675305000572447c7b785f13365 100644 (file)
@@ -360,7 +360,7 @@ class CRM_Event_Cart_Form_Checkout_Payment extends CRM_Event_Cart_Form_Cart {
         'pay_later_receipt' => $this->pay_later_receipt,
       ),
       'valueName' => 'event_registration_receipt',
-      'PDFFilename' => ts('confirmation').'.pdf',
+      'PDFFilename' => ts('confirmation') . '.pdf',
     );
     $template_params_to_copy = array(
       'billing_name',
index 27e277f301da5bac2e7f6fef12bdfa5b2d0fed9c..ef2cc42541ca2de1165f3f05d8c5fe5c7ddbcf4d 100644 (file)
@@ -359,7 +359,7 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent
   public function buildMultipleProfileBottom(&$form, $count, $prefix = '', $label = 'Include Profile', $configs = NULL) {
     extract((is_null($configs)) ? self::getProfileSelectorTypes() : $configs);
     $element = $prefix . "custom_post_id_multiple[$count]";
-    $label .= '<br />'.ts('(bottom of page)');
+    $label .= '<br />' . ts('(bottom of page)');
     $form->addProfileSelector($element, $label, $allowCoreTypes, $allowSubTypes, $profileEntities, TRUE);
   }
 
index 767cc0b35cfb58416d628b1f0438cdafe8cdcf11..bb442f8244bd83bf79e6c43ad65f253ac8ec6aca 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Event_Form_ManageEvent_Repeat extends CRM_Event_Form_ManageEvent {
           $query = "
             SELECT *
             FROM civicrm_event
-            WHERE id IN (".implode(",", $allEventIds).")
+            WHERE id IN (" . implode(",", $allEventIds) . ")
             ORDER BY start_date asc
              ";
 
index b59b61779945adf98d8ba358fd28503a1b2b3f26..cc714c9c8974c323c47b1cbdcb0569cedbe55002 100644 (file)
@@ -1655,7 +1655,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
           'valueName' => 'event_offline_receipt',
           'contactId' => $contactID,
           'isTest' => (bool) CRM_Utils_Array::value('is_test', $this->_defaultValues),
-          'PDFFilename' => ts('confirmation').'.pdf',
+          'PDFFilename' => ts('confirmation') . '.pdf',
         );
 
         // try to send emails only if email id is present
index 66e3099d640eeb2637d54ac7efb03ca0fb14b84f..f96fc73e897d614b61b819d8f3eee49ca03709b2 100644 (file)
@@ -136,7 +136,7 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form {
     else {
       foreach ($priceFieldId as $key => $value) {
         if (!empty($value) && ($this->_values['fee'][$value]['html_type'] == 'Radio' || $this->_values['fee'][$value]['html_type'] == 'Select') && !$this->_values['fee'][$value]['is_required']) {
-          $defaults[$this->_participantId]['price_'.array_keys($this->_values['fee'])[$key]] = 0;
+          $defaults[$this->_participantId]['price_' . array_keys($this->_values['fee'])[$key]] = 0;
         }
       }
     }
@@ -369,7 +369,7 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form {
       'valueName' => 'event_offline_receipt',
       'contactId' => $this->_contactId,
       'isTest' => FALSE,
-      'PDFFilename' => ts('confirmation').'.pdf',
+      'PDFFilename' => ts('confirmation') . '.pdf',
     );
 
     // try to send emails only if email id is present
index 58b2bdfe5e270db34804dc2d4cb484afd770e5d0..da3e3f00faa87247e300a70e5d7437cc6eaac484 100644 (file)
@@ -59,7 +59,7 @@ class CRM_Event_Import_Form_DataSource extends CRM_Core_Form {
     //Setting Upload File Size
     $config = CRM_Core_Config::singleton();
 
-    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize.'m', TRUE);
+    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize . 'm', TRUE);
     $uploadSize = round(($uploadFileSize / (1024 * 1024)), 2);
 
     $this->assign('uploadSize', $uploadSize);
index bd8a1b815539459033a80e5c2fbe84bd6ae156de..6d14587708c0eddf45af7b23cba8387921d7a2bd 100644 (file)
@@ -197,14 +197,14 @@ class CRM_Financial_BAO_ExportFormat {
     $details = '<p>' . ts('Record:') . ' ' . $values['title'] . '</p><p>' . ts('Description:') . '</p><p>' . ts('Created By:') . " $createdBy" . '</p><p>' . ts('Created Date:') . ' ' . $values['created_date'] . '</p><p>' . ts('Last Modified By:') . ' ' . $modifiedBy . '</p><p>' . ts('Payment Instrument:') . ' ' . $values['payment_instrument_id'] . '</p>';
     $subject = '';
     if (!empty($values['total'])) {
-      $subject .= ts('Total') . '['. CRM_Utils_Money::format($values['total']) .'],';
+      $subject .= ts('Total') . '[' .  CRM_Utils_Money::format($values['total'])  . '],';
     }
     if (!empty($values['item_count'])) {
-      $subject .= ' ' . ts('Count') . '['. $values['item_count'] .'],';
+      $subject .= ' ' . ts('Count') . '[' .  $values['item_count']  . '],';
     }
 
     //create activity.
-    $subject .= ' ' . ts('Batch') . '['. $values['title'] .']';
+    $subject .= ' ' . ts('Batch') . '[' .  $values['title']  . ']';
     $activityTypes = CRM_Core_PseudoConstant::activityType(TRUE, FALSE, FALSE, 'name');
     $activityParams = array(
       'activity_type_id' => array_search('Export Accounting Batch', $activityTypes),
index 69f80bf158733f934e2172341bf8fd04ab1a29bc..3959f3fcb189e6de93537ea51abd586a96acd22a 100644 (file)
@@ -134,8 +134,8 @@ class CRM_Financial_BAO_ExportFormat_CSV extends CRM_Financial_BAO_ExportFormat
    */
   public function putFile($export) {
     $config = CRM_Core_Config::singleton();
-    $fileName = $config->uploadDir.'Financial_Transactions_'.$this->_batchIds.'_'.date('YmdHis').'.'.$this->getFileExtension();
-    $this->_downloadFile[] = $config->customFileUploadDir.CRM_Utils_File::cleanFileName(basename($fileName));
+    $fileName = $config->uploadDir . 'Financial_Transactions_' . $this->_batchIds . '_' . date('YmdHis') . '.' . $this->getFileExtension();
+    $this->_downloadFile[] = $config->customFileUploadDir . CRM_Utils_File::cleanFileName(basename($fileName));
     $out = fopen($fileName, 'w');
     fputcsv($out, $export['headers']);
     unset($export['headers']);
index 56a8315b0252f5da06f9ca8b793408bec6bfd813..5043255088ad30743082090111be1dd84c98142f 100644 (file)
@@ -82,8 +82,8 @@ class CRM_Financial_BAO_ExportFormat_IIF extends CRM_Financial_BAO_ExportFormat
    */
   public function putFile($out) {
     $config = CRM_Core_Config::singleton();
-    $fileName = $config->uploadDir.'Financial_Transactions_'.$this->_batchIds.'_'.date('YmdHis').'.'.$this->getFileExtension();
-    $this->_downloadFile[] = $config->customFileUploadDir.CRM_Utils_File::cleanFileName(basename($fileName));
+    $fileName = $config->uploadDir . 'Financial_Transactions_' . $this->_batchIds . '_' . date('YmdHis') . '.' . $this->getFileExtension();
+    $this->_downloadFile[] = $config->customFileUploadDir . CRM_Utils_File::cleanFileName(basename($fileName));
     $buffer = fopen($fileName, 'w');
     fwrite($buffer, $out);
     fclose($buffer);
@@ -263,7 +263,7 @@ class CRM_Financial_BAO_ExportFormat_IIF extends CRM_Financial_BAO_ExportFormat
               'trxn_date' => $this->format($itemDAO->transaction_date, 'date'),
               'spl_id' => $this->format($itemDAO->financial_item_id),
               'account_name' => $this->format($itemDAO->account_name),
-              'amount' => '-' .$this->format($itemDAO->amount, 'money'),
+              'amount' => '-'  . $this->format($itemDAO->amount, 'money'),
               'contact_name' => $this->format($itemDAO->contact_name),
               'payment_instrument' => $this->format($itemDAO->payment_instrument),
               'description' => $this->format($itemDAO->description),
index 5d75a9b3e50a38e8c6fdd31417c2a3b221e33f93..02dab2fd5b10395f94061a7af98860c8570ec847 100644 (file)
@@ -91,7 +91,7 @@ class CRM_Financial_Form_FinancialBatch extends CRM_Contribute_Form {
 
     if (isset($this->_id)) {
       $this->_title = CRM_Core_DAO::getFieldValue('CRM_Batch_DAO_Batch', $this->_id, 'title');
-      CRM_Utils_System::setTitle($this->_title .' - '.ts('Accounting Batch'));
+      CRM_Utils_System::setTitle($this->_title  . ' - ' . ts('Accounting Batch'));
       $this->assign('batchTitle', $this->_title);
       $contactID = CRM_Core_DAO::getFieldValue('CRM_Batch_DAO_Batch', $this->_id, 'created_id');
       $contactName = CRM_Contact_BAO_Contact::displayName($contactID);
@@ -245,7 +245,7 @@ class CRM_Financial_Form_FinancialBatch extends CRM_Contribute_Form {
     //create activity.
     $activityParams = array(
       'activity_type_id' => array_search($activityTypeName, $activityTypes),
-      'subject' => $batch->title ."- Batch",
+      'subject' => $batch->title  . "- Batch",
       'status_id' => 2,
       'priority_id' => 2,
       'activity_date_time' => date('YmdHis'),
index bf22b304b0a54163549ed759d9a8ac5eebf41862..22df3bb1c5de06d0b3d7179eaff79641729d6599 100644 (file)
@@ -106,7 +106,7 @@ class CRM_Financial_Form_FinancialTypeAccount extends CRM_Contribute_Form {
     if ($this->_id) {
       $financialAccount = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_EntityFinancialAccount', $this->_id, 'financial_account_id');
       $fieldTitle = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialAccount', $financialAccount, 'name');
-      CRM_Utils_System::setTitle($fieldTitle . ' - '. ts('Financial Type Accounts'));
+      CRM_Utils_System::setTitle($fieldTitle . ' - ' .  ts('Financial Type Accounts'));
     }
 
     $breadCrumb = array(
index 26c0f4aefaf3f67e1cedb7e446854b951dad9a67..d219cdf29a5fdf04e599b2288ee3fb0c5b5c68ac 100644 (file)
@@ -368,13 +368,13 @@ class CRM_Financial_Page_AJAX {
         }
         $row[$financialItem->id][$columnKey] = $financialItem->$columnKey;
         if ($columnKey == 'sort_name' && $financialItem->$columnKey) {
-          $url = CRM_Utils_System::url('civicrm/contact/view', "reset=1&cid=".$financialItem->contact_id);
-          $row[$financialItem->id][$columnKey] = '<a href='.$url.'>'.$financialItem->$columnKey.'</a>';
+          $url = CRM_Utils_System::url('civicrm/contact/view', "reset=1&cid=" . $financialItem->contact_id);
+          $row[$financialItem->id][$columnKey] = '<a href=' . $url . '>' . $financialItem->$columnKey . '</a>';
         }
         elseif ($columnKey == 'payment_method' && $financialItem->$columnKey) {
           $row[$financialItem->id][$columnKey] = CRM_Core_OptionGroup::getLabel('payment_instrument', $financialItem->$columnKey);
           if ($row[$financialItem->id][$columnKey] == 'Check') {
-            $row[$financialItem->id][$columnKey] = $row[$financialItem->id][$columnKey].' ('.$financialItem->check_number.')';
+            $row[$financialItem->id][$columnKey] = $row[$financialItem->id][$columnKey] . ' (' . $financialItem->check_number . ')';
           }
         }
         elseif ($columnKey == 'amount' && $financialItem->$columnKey) {
@@ -390,7 +390,7 @@ class CRM_Financial_Page_AJAX {
       if ($statusID == CRM_Core_OptionGroup::getValue('batch_status', 'Open')) {
         if (isset($notPresent)) {
           $js = "enableActions('x')";
-          $row[$financialItem->id]['check'] = "<input type='checkbox' id='mark_x_". $financialItem->id."' name='mark_x_". $financialItem->id."' value='1' onclick={$js}></input>";
+          $row[$financialItem->id]['check'] = "<input type='checkbox' id='mark_x_" .  $financialItem->id . "' name='mark_x_" .  $financialItem->id . "' value='1' onclick={$js}></input>";
           $row[$financialItem->id]['action'] = CRM_Core_Action::formLink(
             CRM_Financial_Form_BatchTransaction::links(),
             NULL,
@@ -408,7 +408,7 @@ class CRM_Financial_Page_AJAX {
         }
         else {
           $js = "enableActions('y')";
-          $row[$financialItem->id]['check'] = "<input type='checkbox' id='mark_y_". $financialItem->id."' name='mark_y_". $financialItem->id."' value='1' onclick={$js}></input>";
+          $row[$financialItem->id]['check'] = "<input type='checkbox' id='mark_y_" .  $financialItem->id . "' name='mark_y_" .  $financialItem->id . "' value='1' onclick={$js}></input>";
           $row[$financialItem->id]['action'] = CRM_Core_Action::formLink(
             CRM_Financial_Page_BatchTransaction::links(),
             NULL,
index cd58c099ee9bde1fd91cb8a28531e303af163fa1..d7f9b29bde6a9f383dc59154164ae8d82a0b1dee 100644 (file)
@@ -134,7 +134,7 @@ class CRM_Financial_Page_FinancialTypeAccount extends CRM_Core_Page {
     if ($this->_aid) {
       $relationTypeId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Accounts Receivable Account is' "));
       $this->_title = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialType', $this->_aid, 'name');
-      CRM_Utils_System::setTitle($this->_title .' - '.ts('Assigned Financial Accounts'));
+      CRM_Utils_System::setTitle($this->_title  . ' - ' . ts('Assigned Financial Accounts'));
       $financialAccountType = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_FinancialAccount', 'financial_account_type_id');
       $accountRelationship = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_EntityFinancialAccount', 'account_relationship');
       $dao->copyValues($params);
index 854a26891c449d03b02acbd022042dc25c2b50a8..52d5e26e58b498b91865164a9351edc94848df03 100644 (file)
@@ -68,7 +68,7 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource {
 
     $config = CRM_Core_Config::singleton();
 
-    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize.'m', TRUE);
+    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize . 'm', TRUE);
     $uploadSize = round(($uploadFileSize / (1024 * 1024)), 2);
     $form->assign('uploadSize', $uploadSize);
     $form->add('File', 'uploadFile', ts('Import Data File'), 'size=30 maxlength=255', TRUE);
index 1e0f2afe9b27e05832d0ddbd54005546e2e07c66..48aa7e62f9f731fc5b4f221a4e2197f2200a51ca 100644 (file)
@@ -2955,9 +2955,9 @@ AND        m.id = %1
         "reset=1&cid={$values['creator_id']}");
 
       //CRM-12814
-      $contactMailings[$mailingId]['openstats'] = "Opens: ".
-        CRM_Utils_Array::value($values['mailing_id'], $openCounts, 0).
-        "<br />Clicks: ".
+      $contactMailings[$mailingId]['openstats'] = "Opens: " .
+        CRM_Utils_Array::value($values['mailing_id'], $openCounts, 0) .
+        "<br />Clicks: " .
         CRM_Utils_Array::value($values['mailing_id'], $clickCounts, 0);
 
       $actionLinks = array(
index d7bd9f489a90e337defdadc4422cc67befec8dee..fe17e974641346a32d0e27863e5c9beeefce29d9 100644 (file)
@@ -467,7 +467,7 @@ class CRM_Mailing_BAO_Query {
 
     if (is_array($value)) {
       $query->_where[$grouping][] = "$tableName.$fieldName $op (" . implode(',', $value) . ")";
-      $query->_qill[$grouping][] = "$fieldTitle $op ". implode(', ', array_intersect_key($valueTitles, array_flip($value)));
+      $query->_qill[$grouping][] = "$fieldTitle $op " .  implode(', ', array_intersect_key($valueTitles, array_flip($value)));
     }
     else {
       $query->_qill[$grouping][] = $fieldTitle . ' - ' . $valueTitles[$value];
index 7a6eb5d91c6ed3634aefd40651d26f593b78b410..054e10836b491b021df1afb47ce12cea42685464 100644 (file)
@@ -1856,7 +1856,7 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
         'from' => $receiptFrom,
         'toName' => $form->_contributorDisplayName,
         'toEmail' => $form->_contributorEmail,
-        'PDFFilename' => ts('receipt').'.pdf',
+        'PDFFilename' => ts('receipt') . '.pdf',
         'isEmailPdf' => $isEmailPdf,
         'contributionId' => $formValues['contribution_id'],
         'isTest' => (bool) ($form->_action & CRM_Core_Action::PREVIEW)
index 5291faa142d44eb077d4f7303f1b3f238665650a..a522f76b75ae200020e6a03461a8cf8102d1ed7e 100644 (file)
@@ -93,7 +93,7 @@ class CRM_Member_Form_MembershipBlock extends CRM_Contribute_Form_ContributionPa
           foreach ($options as $k => $v) {
             $newMembershipType[$v['membership_type_id']] = 1;
             if (!empty($defaults['auto_renew'])) {
-              $defaults["auto_renew_".$v['membership_type_id']] = $defaults['auto_renew'][$v['membership_type_id']];
+              $defaults["auto_renew_" . $v['membership_type_id']] = $defaults['auto_renew'][$v['membership_type_id']];
             }
           }
           $defaults['membership_type'] = $newMembershipType;
index e30f0225fa61d2686531bcd95aadda24b73cb045..08203a2f9a8feb6463139ac5dcffb43f2d9c2c33 100644 (file)
@@ -59,7 +59,7 @@ class CRM_Member_Import_Form_DataSource extends CRM_Core_Form {
     //Setting Upload File Size
     $config = CRM_Core_Config::singleton();
 
-    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize.'m', TRUE);
+    $uploadFileSize = CRM_Core_Config_Defaults::formatUnitSize($config->maxFileSize . 'm', TRUE);
     $uploadSize = round(($uploadFileSize / (1024 * 1024)), 2);
 
     $this->assign('uploadSize', $uploadSize);
index 8730182b90a6b73f5ad379c20dee4e56da9f56af..6976f7a7f6ff5670bf1ecfce6b17af36ea1c43f4 100644 (file)
@@ -384,7 +384,7 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField {
               }
               else {
                 $opt['label'] =  '<span class="crm-price-amount-label">' . $opt['label'] . '</span>' . '<span class="crm-price-amount-amount">' . CRM_Utils_Money::format($opt[$valueFieldName]) . '</span>';
-                $opt['label'] .= '<span class="crm-price-amount-tax"> + '. CRM_Utils_Money::format($opt['tax_amount']) . ' ' . $taxTerm . '</span>';
+                $opt['label'] .= '<span class="crm-price-amount-tax"> + ' .  CRM_Utils_Money::format($opt['tax_amount']) . ' ' . $taxTerm . '</span>';
               }
             }
             else {
@@ -536,7 +536,7 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField {
           );
           if ($is_pay_later) {
             $txtcheck[$opId] =& $qf->createElement('text', $opId, $opt['label'], array('size' => '4'));
-            $qf->addGroup($txtcheck, 'txt-'.$elementName, $label);
+            $qf->addGroup($txtcheck, 'txt-' . $elementName, $label);
           }
           // CRM-6902 - Add "max" option for a price set field
           if (in_array($opId, $freezeOptions)) {
@@ -794,7 +794,7 @@ WHERE  id IN (" . implode(',', array_keys($priceFields)) . ')';
     }
     else {
       $label = CRM_Utils_Money::format($opt[$valueFieldName]);
-      $label .= '<span class="crm-price-amount-tax"> + '. CRM_Utils_Money::format($opt['tax_amount']) . ' ' . $taxTerm . '</span>';
+      $label .= '<span class="crm-price-amount-tax"> + ' .  CRM_Utils_Money::format($opt['tax_amount']) . ' ' . $taxTerm . '</span>';
     }
 
     return $label;
index 5ba917df3c0f3ced5eabbc95bb80863718be5eab..c9286ec92de4fa894756af4c2a9259847bc69207 100644 (file)
@@ -269,7 +269,7 @@ class CRM_Price_Form_Field extends CRM_Core_Form {
       //Financial Type
       $this->add(
         'select',
-        'option_financial_type_id['.$i.']',
+        'option_financial_type_id[' . $i . ']',
         ts('Financial Type'),
         array('' => ts('- select -')) + $financialType
       );
index 00ad9c2876c7e9a8006849e31836ff92b6d68c54..fda862787780beb4eec9c116988db9771f92fecb 100644 (file)
@@ -365,7 +365,7 @@ class CRM_Profile_Page_MultipleRecordFieldsListing extends CRM_Core_Page_Basic {
                   'key' => CRM_Core_Key::get('civicrm/ajax/customvalue'),
                 );
                 $links[CRM_Core_Action::DELETE]['url'] = '#';
-                $links[CRM_Core_Action::DELETE]['extra'] = ' data-delete_params="'. htmlspecialchars(json_encode($deleteData)) .'"';
+                $links[CRM_Core_Action::DELETE]['extra'] = ' data-delete_params="' .  htmlspecialchars(json_encode($deleteData))  . '"';
                 $links[CRM_Core_Action::DELETE]['class'] = 'delete-custom-row';
               }
               if (!empty($pageCheckSum)) {
index 607bda814e4a378f6cf30669fd18815aba6b288f..415471ae787574b21c8f53c36cda9ef272ddd3d0 100644 (file)
@@ -205,13 +205,13 @@ class CRM_Report_Form_Contact_LoggingSummary extends CRM_Logging_ReportSummary {
       $date = CRM_Utils_Date::isoToMysql($row['log_civicrm_entity_log_date']);
 
       if ('Update' == CRM_Utils_Array::value('log_civicrm_entity_log_action', $row)) {
-        $q = "reset=1&log_conn_id={$row['log_civicrm_entity_log_conn_id']}&log_date=". $date;
+        $q = "reset=1&log_conn_id={$row['log_civicrm_entity_log_conn_id']}&log_date=" .  $date;
         if ($this->cid) {
           $q .= '&cid=' . $this->cid;
         }
-        $q .= (!empty($row['log_civicrm_entity_altered_contact'])) ? '&alteredName='.$row['log_civicrm_entity_altered_contact'] : '';
-        $q .= (!empty($row['altered_by_contact_display_name'])) ? '&alteredBy='.$row['altered_by_contact_display_name'] : '';
-        $q .= (!empty($row['log_civicrm_entity_log_user_id'])) ? '&alteredById='.$row['log_civicrm_entity_log_user_id'] : '';
+        $q .= (!empty($row['log_civicrm_entity_altered_contact'])) ? '&alteredName=' . $row['log_civicrm_entity_altered_contact'] : '';
+        $q .= (!empty($row['altered_by_contact_display_name'])) ? '&alteredBy=' . $row['altered_by_contact_display_name'] : '';
+        $q .= (!empty($row['log_civicrm_entity_log_user_id'])) ? '&alteredById=' . $row['log_civicrm_entity_log_user_id'] : '';
 
         $url1 = CRM_Report_Utils_Report::getNextUrl('logging/contact/detail', "{$q}&snippet=4&section=2&layout=overlay", FALSE, TRUE);
         $url2 = CRM_Report_Utils_Report::getNextUrl('logging/contact/detail', "{$q}&section=2", FALSE, TRUE);
index 7746f1bbcf8ce249613585cfebdefa76a5c7a73c..b6129522a02044d34aaf50b5d91fe8e2d4c6ef55 100644 (file)
@@ -106,7 +106,7 @@ WHERE ceft.entity_table = 'civicrm_contribution' AND cft.payment_instrument_id I
       }
     }
     if ($rev == '4.4.6') {
-      $postUpgradeMessage .= '<br /><br /><strong>'. ts('Your contact image urls have been upgraded. If your contact image urls did not follow the standard format for image Urls they have not been upgraded. Please check the log to see image urls that were not upgraded.');
+      $postUpgradeMessage .= '<br /><br /><strong>' .  ts('Your contact image urls have been upgraded. If your contact image urls did not follow the standard format for image Urls they have not been upgraded. Please check the log to see image urls that were not upgraded.');
     }
   }
 
@@ -311,7 +311,7 @@ ALTER TABLE civicrm_dashboard
       }
       elseif ($urlElements[1] == 'report') {
         $url = explode('&', $urlElements[3]);
-        $name = 'report/' .$url[0];
+        $name = 'report/'  . $url[0];
       }
       $values .= "
       WHEN {$dashboard->id} THEN '{$name}'
@@ -336,7 +336,7 @@ ALTER TABLE civicrm_dashboard
    * @param $rev
    */
   public function upgrade_4_4_6($rev) {
-    $sql = "SELECT count(*) AS count FROM INFORMATION_SCHEMA.STATISTICS where ".
+    $sql = "SELECT count(*) AS count FROM INFORMATION_SCHEMA.STATISTICS where " .
       "TABLE_SCHEMA = database() AND INDEX_NAME = 'index_image_url' AND TABLE_NAME = 'civicrm_contact';";
     $dao = CRM_Core_DAO::executeQuery($sql);
     $dao->fetch();
@@ -386,12 +386,12 @@ ALTER TABLE civicrm_dashboard
       if (substr($imageURL, 0, $baselen) == $baseurl) {
         $photo = basename($dao->image_url);
         $config = CRM_Core_Config::singleton();
-        $fullpath = $config->customFileUploadDir.$photo;
+        $fullpath = $config->customFileUploadDir . $photo;
         if (file_exists($fullpath)) {
           // For anyone who upgraded 4.4.6 release (eg 4.4.0=>4.4.6), the $newImageUrl incorrectly used backend URLs.
           // For anyone who skipped 4.4.6 (eg 4.4.0=>4.4.7), the $newImageUrl correctly uses frontend URLs
           self::setContactImageUrl($dao->id,
-              CRM_Utils_System::url('civicrm/contact/imagefile', 'photo='.$photo, TRUE, NULL, TRUE, TRUE));
+              CRM_Utils_System::url('civicrm/contact/imagefile', 'photo=' . $photo, TRUE, NULL, TRUE, TRUE));
         }
         else{
           $failures[$dao->id] = $dao->image_url;
@@ -470,7 +470,7 @@ ALTER TABLE civicrm_dashboard
         $imageUrlParts = parse_url($imageUrl);
         parse_str($imageUrlParts['query'], $imageUrlQuery);
         self::setContactImageUrl($dao->id,
-          CRM_Utils_System::url('civicrm/contact/imagefile', 'photo='.$imageUrlQuery['photo'], TRUE, NULL, TRUE, TRUE));
+          CRM_Utils_System::url('civicrm/contact/imagefile', 'photo=' . $imageUrlQuery['photo'], TRUE, NULL, TRUE, TRUE));
       }
     }
     return TRUE;
index c0d63cbe3883252d548a2d06f7eef403c040614d..e6f15176bc282a2b46558d035ffb84bf481af1c2 100644 (file)
@@ -166,7 +166,7 @@ WHERE    entity_value = '' OR entity_value IS NULL
       }
       if (!empty($reminder)) {
         $list = "<br /><ul>" . $list . "</ul>";
-        $postUpgradeMessage .=  '<br />' .ts("Scheduled Reminders must be linked to one or more 'entities' (Events, Event Templates, Activity Types, Membership Types). The following reminders are not configured properly and will not be run. Please review them and update or delete them: %1", array(1 => $list));
+        $postUpgradeMessage .=  '<br />'  . ts("Scheduled Reminders must be linked to one or more 'entities' (Events, Event Templates, Activity Types, Membership Types). The following reminders are not configured properly and will not be run. Please review them and update or delete them: %1", array(1 => $list));
       }
     }
     if ($rev == '4.3.beta2') {
@@ -1111,7 +1111,7 @@ cfi.financial_account_id = %4,
 cfi.description = %5,
 cli.financial_type_id = %6
 WHERE cfi.entity_table = 'civicrm_line_item'
-AND cli.entity_table = 'civicrm_contribution' AND cli.id IN (" . implode(',', $value). ');';
+AND cli.entity_table = 'civicrm_contribution' AND cli.id IN (" . implode(',', $value) .  ');';
       $params =  array(
         1 => array($financialTrxn[$key]['label'], 'String'),
         2 => array($financialTrxn[$key]['price_field_id'], 'Integer'),
index ec4141b05b25e3eeb6be4bd7da97af45439f726d..ec5f51bec0699e4b5a810b80494d8936ea834fe8 100644 (file)
@@ -130,7 +130,7 @@ INNER JOIN civicrm_price_field cpf ON cpf.id = cpfv.price_field_id and cpf.id !=
 INNER JOIN civicrm_price_set cps ON cps.id = cpf.price_set_id AND cps.name <>'default_membership_type_amount' ";
       $dao = CRM_Core_DAO::executeQuery($query);
       if ($dao->N) {
-        $preUpgradeMessage .= "<br /><strong>". ts('We have identified extraneous data in your database that a previous upgrade likely introduced. We STRONGLY recommend making a backup of your site before continuing. We also STRONGLY suggest fixing this issue with unneeded records BEFORE you upgrade. You can find more information about this issue and the way to fix it by visiting <a href="http://forum.civicrm.org/index.php/topic,26181.0.html">http://forum.civicrm.org/index.php/topic,26181.0.html</a>.') ."</strong>";
+        $preUpgradeMessage .= "<br /><strong>" .  ts('We have identified extraneous data in your database that a previous upgrade likely introduced. We STRONGLY recommend making a backup of your site before continuing. We also STRONGLY suggest fixing this issue with unneeded records BEFORE you upgrade. You can find more information about this issue and the way to fix it by visiting <a href="http://forum.civicrm.org/index.php/topic,26181.0.html">http://forum.civicrm.org/index.php/topic,26181.0.html</a>.')  . "</strong>";
       }
     }
 
index 086c9e7f0238cd9c15ea9da1436f292f2d525cc9..f00e3c8a8fb6f8dff65f5046f82a14cc7bf45098 100644 (file)
@@ -54,9 +54,9 @@ class CRM_Utils_Cache_SerializeCache implements CRM_Utils_Cache_Interface {
    */
   public function fileName ($key) {
     if (strlen($key) > 50) {
-      return CIVICRM_TEMPLATE_COMPILEDIR ."CRM_".md5($key).".php";
+      return CIVICRM_TEMPLATE_COMPILEDIR  . "CRM_" . md5($key) . ".php";
     }
-    return CIVICRM_TEMPLATE_COMPILEDIR .$key.".php";
+    return CIVICRM_TEMPLATE_COMPILEDIR  . $key . ".php";
   }
 
   /**
@@ -85,7 +85,7 @@ class CRM_Utils_Cache_SerializeCache implements CRM_Utils_Cache_Interface {
       return;
     }
     $this->_cache[$key] = $value;
-    file_put_contents($this->fileName($key), "<?php //".serialize($value));
+    file_put_contents($this->fileName($key), "<?php //" . serialize($value));
   }
 
   /**
@@ -108,7 +108,7 @@ class CRM_Utils_Cache_SerializeCache implements CRM_Utils_Cache_Interface {
     }
     while (FALSE !== ($entry = readdir($handle))) {
       if (substr($entry, 0, 4) == $prefix) {
-        unlink(CIVICRM_TEMPLATE_COMPILEDIR.$entry);
+        unlink(CIVICRM_TEMPLATE_COMPILEDIR . $entry);
       }
     }
     closedir($handle);
index 3b324dcf632666eeb3369c8e3a64f5a554d7ad62..9e762d2fa06788214aa4ab33782c193770ff03b8 100644 (file)
@@ -177,7 +177,7 @@ class CRM_Utils_Mail_EmailProcessor {
       $store = CRM_Mailing_MailStore::getStore($dao->name);
     }
     catch(Exception$e) {
-      $message = ts('Could not connect to MailStore for ') . $dao->username . '@' . $dao->server .'<p>';
+      $message = ts('Could not connect to MailStore for ') . $dao->username . '@' . $dao->server  . '<p>';
       $message .= ts('Error message: ');
       $message .= '<pre>' . $e->getMessage() . '</pre><p>';
       CRM_Core_Error::fatal($message);
index 59ec9c5295200f1b9a9e94a63aaeffb9f77529be..0f5ac5b1dac3b2508088513ad8bebcdff01aa662 100644 (file)
@@ -164,7 +164,7 @@ class CRM_Utils_PDF_Utils {
 
     // close and output the PDF
     $pdf->Close();
-    $pdf_file = 'CiviLetter'.'.pdf';
+    $pdf_file = 'CiviLetter' . '.pdf';
     $pdf->Output($pdf_file, 'D');
     CRM_Utils_System::civiExit(1);
   }
index 546ad419860329a1dab2a39218acbc04d27fb3e9..a499f62e01c11912beabffc02cc5327b462628a4 100644 (file)
@@ -480,7 +480,7 @@ class CRM_Utils_REST {
     $entity = _civicrm_api_get_camel_name($request[2]);
     $tplfile = _civicrm_api_get_camel_name($request[3]);
 
-    $tpl = 'CRM/'.$entity.'/Page/Inline/'.$tplfile.'.tpl';
+    $tpl = 'CRM/' . $entity . '/Page/Inline/' . $tplfile . '.tpl';
     $smarty = CRM_Core_Smarty::singleton();
     CRM_Utils_System::setTitle("$entity::$tplfile inline $tpl");
     if (!$smarty->template_exists($tpl)) {
index 8b031fede1fd688356a06209ec39eccc397bb120..0379bf0eac3c2abbd86cb2eb50d5fc41b914e3ed 100644 (file)
@@ -711,10 +711,10 @@ class CRM_Utils_String {
     $offset = floor(($len - $maskCount) / 2);
 
     $masked = substr($user, 0, $offset)
-      .str_repeat($maskChar, $maskCount)
-      .substr($user, $maskCount + $offset);
+       . str_repeat($maskChar, $maskCount)
+       . substr($user, $maskCount + $offset);
 
-    return ($masked.'@'.$domain);
+    return ($masked . '@' . $domain);
   }
 
   /**
index a96fff7e29619691d729ab886d595b6c8f1cd36c..1e1691a783448a0e161929759e8087afc993c975 100644 (file)
@@ -785,7 +785,7 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
 
     //CRM-14872 append destination
     if (!empty($destination)) {
-      $loginURL .= '&return='.urlencode(base64_encode($destination));
+      $loginURL .= '&return=' . urlencode(base64_encode($destination));
     }
     return $loginURL;
   }
@@ -818,7 +818,7 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
     $destination = NULL;
     if ($args) {
       // append destination so user is returned to form they came from after login
-      $args = 'reset=1'.$args;
+      $args = 'reset=1' . $args;
       $destination = CRM_Utils_System::url(CRM_Utils_System::currentPath(), $args, TRUE, NULL, TRUE, TRUE);
     }
 
index d960023fccdbf687fc45ebb83e3ff347f163ba68..281897beb8a6f890e40fc207d8ff69490f83c9d5 100644 (file)
@@ -362,7 +362,7 @@ function _civicrm_api3_contact_check_params(&$params, $dupeCheck = TRUE, $dupeEr
     $ids = CRM_Dedupe_Finder::dupesByParams($dedupeParams, $params['contact_type'], 'Unsupervised', array());
 
     if (count($ids) > 0) {
-      throw new API_Exception("Found matching contacts: ". implode(',', $ids), "duplicate", array("ids" => $ids));
+      throw new API_Exception("Found matching contacts: " .  implode(',', $ids), "duplicate", array("ids" => $ids));
     }
   }
 
index f7545a1287cba28ebe9dbdf7cebde2ab986dbbb4..7e6c705a666725a6018b5409a8ac533f57af1247 100644 (file)
@@ -83,7 +83,7 @@ function civicrm_api3_generic_setValue($apiRequest) {
       break;
 
     default:
-      return civicrm_api3_create_error("Param '$field' is of a type not managed yet (".$def['type']."). Join the API team and help us implement it", array('error_code' => 'NOT_IMPLEMENTED'));
+      return civicrm_api3_create_error("Param '$field' is of a type not managed yet (" . $def['type'] . "). Join the API team and help us implement it", array('error_code' => 'NOT_IMPLEMENTED'));
   }
 
   $dao_name = _civicrm_api3_get_DAO($entity);
index 2ff39b940d360a8794d28e0bf46cd723ff8222d8..a3df2cb68becb16aeb8b032c36d2fac07444677c 100644 (file)
@@ -457,16 +457,16 @@ function _civicrm_api3_profile_getbillingpseudoprofile(&$params) {
   }
 
   if (!empty($result['api.email.get.1']['count'])) {
-    $values['billing-email'. '-' . $locationTypeID] = $result['api.email.get.1']['values'][0]['email'];
+    $values['billing-email' .  '-' . $locationTypeID] = $result['api.email.get.1']['values'][0]['email'];
   }
   elseif(!empty($result['api.email.get.2']['count'])) {
-    $values['billing-email'. '-' . $locationTypeID] = $result['api.email.get.2']['values'][0]['email'];
+    $values['billing-email' .  '-' . $locationTypeID] = $result['api.email.get.2']['values'][0]['email'];
   }
   else{
-    $values['billing-email'. '-' . $locationTypeID] = $result['email'];
+    $values['billing-email' .  '-' . $locationTypeID] = $result['email'];
   }
   // return both variants of email to reflect inconsistencies in form layer
-  $values['email'. '-' . $locationTypeID] = $values['billing-email'. '-' . $locationTypeID];
+  $values['email' .  '-' . $locationTypeID] = $values['billing-email' .  '-' . $locationTypeID];
   return $values;
 }
 
index aa19df80ae8241347a239bc7643ce61f21feaf61..b16b49cb078e0fe119c1b4ce1f059266b1b97d07 100644 (file)
@@ -780,7 +780,7 @@ function _civicrm_api3_get_options_from_params(&$params, $queryObject = FALSE, $
       $legacyreturnProperties[substr($n, 7)] = $v;
     }
     elseif ($n == 'id') {
-      $inputParams[$entity. '_id'] = $v;
+      $inputParams[$entity .  '_id'] = $v;
     }
     elseif (in_array($n, $otherVars)) {
     }
index c232424923095ff331ca89b79817695d7525e7d7..603e07c4164a7aa585fee43bf49bf0a13a7ef3cd 100644 (file)
@@ -9,7 +9,7 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
 
   public function setUp() {
     parent::setUp();
-    $students = 'indivi_student'.substr(sha1(rand()), 0, 7);
+    $students = 'indivi_student' . substr(sha1(rand()), 0, 7);
     $params = array(
       'label' => $students,
       'name' => $students,
@@ -20,7 +20,7 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     $result = CRM_Contact_BAO_ContactType::add($params);
     $this->student = $params['name'];
 
-    $parents = 'indivi_parent'.substr(sha1(rand()), 0, 7);
+    $parents = 'indivi_parent' . substr(sha1(rand()), 0, 7);
     $params = array(
       'label' => $parents,
       'name' => $parents,
@@ -31,7 +31,7 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     $result = CRM_Contact_BAO_ContactType::add($params);
     $this->parent = $params['name'];
 
-    $orgs = 'org_sponsor'.substr(sha1(rand()), 0, 7);
+    $orgs = 'org_sponsor' . substr(sha1(rand()), 0, 7);
     $params = array(
       'label' => $orgs,
       'name' => $orgs,
index 12d25544e24ca6b20dd3869b2a73d20787f74530..c1c649aea6a1e13190aadb6a1e78fdaa0096b478 100644 (file)
@@ -8,7 +8,7 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
 
   public function setUp() {
     parent::setUp();
-    $labelsub1 = 'sub1_individual'.substr(sha1(rand()), 0, 7);
+    $labelsub1 = 'sub1_individual' . substr(sha1(rand()), 0, 7);
     $params = array(
       'label' => $labelsub1,
       'name' => $labelsub1,
@@ -19,7 +19,7 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
     $result = CRM_Contact_BAO_ContactType::add($params);
     $this->subTypesIndividual[] = $params['name'];
 
-    $labelsub2 = 'sub2_individual'.substr(sha1(rand()), 0, 7);
+    $labelsub2 = 'sub2_individual' . substr(sha1(rand()), 0, 7);
     $params = array(
       'label' => $labelsub2,
       'name' => $labelsub2,
@@ -30,7 +30,7 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
     $result = CRM_Contact_BAO_ContactType::add($params);
     $this->subTypesIndividual[] = $params['name'];
 
-    $labelsub = 'sub_organization'.substr(sha1(rand()), 0, 7);
+    $labelsub = 'sub_organization' . substr(sha1(rand()), 0, 7);
     $params = array(
       'label' => $labelsub,
       'name' => $labelsub,
@@ -41,7 +41,7 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
     $result = CRM_Contact_BAO_ContactType::add($params);
     $this->subTypesOrganization[] = $params['name'];
 
-    $labelhousehold = 'sub_household'.substr(sha1(rand()), 0, 7);
+    $labelhousehold = 'sub_household' . substr(sha1(rand()), 0, 7);
     $params = array(
       'label' => $labelhousehold,
       'name' => $labelhousehold,
index d13c2679838a5edfcf557a4d82b8ebbbfbb64e4b..4314a473486f3f454dc275e792b3d5f610271bc7 100644 (file)
@@ -87,8 +87,8 @@ class CRM_Core_ErrorTest extends CiviUnitTestCase {
    */
   public function assertLogRegexp($pattern) {
     $config = CRM_Core_Config::singleton();
-    $logFiles = glob($config->configAndLogDir.'/CiviCRM*.log');
-    $this->assertEquals(1, count($logFiles), 'Expect to find 1 file matching: ' . $config->configAndLogDir.'/CiviCRM*log*/');
+    $logFiles = glob($config->configAndLogDir . '/CiviCRM*.log');
+    $this->assertEquals(1, count($logFiles), 'Expect to find 1 file matching: ' . $config->configAndLogDir . '/CiviCRM*log*/');
     foreach ($logFiles as $logFile) {
       $this->assertRegexp($pattern, file_get_contents($logFile));
     }
index 4b9555d653222d8413bd7762a13fb325d1e358f6..79fc643132a5ed3345250dace01ae4266e55752e 100644 (file)
@@ -305,7 +305,7 @@ class CRM_Core_Payment_PayPalProIPNTest extends CiviUnitTestCase {
       'mc_gross' => '15.00',
       'payment_date' => '03:59:05 Jul 14, 2013 PDT',
       'rp_invoice_id' => 'i=' . $this->_invoiceID
-        .'&m=contribute&c='
+         . '&m=contribute&c='
         . $this->_contactID
         . '&r=' . $this->_contributionRecurID
         . '&b=' . $this->_contributionID . '&p=' . $this->_contributionPageID,
index dc600fa133da01fe0201c7a017af8b5cefddf708..eae44d0c5a67e3dca70d90e87ca11254740d8ed7 100644 (file)
@@ -22,21 +22,21 @@ class CRM_Extension_BrowserTest extends CiviUnitTestCase {
   }
 
   public function testCheckRequirements_BadCachedir_false() {
-    $browser = new CRM_Extension_Browser('file://' . dirname(__FILE__) .'/dataset/good-repository', '/index.html', FALSE);
+    $browser = new CRM_Extension_Browser('file://' . dirname(__FILE__)  . '/dataset/good-repository', '/index.html', FALSE);
     $this->assertEquals(TRUE, $browser->isEnabled());
     $reqs = $browser->checkRequirements();
     $this->assertEquals(1, count($reqs));
   }
 
   public function testCheckRequirements_BadCachedir_nonexistent() {
-    $browser = new CRM_Extension_Browser('file://' . dirname(__FILE__) .'/dataset/good-repository', '/index.html', '/tot/all/yin/v/alid');
+    $browser = new CRM_Extension_Browser('file://' . dirname(__FILE__)  . '/dataset/good-repository', '/index.html', '/tot/all/yin/v/alid');
     $this->assertEquals(TRUE, $browser->isEnabled());
     $reqs = $browser->checkRequirements();
     $this->assertEquals(1, count($reqs));
   }
 
   public function testGetExtensions_good() {
-    $browser = new CRM_Extension_Browser('file://' . dirname(__FILE__) .'/dataset/good-repository', '/index.html', $this->createTempDir('ext-cache-'));
+    $browser = new CRM_Extension_Browser('file://' . dirname(__FILE__)  . '/dataset/good-repository', '/index.html', $this->createTempDir('ext-cache-'));
     $this->assertEquals(TRUE, $browser->isEnabled());
     $this->assertEquals(array(), $browser->checkRequirements());
     $exts = $browser->getExtensions();
@@ -50,7 +50,7 @@ class CRM_Extension_BrowserTest extends CiviUnitTestCase {
   }
 
   public function testGetExtension_good() {
-    $browser = new CRM_Extension_Browser('file://' . dirname(__FILE__) .'/dataset/good-repository', '/index.html', $this->createTempDir('ext-cache-'));
+    $browser = new CRM_Extension_Browser('file://' . dirname(__FILE__)  . '/dataset/good-repository', '/index.html', $this->createTempDir('ext-cache-'));
     $this->assertEquals(TRUE, $browser->isEnabled());
     $this->assertEquals(array(), $browser->checkRequirements());
 
@@ -60,7 +60,7 @@ class CRM_Extension_BrowserTest extends CiviUnitTestCase {
   }
 
   public function testGetExtension_nonexistent() {
-    $browser = new CRM_Extension_Browser('file://' . dirname(__FILE__) .'/dataset/good-repository', '/index.html', $this->createTempDir('ext-cache-'));
+    $browser = new CRM_Extension_Browser('file://' . dirname(__FILE__)  . '/dataset/good-repository', '/index.html', $this->createTempDir('ext-cache-'));
     $this->assertEquals(TRUE, $browser->isEnabled());
     $this->assertEquals(array(), $browser->checkRequirements());
 
index 51b327e312189ac288af0803ccae864236c12bbf..00070ee9075a102584cc27eb5c4b73ba9038ccca 100644 (file)
@@ -415,10 +415,10 @@ class CRM_Extension_ManagerTest extends CiviUnitTestCase {
     $basedir = $this->createTempDir('ext-');
     mkdir("$basedir/weird");
     mkdir("$basedir/weird/foobar");
-    file_put_contents("$basedir/weird/foobar/info.xml", "<extension key='test.foo.bar' type='".self::TESTING_TYPE."'><file>oddball</file></extension>");
+    file_put_contents("$basedir/weird/foobar/info.xml", "<extension key='test.foo.bar' type='" . self::TESTING_TYPE . "'><file>oddball</file></extension>");
     // not needed for now // file_put_contents("$basedir/weird/bar/oddball.php", "<?php\n");
     mkdir("$basedir/weird/whizbang");
-    file_put_contents("$basedir/weird/whizbang/info.xml", "<extension key='test.whiz.bang' type='".self::TESTING_TYPE."'><file>oddball</file></extension>");
+    file_put_contents("$basedir/weird/whizbang/info.xml", "<extension key='test.whiz.bang' type='" . self::TESTING_TYPE . "'><file>oddball</file></extension>");
     // not needed for now // file_put_contents("$basedir/weird/whizbang/oddball.php", "<?php\n");
     $c = new CRM_Extension_Container_Basic($basedir, 'http://example/basedir', $cache, $cacheKey);
     return array($basedir, $c);
@@ -432,7 +432,7 @@ class CRM_Extension_ManagerTest extends CiviUnitTestCase {
    */
   public function _createDownload($key, $file) {
     $basedir = $this->createTempDir('ext-dl-');
-    file_put_contents("$basedir/info.xml", "<extension key='$key' type='".self::TESTING_TYPE."'><file>$file</file></extension>");
+    file_put_contents("$basedir/info.xml", "<extension key='$key' type='" . self::TESTING_TYPE . "'><file>$file</file></extension>");
     file_put_contents("$basedir/$file.php", "<?php\n");
     return $basedir;
   }
index c6d5eeb8d9b1e3e50dcc95128f7fafcb70d9fbd0..6c63954a6b0ffc50226e3eac309bd91161730474 100755 (executable)
@@ -214,7 +214,7 @@ class CRM_Financial_BAO_FinancialItemTest extends CiviUnitTestCase {
    */
   public function testCreateEntityTrxn() {
     $fParams = array(
-      'name' => 'Donations'.substr(sha1(rand()), 0, 7),
+      'name' => 'Donations' . substr(sha1(rand()), 0, 7),
       'is_deductible' => 0,
       'is_active' => 1,
     );
index aa2187202fc74d18d5ff26ceea4a0aa5d7f85766..14faf22118682c28f59b257d339c928655c0bc8f 100644 (file)
@@ -146,7 +146,7 @@ class CiviReportTestCase extends CiviUnitTestCase {
       $this->assertEquals(
         count($actualCsvArray[$intKey]),
         count($expectedCsvArray[$intKey]),
-        'Arrays have different number of columns at row ' . $intKey . '; in line ' . __LINE__. '; data: ' . $rowData
+        'Arrays have different number of columns at row ' . $intKey . '; in line ' . __LINE__ .  '; data: ' . $rowData
       );
       $this->assertEquals($expectedCsvArray[$intKey], $strVal);
     }
index 5b3a33ad4d3fff72b442e772753077202be5f743..e7238d6e83f3d47636b01e20e3717ad2f7f3f921 100644 (file)
@@ -221,7 +221,7 @@ class WebTest_Activity_ContactContextAddTest extends CiviSeleniumTestCase {
 
     $this->clickLink('_qf_Search_refresh');
 
-    $targetContacts = array("Summerson, ". $firstName1, "Andersonnn, ". $firstName2, "Anderson, ". $firstName3);
+    $targetContacts = array("Summerson, " .  $firstName1, "Andersonnn, " .  $firstName2, "Anderson, " .  $firstName3);
 
     //check whether separate activities are created for the target contacts
     foreach ($targetContacts as $contact) {
index fd07cfc3d77883b5d5b0c2b2534ae101e9cf4133..6133c2f106676adeb3bacaf3e6de0cb8ef4924b1 100644 (file)
@@ -299,17 +299,17 @@ class WebTest_Case_ActivityToCaseTest extends CiviSeleniumTestCase {
 
     $this->waitForElementPresent('_qf_CaseView_cancel-bottom');
     $id = $this->urlArg('id');
-    $this->waitForElementPresent("xpath=//div[@id='activities']//table[@id='case_id_".$id."']/tbody/tr[1]/td[2]");
+    $this->waitForElementPresent("xpath=//div[@id='activities']//table[@id='case_id_" . $id . "']/tbody/tr[1]/td[2]");
 
-    $this->click("xpath=//div[@id='activities']//table[@id='case_id_".$id."']/tbody/tr[1]/td[2]//a[text()='{$subject}']");
+    $this->click("xpath=//div[@id='activities']//table[@id='case_id_" . $id . "']/tbody/tr[1]/td[2]//a[text()='{$subject}']");
 
     $this->waitForElementPresent('ActivityView');
     $this->waitForElementPresent("css=table#crm-activity-view-table tr.crm-case-activityview-form-block-groupTitle");
     $this->assertElementContainsText('crm-activity-view-table', "$textField");
     $this->click("xpath=//span[@class='ui-button-icon-primary ui-icon ui-icon-closethick']");
-    $this->waitForElementPresent("xpath=//div[@id='activities']//table[@id='case_id_".$id."']/tbody/tr[1]/td[2]");
+    $this->waitForElementPresent("xpath=//div[@id='activities']//table[@id='case_id_" . $id . "']/tbody/tr[1]/td[2]");
 
-    $this->click("xpath=//div[@id='activities']//table[@id='case_id_".$id."']/tbody//tr/td[2]/a[text()='{$subject}']/../../td[6]/a[text()='Scheduled']");
+    $this->click("xpath=//div[@id='activities']//table[@id='case_id_" . $id . "']/tbody//tr/td[2]/a[text()='{$subject}']/../../td[6]/a[text()='Scheduled']");
 
     $this->waitForElementPresent("xpath=//html/body/div[7]");
     $this->waitForElementPresent('activity_change_status');
@@ -321,8 +321,8 @@ class WebTest_Case_ActivityToCaseTest extends CiviSeleniumTestCase {
     $this->click("xpath=//table[@class='caseSelector']/tbody//tr/td[2]/a[text()='{$contactName}']/../../td[9]/span/a[text()='Manage']");
     $this->waitForElementPresent('_qf_CaseView_cancel-bottom');
     $id2 = $this->urlArg('id');
-    $this->waitForElementPresent("xpath=//div[@id='activities']//table[@id='case_id_".$id2."']/tbody/tr[1]/td[2]");
-    $this->click("xpath=//div[@id='activities']//table[@id='case_id_".$id2."']//a[text()='{$subject}']");
+    $this->waitForElementPresent("xpath=//div[@id='activities']//table[@id='case_id_" . $id2 . "']/tbody/tr[1]/td[2]");
+    $this->click("xpath=//div[@id='activities']//table[@id='case_id_" . $id2 . "']//a[text()='{$subject}']");
     $this->waitForElementPresent('ActivityView');
     $this->waitForElementPresent("css=table#crm-activity-view-table tr.crm-case-activityview-form-block-groupTitle");
   }
index 49083679eb97eae8461c0d0a9837711618479d07..ca1f891b9521a87892ff186c12269ef484520715 100644 (file)
@@ -54,7 +54,7 @@ class WebTest_Case_AddCaseTypeTest extends CiviSeleniumTestCase {
 
     $this->openCiviPage('a/#/caseType/new');
 
-    $caseTypeLabel = "Case Type". substr(sha1(rand()), 0, 7);
+    $caseTypeLabel = "Case Type" .  substr(sha1(rand()), 0, 7);
     $this->waitForElementPresent('title');
     $this->type('title', $caseTypeLabel);
 
@@ -123,7 +123,7 @@ class WebTest_Case_AddCaseTypeTest extends CiviSeleniumTestCase {
     $this->click("xpath=//table/tbody//tr/td[1][text()='{$caseTypeLabel}']/../td[5]/span/a[text()='Edit']");
     $this->waitForElementPresent("xpath=//div[@class='crm-submit-buttons']/span/input[@value='Save']");
 
-    $editCaseTypeLabel = "Case Type Edit". substr(sha1(rand()), 0, 7);
+    $editCaseTypeLabel = "Case Type Edit" .  substr(sha1(rand()), 0, 7);
     $this->waitForElementPresent('title');
     $this->type('title', $editCaseTypeLabel);
 
index c5cbb4101e29d6943810128582b3462d763b405c..f3dcadacdcd032b9f05368e22df863f2f76f564b 100644 (file)
@@ -137,7 +137,7 @@ class WebTest_Contact_AdvancedSearchedRelatedContactTest extends CiviSeleniumTes
     $this->click("_qf_AddToGroup_next-bottom");
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
-    $this->waitForText('crm-notification-container', "Added Contacts to ".$groupName);
+    $this->waitForText('crm-notification-container', "Added Contacts to " . $groupName);
     $this->waitForText('crm-notification-container', '2 contacts added to group');
     $this->_testSearchResult($relType);
   }
@@ -311,14 +311,14 @@ class WebTest_Contact_AdvancedSearchedRelatedContactTest extends CiviSeleniumTes
     $Ndate     = date('F jS, Y h:i:s A', mktime(0, 0, 0, date('m'), date('d') + 1, date('Y')));
 
     //create a contact and return the contact id
-    $firstNameSoft = "John_".substr(sha1(rand()), 0, 5);
-    $lastNameSoft  = "Doe_".substr(sha1(rand()), 0, 5);
+    $firstNameSoft = "John_" . substr(sha1(rand()), 0, 5);
+    $lastNameSoft  = "Doe_" . substr(sha1(rand()), 0, 5);
     $this->webtestAddContact($firstNameSoft, $lastNameSoft);
     $cid = $this->urlArg('cid');
 
     //advance search for created contacts
     $this->openCiviPage('contact/search/advanced', 'reset=1', '_qf_Advanced_refresh');
-    $this->type('sort_name', $lastNameSoft.', '.$firstNameSoft);
+    $this->type('sort_name', $lastNameSoft . ', ' . $firstNameSoft);
     $this->click('changeLog');
     $this->waitForElementPresent("log_date_low");
     $this->select("log_date_relative", "value=0");
index b874177b2ba8a6f1a52f151b471e76b98782484f..799e057c750deab5bdb99ac08496ac245f32d775 100644 (file)
@@ -270,11 +270,11 @@ class WebTest_Contact_CustomDataAddTest extends CiviSeleniumTestCase {
 
     //contact details section
     //fill in first name
-    $firstName = 'Jimmy'.substr(sha1(rand()), 0, 7);
+    $firstName = 'Jimmy' . substr(sha1(rand()), 0, 7);
     $this->type('first_name', $firstName);
 
     //fill in last name
-    $lastName = 'Page'.substr(sha1(rand()), 0, 7);
+    $lastName = 'Page' . substr(sha1(rand()), 0, 7);
     $this->type('last_name', $lastName);
 
     //fill in email id
@@ -284,7 +284,7 @@ class WebTest_Contact_CustomDataAddTest extends CiviSeleniumTestCase {
     $this->type("phone_1_phone", "2222-4444");
 
     $this->click("xpath=//table//tr/td/label[text()=\"$customField\"]");
-    $value = "custom".rand();
+    $value = "custom" . rand();
     $this->type("xpath=//table//tr/td/label[text()=\"$customField\"]/../following-sibling::td/input", $value);
 
     //check for matching contact
@@ -317,7 +317,7 @@ class WebTest_Contact_CustomDataAddTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent("xpath=//ul[@id='actions']/li[2]/a/span");
     $this->clickLink("xpath=//ul[@id='actions']/li[2]/a/span");
     $this->click("xpath=//table//tr/td/label[text()=\"$customField\"]");
-    $value1 = "custom_1".rand();
+    $value1 = "custom_1" . rand();
     $this->type("xpath=//table//tr/td/label[text()=\"$customField\"]/../following-sibling::td/input", $value1);
     $this->click("_qf_Contact_upload_view-bottom");
     $this->waitForPageToLoad($this->getTimeoutMsec());
index d79c2b4d38cd3a6ec561e58a2f62d44ae43f76cd..3eb09cb810f06e71165913518ca439dbbd40e586 100644 (file)
@@ -242,7 +242,7 @@ class WebTest_Contact_GroupAddTest extends CiviSeleniumTestCase {
 
     //Create contact.
     $group = "Advisory Board";
-    $firstName = "Adams".substr(sha1(rand()), 0, 4);
+    $firstName = "Adams" . substr(sha1(rand()), 0, 4);
     $lastName = substr(sha1(rand()), 0, 4);
     $email = "{$lastName}.{$firstName}@example.org";
     $this->type('first_name', $firstName);
index 21d8685cd67883a72fe81dec0be5f4bb522d8efe..c5b03066ef056d9eb4a8d217638aa71d8715dc9f 100644 (file)
@@ -204,7 +204,7 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
     $this->openCiviPage("contact/add", "reset=1&ct=Individual");
     $this->waitForElementPresent('_qf_Contact_cancel-bottom');
     //fill in first name
-    $firstName = "Anderson".substr(sha1(rand()), 0, 4);
+    $firstName = "Anderson" . substr(sha1(rand()), 0, 4);
     $this->type('first_name', $firstName);
 
     //fill in last name
@@ -226,7 +226,7 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
     $this->openCiviPage("contact/add", "reset=1&ct=Individual");
     $this->waitForElementPresent('_qf_Contact_cancel-bottom');
 
-    $fName = "John".substr(sha1(rand()), 0, 4);
+    $fName = "John" . substr(sha1(rand()), 0, 4);
     $this->type('first_name', $fName);
     $lName = substr(sha1(rand()), 0, 4);
     $this->type('last_name', $lName);
@@ -504,9 +504,9 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
 
     // add contact1 and its duplicate
     //first name
-    $firstName = "Kerry".substr(sha1(rand()), 0, 7);
+    $firstName = "Kerry" . substr(sha1(rand()), 0, 7);
     //last name
-    $lastName = "King".substr(sha1(rand()), 0, 7);
+    $lastName = "King" . substr(sha1(rand()), 0, 7);
     $this->_createContacts($firstName, $lastName);
 
     //add contact2 and its duplicate
@@ -514,11 +514,11 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
     $this->openCiviPage("contact/add", "reset=1&ct=Individual");
 
     //fill in first name
-    $firstName1 = "Kurt".substr(sha1(rand()), 0, 7);
+    $firstName1 = "Kurt" . substr(sha1(rand()), 0, 7);
     $this->type('first_name', $firstName1);
 
     //fill in last name
-    $lastName1 = "Cobain".substr(sha1(rand()), 0, 7);
+    $lastName1 = "Cobain" . substr(sha1(rand()), 0, 7);
     $this->type('last_name', $lastName1);
 
     //fill in email id
@@ -576,16 +576,16 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
 
     // add contact3 and its duplicate
     //fill in first name
-    $firstName2 = "David".substr(sha1(rand()), 0, 7);
+    $firstName2 = "David" . substr(sha1(rand()), 0, 7);
     //fill in last name
-    $lastName2 = "Gilmour".substr(sha1(rand()), 0, 7);
+    $lastName2 = "Gilmour" . substr(sha1(rand()), 0, 7);
     $this->_createContacts($firstName2, $lastName2);
 
     // add contact4 and its duplicate
     //fill in first name
-    $firstName3 = "Dave".substr(sha1(rand()), 0, 7);
+    $firstName3 = "Dave" . substr(sha1(rand()), 0, 7);
     //fill in last name
-    $lastName3 = "Mustaine".substr(sha1(rand()), 0, 7);
+    $lastName3 = "Mustaine" . substr(sha1(rand()), 0, 7);
     $this->_createContacts($firstName3, $lastName3);
 
     // Find and Merge Contacts with Supervised Rule
@@ -765,7 +765,7 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
     $this->webtestLogin();
 
     // build organisation name
-    $orgnaizationName = 'org_'.substr(sha1(rand()), 0, 7);
+    $orgnaizationName = 'org_' . substr(sha1(rand()), 0, 7);
 
     $contactIds = array();
     // create organization and its duplicate
index f200fdb267e923aa794afb5ec98a4f43bce666cd..292bee2cc713ab40ee198a855f4cbdf01814bee7 100644 (file)
@@ -187,7 +187,7 @@ class WebTest_Contact_RelationshipAddTest extends CiviSeleniumTestCase {
 
     //test for individual contact and household subtype contact
     //relationship
-    $typeb = "Household__". $householdSubtypeName;
+    $typeb = "Household__" .  $householdSubtypeName;
 
     //create a relationship type between different contact types
     $params = array(
index 83310dd7ad54ebc7fffb36e1f4689a71ea52bb43..cd7458f501d8e7c6d626d30d8532a8d80f4a777c 100644 (file)
@@ -49,8 +49,8 @@ class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase {
     // We're using Quick Add block on the main page for this.
     $firstName = substr(sha1(rand()), 0, 7);
     // Add new Financial Account
-    $orgName = 'Alberta '.substr(sha1(rand()), 0, 7);
-    $financialAccountTitle = 'Financial Account '.substr(sha1(rand()), 0, 4);
+    $orgName = 'Alberta ' . substr(sha1(rand()), 0, 7);
+    $financialAccountTitle = 'Financial Account ' . substr(sha1(rand()), 0, 4);
     $financialAccountDescription = "{$financialAccountTitle} Description";
     $accountingCode = 1033;
     $financialAccountType = 'Asset';
index 577bef100eef47ae346e6af03a2ccafe8b5e3bb2..262463b5641433321e143a5641b1aef3529e53c8 100644 (file)
@@ -236,14 +236,14 @@ class WebTest_Contribute_OnBehalfOfOrganization extends CiviSeleniumTestCase {
     $this->click("link=Add Field");
     $this->waitForElementPresent('_qf_Field_next-bottom');
     $this->select('field_name[0]', 'value=Membership');
-    $label = $checkboxFieldLabel.' :: '. $customGroupTitle;
+    $label = $checkboxFieldLabel . ' :: ' .  $customGroupTitle;
     $this->select('field_name[1]', "label=$label");
     $this->click('field_name[1]');
     $this->click('_qf_Field_next_new-bottom');
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
     $this->select('field_name[0]', 'value=Membership');
-    $label = $radioFieldLabel.' :: '. $customGroupTitle;
+    $label = $radioFieldLabel . ' :: ' .  $customGroupTitle;
     $this->select('field_name[1]', "label=$label");
     $this->click('field_name[1]');
     $this->click('_qf_Field_next-bottom');
@@ -251,8 +251,8 @@ class WebTest_Contribute_OnBehalfOfOrganization extends CiviSeleniumTestCase {
     $this->assertTrue($this->isTextPresent("Your CiviCRM Profile Field '{$radioFieldLabel}' has been saved to 'On Behalf Of Organization'."));
 
     //create organisation
-    $orgName = "Org WebAccess ". substr(sha1(rand()), 0, 7);
-    $orgEmail = "org". substr(sha1(rand()), 0, 7) . "@web.com";
+    $orgName = "Org WebAccess " .  substr(sha1(rand()), 0, 7);
+    $orgEmail = "org" .  substr(sha1(rand()), 0, 7) . "@web.com";
     $this->webtestAddOrganization($orgName, $orgEmail);
 
     $this->waitForPageToLoad($this->getTimeoutMsec());
@@ -482,8 +482,8 @@ class WebTest_Contribute_OnBehalfOfOrganization extends CiviSeleniumTestCase {
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
     //create organisation
-    $orgName = "Org WebAccess ". substr(sha1(rand()), 0, 7);
-    $orgEmail = "org". substr(sha1(rand()), 0, 7) . "@web.com";
+    $orgName = "Org WebAccess " .  substr(sha1(rand()), 0, 7);
+    $orgEmail = "org" .  substr(sha1(rand()), 0, 7) . "@web.com";
     $this->webtestAddOrganization($orgName, $orgEmail);
 
     $this->waitForPageToLoad($this->getTimeoutMsec());
@@ -564,8 +564,8 @@ class WebTest_Contribute_OnBehalfOfOrganization extends CiviSeleniumTestCase {
     $this->webtestLogin();
 
     //create organisation
-    $orgName = "Org WebAccess ". substr(sha1(rand()), 0, 7);
-    $orgEmail = "org". substr(sha1(rand()), 0, 7) . "@web.com";
+    $orgName = "Org WebAccess " .  substr(sha1(rand()), 0, 7);
+    $orgEmail = "org" .  substr(sha1(rand()), 0, 7) . "@web.com";
     $contactSubType = 'Sponsor';
     $this->webtestAddOrganization($orgName, $orgEmail, $contactSubType);
 
index 00c00d5c602c57d24cde2e4c5a4d6b1ffb136da1..071c3f815c2d2155bae971c303383e2906642b06 100644 (file)
@@ -44,8 +44,8 @@ class WebTest_Contribute_StandaloneAddTest extends CiviSeleniumTestCase {
     $this->webtestAddContact($softCreditFname, $softCreditLname, FALSE);
 
     // Add new Financial Account
-    $orgName = 'Alberta '.substr(sha1(rand()), 0, 7);
-    $financialAccountTitle = 'Financial Account '.substr(sha1(rand()), 0, 4);
+    $orgName = 'Alberta ' . substr(sha1(rand()), 0, 7);
+    $financialAccountTitle = 'Financial Account ' . substr(sha1(rand()), 0, 4);
     $financialAccountDescription = "{$financialAccountTitle} Description";
     $accountingCode = 1033;
     $financialAccountType = 'Asset';
index eaf03ff85760afa622fcf73953f77641de637581..4c4067eb77bf377c4aa1830d99ee9f9eacb2c9e6 100755 (executable)
@@ -114,13 +114,13 @@ class WebTest_Contribute_UpdateContributionTest extends CiviSeleniumTestCase {
     $from = 'Premiums';
     $to = 'Premiums inventory';
     $financialType = array(
-     'name' => 'Test Financial'.substr(sha1(rand()), 0, 7),
+     'name' => 'Test Financial' . substr(sha1(rand()), 0, 7),
      'is_reserved' => 1,
      'is_deductible' => 1,
     );
     $this->addeditFinancialType($financialType);
-    $this->waitForElementPresent("xpath=//div[@id='ltype']/div/table/tbody//tr/td[text()='".$financialType['name']."']/../td[7]/span/a[text()='Accounts']");
-    $this->click("xpath=//div[@id='ltype']/div/table/tbody//tr/td[text()='".$financialType['name']."']/../td[7]/span/a[text()='Accounts']");
+    $this->waitForElementPresent("xpath=//div[@id='ltype']/div/table/tbody//tr/td[text()='" . $financialType['name'] . "']/../td[7]/span/a[text()='Accounts']");
+    $this->click("xpath=//div[@id='ltype']/div/table/tbody//tr/td[text()='" . $financialType['name'] . "']/../td[7]/span/a[text()='Accounts']");
     $this->waitForElementPresent("xpath=//a[@id='newfinancialTypeAccount']");
     $this->clickAjaxLink("xpath=//a[@id='newfinancialTypeAccount']", "_qf_FinancialTypeAccount_cancel-botttom");
     $this->select("account_relationship", "label=Premiums Inventory Account is");
@@ -128,7 +128,7 @@ class WebTest_Contribute_UpdateContributionTest extends CiviSeleniumTestCase {
     $this->select("financial_account_id", "label=$to");
     $this->clickAjaxLink("_qf_FinancialTypeAccount_next-botttom", "xpath=//a[@id='newfinancialTypeAccount']");
 
-    $premiumName = 'Premium'.substr(sha1(rand()), 0, 7);
+    $premiumName = 'Premium' . substr(sha1(rand()), 0, 7);
     $amount = 500;
     $sku = 'SKU';
     $price = 300;
@@ -138,7 +138,7 @@ class WebTest_Contribute_UpdateContributionTest extends CiviSeleniumTestCase {
     $this->addPremium($premiumName, $sku, $amount, $price, $cost, $financialType['name']);
 
     //add second premium
-    $premiumName2 = 'Premium'.substr(sha1(rand()), 0, 7);
+    $premiumName2 = 'Premium' . substr(sha1(rand()), 0, 7);
     $amount2 = 600;
     $sku2 = 'SKU';
     $price2 = 200;
@@ -190,8 +190,8 @@ class WebTest_Contribute_UpdateContributionTest extends CiviSeleniumTestCase {
      'is_deductible' => 1,
     );
     $this->addeditFinancialType($financialType);
-    $this->waitForElementPresent("xpath=//div[@id='ltype']/div/table/tbody//tr/td[text()='".$financialType['name']."']/../td[7]/span/a[text()='Accounts']");
-    $this->click("xpath=//div[@id='ltype']/div/table/tbody//tr/td[text()='".$financialType['name']."']/../td[7]/span/a[text()='Accounts']");
+    $this->waitForElementPresent("xpath=//div[@id='ltype']/div/table/tbody//tr/td[text()='" . $financialType['name'] . "']/../td[7]/span/a[text()='Accounts']");
+    $this->click("xpath=//div[@id='ltype']/div/table/tbody//tr/td[text()='" . $financialType['name'] . "']/../td[7]/span/a[text()='Accounts']");
     $this->waitForElementPresent("xpath=//a[@id='newfinancialTypeAccount']");
     $this->clickLink("xpath=//a[@id='newfinancialTypeAccount']", "_qf_FinancialTypeAccount_cancel-botttom", FALSE);
 
@@ -244,7 +244,7 @@ class WebTest_Contribute_UpdateContributionTest extends CiviSeleniumTestCase {
 
   public function testChangePaymentInstrument() {
     $this->webtestLogin();
-    $label = 'TEST'.substr(sha1(rand()), 0, 7);
+    $label = 'TEST' . substr(sha1(rand()), 0, 7);
     $amount = 100.00;
     $financialAccount = CRM_Contribute_PseudoConstant::financialAccount();
     $to = array_search('Accounts Receivable', $financialAccount);
index 750f331043bb1df1b4d5c0ec4b7f45d8abb5d2d7..7937f91222bca291a800d8b3a43ac953d4d410d9 100644 (file)
@@ -952,7 +952,7 @@ WHERE ceft.entity_id = %1 AND ceft.entity_table = 'civicrm_contribution'";
     $this->type('first_name', $firstName);
 
     //fill in last name
-    $lastName = 'Recuron'.substr(sha1(rand()), 0, 7);
+    $lastName = 'Recuron' . substr(sha1(rand()), 0, 7);
     $this->type('last_name', $contactName);
     $email = $firstName . '@example.com';
     $this->type('email-Primary', $email);
index 2b37cf18faea7e6575d9fb39643a2dffcdc41a81..90f065836f134e6d05a74e244eb60797f6043de6 100644 (file)
@@ -179,7 +179,7 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
           break;
       }
       $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom');
-      $this->waitForText('crm-notification-container', "Price Field '".$label."' has been saved.");
+      $this->waitForText('crm-notification-container', "Price Field '" . $label . "' has been saved.");
     }
   }
 
@@ -459,7 +459,7 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
     // Adding contact with randomized first name (so we can then select that contact when creating event registration)
     // We're using Quick Add block on the main page for this.
     $firstName = substr(sha1(rand()), 0, 7);
-    $lastName = 'Anderson'. substr(sha1(rand()), 0, 7);
+    $lastName = 'Anderson' .  substr(sha1(rand()), 0, 7);
     $this->webtestAddContact($firstName, $lastName, TRUE);
     $contactName = "$lastName, $firstName";
     $displayName = "$firstName $lastName";
@@ -515,7 +515,7 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
     // Adding contact with randomized first name (so we can then select that contact when creating event registration)
     // We're using Quick Add block on the main page for this.
     $firstName = substr(sha1(rand()), 0, 7);
-    $lastName = 'Anderson'. substr(sha1(rand()), 0, 7);
+    $lastName = 'Anderson' .  substr(sha1(rand()), 0, 7);
     $this->webtestAddContact($firstName, $lastName, TRUE);
     $contactName = "$lastName, $firstName";
     $displayName = "$firstName $lastName";
index 07d34b3e4ad6343f18f1f9e489293167a8cf6aa4..59890c97848f2b51ed1019f5d16c7dc8bd89bf46 100644 (file)
@@ -73,7 +73,7 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
 
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('first_name', 'Mary');
-    $this->type('last_name', 'Jones'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jones' .  substr(sha1(rand()), 0, 5));
     $this->type('email-Primary', $email);
 
     // fill billing details and register
@@ -90,7 +90,7 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
     $this->click("xpath=//input[@class='crm-form-radio']");
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('first_name', 'Mary');
-    $this->type('last_name', 'Jones'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jones' .  substr(sha1(rand()), 0, 5));
     $this->type('email-Primary', $email);
 
     // fill billing details and register
index 98d4ffc6850ef3ca62abca44679eec8a23146f33..5bcd5f9eabcf3da43de9dc23a61f7af85e64cbc1 100644 (file)
@@ -170,7 +170,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->select("price_{$selectFieldId}", "value={$selectFieldOp1}");
 
     $this->type('first_name', 'Mary');
-    $this->type('last_name', 'Jones'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jones' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -198,7 +198,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     // exceed maximun count for text field, check for form rule
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '2');
     $this->type('first_name', 'Mary');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -366,7 +366,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '3');
 
     $this->type('first_name', 'Mary');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -396,7 +396,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     // check for form rule
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '2');
     $this->type('first_name', 'Mary');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -564,7 +564,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '7');
 
     $this->type('first_name', 'Mary');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -585,7 +585,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '6');
 
     $this->type('first_name', 'Mary Add 2');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -606,7 +606,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '3');
 
     $this->type('first_name', 'Mary Add 2');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -650,7 +650,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '3');
 
     $this->type('first_name', 'Mary');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -681,7 +681,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '2');
 
     $this->type('first_name', 'Mary Add 1');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -856,7 +856,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '7');
 
     $this->type('first_name', 'Mary');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -877,7 +877,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '6');
 
     $this->type('first_name', 'Mary Add 1');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -898,7 +898,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '3');
 
     $this->type('first_name', 'Mary Add 2');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -942,7 +942,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '3');
 
     $this->type('first_name', 'Mary');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
@@ -973,7 +973,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@id='price_{$textFieldId}']", '2');
 
     $this->type('first_name', 'Mary Add 1');
-    $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+    $this->type('last_name', 'Jane' .  substr(sha1(rand()), 0, 5));
     $email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
     $this->type('email-Primary', $email);
 
index 276e8f33a16cd68fb7f6bf3b217bcb962a56f90e..5ba8143da8442103eda2237ef19b307e597a74dc 100644 (file)
@@ -75,7 +75,7 @@ class WebTest_Event_TellAFriendTest extends CiviSeleniumTestCase {
     $this->open($registerUrl);
     $this->waitForElementPresent('_qf_Register_upload-bottom');
 
-    $firstName = 'Jane' .substr(sha1(rand()), 0, 7);
+    $firstName = 'Jane'  . substr(sha1(rand()), 0, 7);
     $lastName = 'Doe' . substr(sha1(rand()), 0, 7);
     $this->type('first_name', "$firstName");
     $this->type('last_name', "$lastName");
index 72ebb4a37acde81749f8a8960f3bb1b6d785ab67..32c1c925363eb96f293c60924374d9968c4836b4 100644 (file)
@@ -122,9 +122,9 @@ class WebTest_Export_ContactTest extends ExportCiviSeleniumTestCase {
       1 => array(
         'First Name' => $firstContactName,
         'Last Name' => 'Smith',
-        'Email' => ''.strtolower($emailContactFirst).'',
+        'Email' => '' . strtolower($emailContactFirst) . '',
         'Sort Name' => $sortFirstName,
-        'Display Name' => $prefixLabelContactFrst.' '.$displayFirstName.' '.$suffixLabelContactFrst,
+        'Display Name' => $prefixLabelContactFrst . ' ' . $displayFirstName . ' ' . $suffixLabelContactFrst,
         'Individual Prefix' => $prefixLabelContactFrst,
         'Individual Suffix' => $suffixLabelContactFrst,
         'Gender' => $genderLabelContactFrst,
@@ -132,9 +132,9 @@ class WebTest_Export_ContactTest extends ExportCiviSeleniumTestCase {
       2 => array(
         'First Name' => $secondContactName,
         'Last Name' => 'John',
-        'Email' => ''.strtolower($emailContactSecond).'',
+        'Email' => '' . strtolower($emailContactSecond) . '',
         'Sort Name' => $sortSecondName,
-        'Display Name' => $prefixLabelContactScnd.' '.$displaySecondName.' '.$suffixLabelContactScnd,
+        'Display Name' => $prefixLabelContactScnd . ' ' . $displaySecondName . ' ' . $suffixLabelContactScnd,
         'Individual Prefix' => $prefixLabelContactScnd,
         'Individual Suffix' => $suffixLabelContactScnd,
         'Gender' => $genderLabelContactScnd,
@@ -441,7 +441,7 @@ class WebTest_Export_ContactTest extends ExportCiviSeleniumTestCase {
     $prefix = rand(1, 4);
     $suffix = rand(1, 8);
     $gender = rand(1, 3);
-    $genderLabel = "civicrm_gender_".$genderLabelArray[$gender]."_$gender";
+    $genderLabel = "civicrm_gender_" . $genderLabelArray[$gender] . "_$gender";
     $this->select("prefix_id", "value=$prefix");
     $this->select("suffix_id", "value=$suffix");
     $this->click("demographics");
index d81dfde532ae3ed0fe6f27def4e40205bf41a5c9..1f5a94bdf10f8e78e97273e852742601500d9ce8 100644 (file)
@@ -39,9 +39,9 @@ class WebTest_Financial_FinancialAccountTest extends CiviSeleniumTestCase {
     $this->webtestLogin();
 
     // Add new Financial Account
-    $orgName = 'Alberta '.substr(sha1(rand()), 0, 7);
+    $orgName = 'Alberta ' . substr(sha1(rand()), 0, 7);
     $uniqueName = explode(" ", $orgName);
-    $financialAccountTitle = 'Financial Account '.substr(sha1(rand()), 0, 4);
+    $financialAccountTitle = 'Financial Account ' . substr(sha1(rand()), 0, 4);
     $financialAccountDescription = "{$financialAccountTitle} Description";
     $accountingCode = 1033;
     $financialAccountType = 'Liability';
@@ -96,7 +96,7 @@ class WebTest_Financial_FinancialAccountTest extends CiviSeleniumTestCase {
     $financialAccountType = 'Liability';
 
     if ($orgNameEdit) {
-      $orgNameEdit = 'NGO '.substr(sha1(rand()), 0, 7);
+      $orgNameEdit = 'NGO ' . substr(sha1(rand()), 0, 7);
       $this->webtestAddOrganization($orgNameEdit);
       $uniqueName = explode(" ", $orgNameEdit);
     }
index e2e6ff774f41e9c97ba9cf45b2fe948d496857b0..7e0f209275ee2d536a03af23f5fbd211157e9816 100644 (file)
@@ -41,7 +41,7 @@ class WebTest_Financial_FinancialAccountTypeTest extends CiviSeleniumTestCase {
     $this->webtestLogin();
 
     //Add new Financial Type
-    $financialType['name'] = 'FinancialType '.substr(sha1(rand()), 0, 4);
+    $financialType['name'] = 'FinancialType ' . substr(sha1(rand()), 0, 4);
     $financialType['is_deductible'] = TRUE;
     $financialType['is_reserved'] = FALSE;
     $this->addeditFinancialType($financialType);
@@ -92,7 +92,7 @@ class WebTest_Financial_FinancialAccountTypeTest extends CiviSeleniumTestCase {
 
     //edit financial type
     $financialType['oldname'] = $financialType['name'];
-    $financialType['name'] = 'Edited FinancialType '.substr(sha1(rand()), 0, 4);
+    $financialType['name'] = 'Edited FinancialType ' . substr(sha1(rand()), 0, 4);
     $financialType['is_deductible'] = TRUE;
     $financialType['is_reserved'] = FALSE;
     $this->addeditFinancialType($financialType, 'Edit');
index a04925b129864a1e83d78599e9540191758ec99e..96067f6dbe4ea49b62ca6d90201af43ebe3685fd 100644 (file)
@@ -297,7 +297,7 @@ class WebTest_Import_AddressImportTest extends ImportCiviSeleniumTestCase {
   public function _createMultipleValueCustomField($customFieldName, $type) {
     $this->type('label', $customFieldName);
     $this->select("data_type[0]", "value=0");
-    $this->select("data_type[1]", "value=".$type);
+    $this->select("data_type[1]", "value=" . $type);
     $this->type("option_label_1", "label1");
     $this->type("option_value_1", "label1");
     $this->type("option_label_2", "label2");
index f47879097205e5ad8b472dbbb8722e2766eea134..66f16aeefdf4b5ecc6cd9ff1e8e3ef1555b74bb8 100644 (file)
@@ -108,19 +108,19 @@ class WebTest_Member_OfflineMembershipAddPricesetTest extends CiviSeleniumTestCa
     $this->select('html_type', "value={$fields[1]}");
     $options = array(
       1 => array(
-    'label' => $memTypeTitle1."_1",
+    'label' => $memTypeTitle1 . "_1",
          'membership_type_id' => $memTypeId1,
          'amount' => 50.00,
          'membership_num_terms' => 1,
       ),
       2 => array(
-        'label' => $memTypeTitle1."_2",
+        'label' => $memTypeTitle1 . "_2",
         'membership_type_id' => $memTypeId1,
         'amount' => 90.00,
         'membership_num_terms' => 2,
       ),
       3 => array(
-        'label' => $memTypeTitle1."_3",
+        'label' => $memTypeTitle1 . "_3",
         'membership_type_id' => $memTypeId1,
         'amount' => 120.00,
         'membership_num_terms' => 3,
index 26c5e13fe36e5d6bacae4a68d58ca0911bd5f5fe..8df6770af01828316569d593b1e3acaf9478436a 100644 (file)
@@ -119,19 +119,19 @@ class WebTest_Member_OnlineMembershipAddPricesetTest extends CiviSeleniumTestCas
     $this->select('html_type', "value={$fields[1]}");
     $options = array(
             1 => array(
-    'label' => $memTypeTitle1."_1",
+    'label' => $memTypeTitle1 . "_1",
               'membership_type_id' => $memTypeId1,
               'amount' => 50.00,
               'membership_num_terms' => 1,
             ),
             2 => array(
-              'label' => $memTypeTitle1."_2",
+              'label' => $memTypeTitle1 . "_2",
               'membership_type_id' => $memTypeId1,
               'amount' => 90.00,
               'membership_num_terms' => 2,
             ),
             3 => array(
-              'label' => $memTypeTitle1."_3",
+              'label' => $memTypeTitle1 . "_3",
               'membership_type_id' => $memTypeId1,
               'amount' => 120.00,
               'membership_num_terms' => 3,
index ddc81015a3281b5c7309c9c62df297faa317a9a9..5928e0952230c90658a5fc33b3586800a6a9d383 100644 (file)
@@ -143,7 +143,7 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
 
     // verify soft credit data
     $expected = array(
-      '1' => $giftMemberfirstName.' Memberson',
+      '1' => $giftMemberfirstName . ' Memberson',
       '2' => $totalAmount,
       '3' => 'Gift',
       '4' => 'Donation',
index 742014dc8d2b66ef524e15002e634821b13619b0..c281f7449082e9a57b05b8a142a7e924772074ee 100644 (file)
@@ -123,7 +123,7 @@ class WebTest_Profile_MultiRecordProfileAddTest extends CiviSeleniumTestCase {
     $this->select('field_name[0]', 'value=Contact');
     $this->click("//option[@value='Contact']");
     $this->click('field_name_1');
-    $this->select('field_name_1', 'label='.$params['textFieldLabel'].' :: '.$params['customGroupTitle']);
+    $this->select('field_name_1', 'label=' . $params['textFieldLabel'] . ' :: ' . $params['customGroupTitle']);
     if ($checkMultiRecord) {
       $this->click('is_multi_summary');
     }
@@ -143,7 +143,7 @@ class WebTest_Profile_MultiRecordProfileAddTest extends CiviSeleniumTestCase {
     $this->select('field_name[0]', 'value=Contact');
     $this->click("//option[@value='Contact']");
     $this->click('field_name_1');
-    $this->select('field_name_1', 'label='.$params['selectFieldLabel'].' :: '.$params['customGroupTitle']);
+    $this->select('field_name_1', 'label=' . $params['selectFieldLabel'] . ' :: ' . $params['customGroupTitle']);
     if ($checkMultiRecord) {
       $this->click('is_multi_summary');
     }
@@ -239,12 +239,12 @@ class WebTest_Profile_MultiRecordProfileAddTest extends CiviSeleniumTestCase {
     $this->click("//div[@id='custom--table-wrapper']/div/div/table/tbody/tr/td[3]/span/a[text()='Edit']");
     $this->waitForElementPresent("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']");
     $this->verifyText("//div[@id='custom--table-wrapper']/div/div/table/thead/tr/th[1]", preg_quote($params['textFieldLabel']));
-    $this->type("//div[@id='crm-profile-block']/div/div[2]/input[@class='crm-form-text required']", $recordNew['text'].'edit');
+    $this->type("//div[@id='crm-profile-block']/div/div[2]/input[@class='crm-form-text required']", $recordNew['text'] . 'edit');
     $this->click("css=.ui-dialog-buttonset button[data-identifier=_qf_Edit_next]");
-    $this->waitForText("//div[@id='custom--table-wrapper']/div/div/table/tbody/tr[1]/td[1]", $recordNew['text'].'edit');
+    $this->waitForText("//div[@id='custom--table-wrapper']/div/div/table/tbody/tr[1]/td[1]", $recordNew['text'] . 'edit');
     $editalertText = $this->getAlert();
     $this->assertEquals("Thank you. Your information has been saved.", $editalertText);
-    $this->verifyText("//div[@id='custom--table-wrapper']/div/div/table/tbody/tr[1]/td[1]", preg_quote($recordNew['text'].'edit'));
+    $this->verifyText("//div[@id='custom--table-wrapper']/div/div/table/tbody/tr[1]/td[1]", preg_quote($recordNew['text'] . 'edit'));
 
     // Check the delete functionality
     $this->click("//div[@id='custom--table-wrapper']/div/div/table/tbody/tr/td[3]/span/a[text()='Delete']");
@@ -256,7 +256,7 @@ class WebTest_Profile_MultiRecordProfileAddTest extends CiviSeleniumTestCase {
     $this->assertEquals("Deleted Your record has been deleted.", $delText);
 
     $this->click("//div[@id='custom--table-wrapper']/div/div/table/tbody/tr/td[3]/span/a[text()='View']");
-    $this->waitForText("css=.ui-dialog-title", 'View '.$params['customGroupTitle'] . ' Record');
+    $this->waitForText("css=.ui-dialog-title", 'View ' . $params['customGroupTitle'] . ' Record');
     $this->assertElementContainsText("css=.ui-dialog-content.crm-ajax-container", $params['textFieldLabel']);
     if ($checkSearchable) {
       $this->verifyElementNotPresent("//div[@id='profile-dialog']/div/div/div/div/div[1]/div[2]/a");
@@ -380,7 +380,7 @@ class WebTest_Profile_MultiRecordProfileAddTest extends CiviSeleniumTestCase {
       $this->type('first_name', $params['firstname']);
       $params['lastname'] = 'Anderson' . substr(sha1(rand()), 0, 3);
       $this->type('last_name', $params['lastname']);
-      $params['email'] = $params['firstname'].$params['lastname'].'@exa.com';
+      $params['email'] = $params['firstname'] . $params['lastname'] . '@exa.com';
       $this->type('email-Primary', $params['email']);
       $this->waitForElementPresent("//div[@id='crm-profile-block']//div/div[2]/select");
       $this->select("//div[@id='crm-profile-block']//div/div[2]/select", 'value=1');
index 2e1cc5208d9e72e8fc59c131edaa47594afcc4ef..d399f0f5624e5a57b47853a3eaddb6075bfe2b0d 100644 (file)
@@ -165,7 +165,7 @@ class WebTest_Profile_SearchTest extends CiviSeleniumTestCase {
     $uselink = explode('?', $this->getAttribute("xpath=//*[@id='field_page']/div[1]/a[4]@href"));
     $this->openCiviPage('profile/create', "$uselink[1]", '_qf_Edit_next');
     $lastName = substr(sha1(rand()), 0, 7);
-    $orgName = 'Organisation'.substr(sha1(rand()), 0, 7);
+    $orgName = 'Organisation' . substr(sha1(rand()), 0, 7);
 
     // Fill Last Name
     $this->type('last_name', $lastName);
index 8a28e6130e428815b9402ef5b369bd21f5b01622..66d974adfee4867e6a07a4dbaf03adb769e7903a 100644 (file)
@@ -161,7 +161,7 @@ class WebTest_Report_LoggingReportTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent("xpath=//div[@class='view-content']//div[@class='action-link']/a");
     $this->click("xpath=//div[@class='view-content']//div[@class='action-link']/a");
     $this->waitForElementPresent("_qf_Case_cancel-bottom");
-    $this->type('activity_subject', "subject".rand());
+    $this->type('activity_subject', "subject" . rand());
     $this->select('case_type_id', 'value=1');
     $this->click('_qf_Case_upload-bottom');
     $this->waitForElementPresent("xpath=//form[@id='Search']/div[2]/div/table/tbody/tr[2]/td[9]/span[1]/a[1][text()='Manage']");
index 63536847e4a4ebc8c6e83a5f5062e219cbe67020..ee2a248da84d926edb695233e70540897651f97f 100644 (file)
@@ -60,7 +60,7 @@ class api_v3_ActionScheduleTest extends CiviUnitTestCase {
     $scheduledStatus = CRM_Core_OptionGroup::getValue('activity_status', 'Scheduled', 'name');
     $mappingId = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_ActionMapping', 'activity_type', 'id', 'entity_value');
     $activityTypeId = CRM_Core_OptionGroup::getValue('activity_type', "Meeting", 'name');
-    $title = "simpleActionSchedule".substr(sha1(rand()), 0, 7);
+    $title = "simpleActionSchedule" . substr(sha1(rand()), 0, 7);
     $params = array(
       'title' => $title,
       'recipient' => $assigneeID,
@@ -98,7 +98,7 @@ class api_v3_ActionScheduleTest extends CiviUnitTestCase {
     $scheduledStatus = CRM_Core_OptionGroup::getValue('activity_status', 'Scheduled', 'name');
     $mappingId = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_ActionMapping', 'activity_type', 'id', 'entity_value');
     $activityTypeId = CRM_Core_OptionGroup::getValue('activity_type', "Meeting", 'name');
-    $title = "simpleActionSchedule".substr(sha1(rand()), 0, 7);
+    $title = "simpleActionSchedule" . substr(sha1(rand()), 0, 7);
     $params = array(
       'title' => $title,
       'recipient' => $assigneeID,
index d06a1a686204482e9cc37e103e91fab0ac699764..43e6d3c3f4efe7d484c8ea21cc2986ef6104dfd1 100644 (file)
@@ -195,7 +195,7 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase {
         $reportTemplates[] = array($report['value']);
       }
       else {
-        $reportTemplates[] = array($report['value']. " has existing issues :  " . $reportsToSkip[$report['value']]);
+        $reportTemplates[] = array($report['value'] .  " has existing issues :  " . $reportsToSkip[$report['value']]);
       }
     }
 
index 8d26054453329a327131de87f5794f9dc6bf6bf6..c8737c11c01e7901515469d1daa2074708a8f8ce 100644 (file)
@@ -58,7 +58,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
     $this->_orgId = $this->organizationCreate(NULL);
 
     $this->params = array(
-      'title' => "Test Contribution Page".substr(sha1(rand()), 0, 7),
+      'title' => "Test Contribution Page" . substr(sha1(rand()), 0, 7),
       'financial_type_id' => 1,
       'payment_processor' => 1,
       'currency' => 'NZD',
@@ -71,8 +71,8 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
     );
 
     $this->_priceSetParams = array(
-      'name' => 'tax_contribution'.substr(sha1(rand()), 0, 7),
-      'title' => 'contributiontax'.substr(sha1(rand()), 0, 7),
+      'name' => 'tax_contribution' . substr(sha1(rand()), 0, 7),
+      'title' => 'contributiontax' . substr(sha1(rand()), 0, 7),
       'is_active' => 1,
       'help_pre' => "Where does your goat sleep",
       'help_post' => "thank you for your time",
@@ -84,7 +84,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
     // Financial Account with 20% tax rate
     $financialAccountSetparams = array(
       #[domain_id] =>
-      'name' => 'vat full taxrate account'.substr(sha1(rand()), 0, 7),
+      'name' => 'vat full taxrate account' . substr(sha1(rand()), 0, 7),
       'contact_id' => $this->_orgId,
       'financial_account_type_id' => 2,
       'is_tax' => 1,
@@ -99,7 +99,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
 
     // Financial type having 'Sales Tax Account is' with liability financail account
     $financialType = array(
-      'name' => 'grassvariety1'.substr(sha1(rand()), 0, 7),
+      'name' => 'grassvariety1' . substr(sha1(rand()), 0, 7),
       'is_reserved' => 0,
       'is_active' => 1,
     );
@@ -115,7 +115,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
 
     // Financial type with 5% tax rate
     $financialAccHalftax = array(
-      'name' => 'vat half taxrate account'.substr(sha1(rand()), 0, 7),
+      'name' => 'vat half taxrate account' . substr(sha1(rand()), 0, 7),
       'contact_id' => $this->_orgId,
       'financial_account_type_id' => 2,
       'is_tax' => 1,
@@ -127,7 +127,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
     $halfFinancialAccount = CRM_Financial_BAO_FinancialAccount::add($financialAccHalftax);
     $this->halfFinancialAccId = $halfFinancialAccount->id;
     $halfFinancialtypeHalftax = array(
-      'name' => 'grassvariety2'.substr(sha1(rand()), 0, 7),
+      'name' => 'grassvariety2' . substr(sha1(rand()), 0, 7),
       'is_reserved' => 0,
       'is_active' => 1,
     );
@@ -160,7 +160,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
     // Payment Processor
     $paymentProceParams = array(
       'domain_id' => 1,
-      'name' => 'dummy'.substr(sha1(rand()), 0, 7),
+      'name' => 'dummy' . substr(sha1(rand()), 0, 7),
       'payment_processor_type_id' => 10,
       'financial_account_id' => 12,
       'is_active' => 1,