Merge pull request #4983 from colemanw/CRM-15842
authorcolemanw <coleman@civicrm.org>
Tue, 20 Jan 2015 18:14:16 +0000 (13:14 -0500)
committercolemanw <coleman@civicrm.org>
Tue, 20 Jan 2015 18:14:16 +0000 (13:14 -0500)
CRM-15842 - Improve custom field multiple record display options

1914 files changed:
CRM/ACL/API.php
CRM/ACL/BAO/ACL.php
CRM/ACL/BAO/Cache.php
CRM/ACL/BAO/EntityRole.php
CRM/ACL/Form/ACL.php
CRM/ACL/Form/ACLBasic.php
CRM/ACL/Form/EntityRole.php
CRM/ACL/Form/WordPress/Permissions.php
CRM/ACL/Page/ACL.php
CRM/ACL/Page/ACLBasic.php
CRM/ACL/Page/EntityRole.php
CRM/Activity/BAO/Activity.php
CRM/Activity/BAO/ActivityAssignment.php
CRM/Activity/BAO/ActivityContact.php
CRM/Activity/BAO/ActivityTarget.php
CRM/Activity/BAO/ICalendar.php
CRM/Activity/BAO/Query.php
CRM/Activity/Controller/Search.php
CRM/Activity/Form/Activity.php
CRM/Activity/Form/ActivityFilter.php
CRM/Activity/Form/ActivityLinks.php
CRM/Activity/Form/ActivityView.php
CRM/Activity/Form/Search.php
CRM/Activity/Form/Task.php
CRM/Activity/Form/Task/AddToTag.php
CRM/Activity/Form/Task/Batch.php
CRM/Activity/Form/Task/Delete.php
CRM/Activity/Form/Task/Email.php
CRM/Activity/Form/Task/FileOnCase.php
CRM/Activity/Form/Task/PickOption.php
CRM/Activity/Form/Task/PickProfile.php
CRM/Activity/Form/Task/Print.php
CRM/Activity/Form/Task/RemoveFromTag.php
CRM/Activity/Form/Task/SMS.php
CRM/Activity/Form/Task/SearchTaskHookSample.php
CRM/Activity/Import/Controller.php
CRM/Activity/Import/Field.php
CRM/Activity/Import/Form/DataSource.php
CRM/Activity/Import/Form/MapField.php
CRM/Activity/Import/Form/Preview.php
CRM/Activity/Import/Form/Summary.php
CRM/Activity/Import/Parser.php
CRM/Activity/Import/Parser/Activity.php
CRM/Activity/Page/AJAX.php
CRM/Activity/Page/Tab.php
CRM/Activity/Page/UserDashboard.php
CRM/Activity/Selector/Activity.php
CRM/Activity/Selector/Search.php
CRM/Activity/StateMachine/Search.php
CRM/Activity/Task.php
CRM/Admin/Form.php
CRM/Admin/Form/CMSUser.php
CRM/Admin/Form/ContactType.php
CRM/Admin/Form/Extensions.php
CRM/Admin/Form/Job.php
CRM/Admin/Form/LabelFormats.php
CRM/Admin/Form/LocationType.php
CRM/Admin/Form/MailSettings.php
CRM/Admin/Form/Mapping.php
CRM/Admin/Form/MessageTemplates.php
CRM/Admin/Form/Navigation.php
CRM/Admin/Form/OptionGroup.php
CRM/Admin/Form/Options.php
CRM/Admin/Form/ParticipantStatusType.php
CRM/Admin/Form/PaymentProcessor.php
CRM/Admin/Form/PaymentProcessorType.php
CRM/Admin/Form/PdfFormats.php
CRM/Admin/Form/Persistent.php
CRM/Admin/Form/Preferences.php
CRM/Admin/Form/Preferences/Address.php
CRM/Admin/Form/Preferences/Campaign.php
CRM/Admin/Form/Preferences/Contribute.php
CRM/Admin/Form/Preferences/Display.php
CRM/Admin/Form/Preferences/Event.php
CRM/Admin/Form/Preferences/Mailing.php
CRM/Admin/Form/Preferences/Member.php
CRM/Admin/Form/Preferences/Multisite.php
CRM/Admin/Form/PreferencesDate.php
CRM/Admin/Form/RelationshipType.php
CRM/Admin/Form/ScheduleReminders.php
CRM/Admin/Form/Setting.php
CRM/Admin/Form/Setting/Component.php
CRM/Admin/Form/Setting/Date.php
CRM/Admin/Form/Setting/Debugging.php
CRM/Admin/Form/Setting/Localization.php
CRM/Admin/Form/Setting/Mail.php
CRM/Admin/Form/Setting/Mapping.php
CRM/Admin/Form/Setting/Miscellaneous.php
CRM/Admin/Form/Setting/Path.php
CRM/Admin/Form/Setting/Search.php
CRM/Admin/Form/Setting/Smtp.php
CRM/Admin/Form/Setting/UF.php
CRM/Admin/Form/Setting/UpdateConfigBackend.php
CRM/Admin/Form/Setting/Url.php
CRM/Admin/Form/Tag.php
CRM/Admin/Form/WordReplacements.php
CRM/Admin/Page/AJAX.php
CRM/Admin/Page/APIDoc.php
CRM/Admin/Page/APIExplorer.php
CRM/Admin/Page/Access.php
CRM/Admin/Page/Admin.php
CRM/Admin/Page/CMSUser.php
CRM/Admin/Page/ConfigTaskList.php
CRM/Admin/Page/ContactType.php
CRM/Admin/Page/EventTemplate.php
CRM/Admin/Page/Extensions.php
CRM/Admin/Page/ExtensionsUpgrade.php
CRM/Admin/Page/Job.php
CRM/Admin/Page/JobLog.php
CRM/Admin/Page/LabelFormats.php
CRM/Admin/Page/LocationType.php
CRM/Admin/Page/MailSettings.php
CRM/Admin/Page/Mapping.php
CRM/Admin/Page/MessageTemplates.php
CRM/Admin/Page/Navigation.php
CRM/Admin/Page/Options.php
CRM/Admin/Page/ParticipantStatusType.php
CRM/Admin/Page/PaymentProcessor.php
CRM/Admin/Page/PaymentProcessorType.php
CRM/Admin/Page/PdfFormats.php
CRM/Admin/Page/Persistent.php
CRM/Admin/Page/PreferencesDate.php
CRM/Admin/Page/RelationshipType.php
CRM/Admin/Page/ScheduleReminders.php
CRM/Admin/Page/Setting.php
CRM/Admin/Page/Tag.php
CRM/Badge/BAO/Badge.php
CRM/Badge/BAO/Layout.php
CRM/Badge/Form/Layout.php
CRM/Badge/Page/AJAX.php
CRM/Badge/Page/Layout.php
CRM/Batch/BAO/Batch.php
CRM/Batch/Form/Batch.php
CRM/Batch/Form/Entry.php
CRM/Batch/Form/Search.php
CRM/Batch/Page/AJAX.php
CRM/Batch/Page/Batch.php
CRM/Bridge/OG/CiviCRM.php
CRM/Bridge/OG/Drupal.php
CRM/Bridge/OG/Utils.php
CRM/Campaign/BAO/Campaign.php
CRM/Campaign/BAO/Petition.php
CRM/Campaign/BAO/Query.php
CRM/Campaign/BAO/Survey.php
CRM/Campaign/Config.php
CRM/Campaign/Controller/Search.php
CRM/Campaign/Form/Campaign.php
CRM/Campaign/Form/Gotv.php
CRM/Campaign/Form/Petition.php
CRM/Campaign/Form/Petition/Signature.php
CRM/Campaign/Form/Search.php
CRM/Campaign/Form/Search/Campaign.php
CRM/Campaign/Form/Search/Petition.php
CRM/Campaign/Form/Search/Survey.php
CRM/Campaign/Form/Survey.php
CRM/Campaign/Form/Survey/Delete.php
CRM/Campaign/Form/Survey/Main.php
CRM/Campaign/Form/Survey/Questions.php
CRM/Campaign/Form/Survey/Results.php
CRM/Campaign/Form/Survey/TabHeader.php
CRM/Campaign/Form/SurveyType.php
CRM/Campaign/Form/Task.php
CRM/Campaign/Form/Task/Interview.php
CRM/Campaign/Form/Task/Print.php
CRM/Campaign/Form/Task/Release.php
CRM/Campaign/Form/Task/Reserve.php
CRM/Campaign/Form/Task/Result.php
CRM/Campaign/Info.php
CRM/Campaign/Page/AJAX.php
CRM/Campaign/Page/Campaign.php
CRM/Campaign/Page/DashBoard.php
CRM/Campaign/Page/Petition.php
CRM/Campaign/Page/Petition/Confirm.php
CRM/Campaign/Page/Petition/ThankYou.php
CRM/Campaign/Page/Survey.php
CRM/Campaign/Page/SurveyType.php
CRM/Campaign/Page/Vote.php
CRM/Campaign/PseudoConstant.php
CRM/Campaign/Selector/Search.php
CRM/Campaign/StateMachine/Search.php
CRM/Campaign/Task.php
CRM/Case/Audit/Audit.php
CRM/Case/Audit/AuditConfig.php
CRM/Case/BAO/Case.php
CRM/Case/BAO/CaseType.php
CRM/Case/BAO/Query.php
CRM/Case/Config.php
CRM/Case/Controller/Search.php
CRM/Case/Form/Activity.php
CRM/Case/Form/Activity/ChangeCaseStartDate.php
CRM/Case/Form/Activity/ChangeCaseStatus.php
CRM/Case/Form/Activity/ChangeCaseType.php
CRM/Case/Form/Activity/LinkCases.php
CRM/Case/Form/Activity/OpenCase.php
CRM/Case/Form/ActivityChangeStatus.php
CRM/Case/Form/ActivityToCase.php
CRM/Case/Form/ActivityView.php
CRM/Case/Form/Case.php
CRM/Case/Form/CaseView.php
CRM/Case/Form/CustomData.php
CRM/Case/Form/EditClient.php
CRM/Case/Form/Report.php
CRM/Case/Form/Search.php
CRM/Case/Form/Task.php
CRM/Case/Form/Task/Delete.php
CRM/Case/Form/Task/Print.php
CRM/Case/Form/Task/Restore.php
CRM/Case/Form/Task/Result.php
CRM/Case/Form/Task/SearchTaskHookSample.php
CRM/Case/Info.php
CRM/Case/ManagedEntities.php
CRM/Case/Page/AJAX.php
CRM/Case/Page/CaseDetails.php
CRM/Case/Page/DashBoard.php
CRM/Case/Page/Tab.php
CRM/Case/PseudoConstant.php
CRM/Case/Selector/Search.php
CRM/Case/StateMachine/Search.php
CRM/Case/Task.php
CRM/Case/XMLProcessor.php
CRM/Case/XMLProcessor/Process.php
CRM/Case/XMLProcessor/Report.php
CRM/Case/XMLProcessor/Settings.php
CRM/Case/XMLRepository.php
CRM/Contact/BAO/Contact.php
CRM/Contact/BAO/Contact/Location.php
CRM/Contact/BAO/Contact/Optimizer.php
CRM/Contact/BAO/Contact/Permission.php
CRM/Contact/BAO/Contact/Utils.php
CRM/Contact/BAO/ContactType.php
CRM/Contact/BAO/DashboardContact.php
CRM/Contact/BAO/Group.php
CRM/Contact/BAO/GroupContact.php
CRM/Contact/BAO/GroupContactCache.php
CRM/Contact/BAO/GroupNesting.php
CRM/Contact/BAO/GroupNestingCache.php
CRM/Contact/BAO/GroupOrganization.php
CRM/Contact/BAO/Household.php
CRM/Contact/BAO/Individual.php
CRM/Contact/BAO/ProximityQuery.php
CRM/Contact/BAO/Query.php
CRM/Contact/BAO/Query/Hook.php
CRM/Contact/BAO/Query/Interface.php
CRM/Contact/BAO/Relationship.php
CRM/Contact/BAO/RelationshipType.php
CRM/Contact/BAO/SavedSearch.php
CRM/Contact/BAO/SearchCustom.php
CRM/Contact/BAO/SubscriptionHistory.php
CRM/Contact/Controller/Search.php
CRM/Contact/Form/Contact.php
CRM/Contact/Form/CustomData.php
CRM/Contact/Form/DedupeFind.php
CRM/Contact/Form/DedupeRules.php
CRM/Contact/Form/Domain.php
CRM/Contact/Form/Edit/Address.php
CRM/Contact/Form/Edit/CommunicationPreferences.php
CRM/Contact/Form/Edit/CustomData.php
CRM/Contact/Form/Edit/Demographics.php
CRM/Contact/Form/Edit/Email.php
CRM/Contact/Form/Edit/Household.php
CRM/Contact/Form/Edit/IM.php
CRM/Contact/Form/Edit/Individual.php
CRM/Contact/Form/Edit/Lock.php
CRM/Contact/Form/Edit/Notes.php
CRM/Contact/Form/Edit/OpenID.php
CRM/Contact/Form/Edit/Organization.php
CRM/Contact/Form/Edit/Phone.php
CRM/Contact/Form/Edit/TagsAndGroups.php
CRM/Contact/Form/Edit/Website.php
CRM/Contact/Form/GroupContact.php
CRM/Contact/Form/Inline.php
CRM/Contact/Form/Inline/Address.php
CRM/Contact/Form/Inline/CommunicationPreferences.php
CRM/Contact/Form/Inline/ContactInfo.php
CRM/Contact/Form/Inline/ContactName.php
CRM/Contact/Form/Inline/CustomData.php
CRM/Contact/Form/Inline/Demographics.php
CRM/Contact/Form/Inline/Email.php
CRM/Contact/Form/Inline/IM.php
CRM/Contact/Form/Inline/Lock.php
CRM/Contact/Form/Inline/OpenID.php
CRM/Contact/Form/Inline/Phone.php
CRM/Contact/Form/Inline/Website.php
CRM/Contact/Form/Location.php
CRM/Contact/Form/Merge.php
CRM/Contact/Form/ProfileContact.php
CRM/Contact/Form/RelatedContact.php
CRM/Contact/Form/Relationship.php
CRM/Contact/Form/Search.php
CRM/Contact/Form/Search/Advanced.php
CRM/Contact/Form/Search/Basic.php
CRM/Contact/Form/Search/Builder.php
CRM/Contact/Form/Search/Criteria.php
CRM/Contact/Form/Search/Custom.php
CRM/Contact/Form/Search/Custom/ActivitySearch.php
CRM/Contact/Form/Search/Custom/Base.php
CRM/Contact/Form/Search/Custom/Basic.php
CRM/Contact/Form/Search/Custom/ContribSYBNT.php
CRM/Contact/Form/Search/Custom/ContributionAggregate.php
CRM/Contact/Form/Search/Custom/DateAdded.php
CRM/Contact/Form/Search/Custom/EmployerListing.php
CRM/Contact/Form/Search/Custom/EventAggregate.php
CRM/Contact/Form/Search/Custom/FullText.php
CRM/Contact/Form/Search/Custom/FullText/AbstractPartialQuery.php
CRM/Contact/Form/Search/Custom/FullText/Activity.php
CRM/Contact/Form/Search/Custom/FullText/Case.php
CRM/Contact/Form/Search/Custom/FullText/Contact.php
CRM/Contact/Form/Search/Custom/FullText/Contribution.php
CRM/Contact/Form/Search/Custom/FullText/Membership.php
CRM/Contact/Form/Search/Custom/FullText/Participant.php
CRM/Contact/Form/Search/Custom/Group.php
CRM/Contact/Form/Search/Custom/MultipleValues.php
CRM/Contact/Form/Search/Custom/PostalMailing.php
CRM/Contact/Form/Search/Custom/PriceSet.php
CRM/Contact/Form/Search/Custom/Proximity.php
CRM/Contact/Form/Search/Custom/RandomSegment.php
CRM/Contact/Form/Search/Custom/Sample.php
CRM/Contact/Form/Search/Custom/TagContributions.php
CRM/Contact/Form/Search/Custom/ZipCodeRange.php
CRM/Contact/Form/Search/Interface.php
CRM/Contact/Form/Task.php
CRM/Contact/Form/Task/AddToGroup.php
CRM/Contact/Form/Task/AddToHousehold.php
CRM/Contact/Form/Task/AddToOrganization.php
CRM/Contact/Form/Task/AddToTag.php
CRM/Contact/Form/Task/AlterPreferences.php
CRM/Contact/Form/Task/Batch.php
CRM/Contact/Form/Task/Delete.php
CRM/Contact/Form/Task/Email.php
CRM/Contact/Form/Task/EmailCommon.php
CRM/Contact/Form/Task/HookSample.php
CRM/Contact/Form/Task/Label.php
CRM/Contact/Form/Task/LabelCommon.php
CRM/Contact/Form/Task/Map.php
CRM/Contact/Form/Task/Map/Event.php
CRM/Contact/Form/Task/Merge.php
CRM/Contact/Form/Task/PDF.php
CRM/Contact/Form/Task/PDFLetterCommon.php
CRM/Contact/Form/Task/PickProfile.php
CRM/Contact/Form/Task/Print.php
CRM/Contact/Form/Task/ProximityCommon.php
CRM/Contact/Form/Task/RemoveFromGroup.php
CRM/Contact/Form/Task/RemoveFromTag.php
CRM/Contact/Form/Task/Result.php
CRM/Contact/Form/Task/SMS.php
CRM/Contact/Form/Task/SMSCommon.php
CRM/Contact/Form/Task/SaveSearch.php
CRM/Contact/Form/Task/SaveSearch/Update.php
CRM/Contact/Form/Task/Unhold.php
CRM/Contact/Form/Task/Useradd.php
CRM/Contact/Import/Controller.php
CRM/Contact/Import/Field.php
CRM/Contact/Import/Form/DataSource.php
CRM/Contact/Import/Form/MapField.php
CRM/Contact/Import/Form/Preview.php
CRM/Contact/Import/Form/Summary.php
CRM/Contact/Import/ImportJob.php
CRM/Contact/Import/Importer.php
CRM/Contact/Import/Page/AJAX.php
CRM/Contact/Import/Parser.php
CRM/Contact/Import/Parser/Contact.php
CRM/Contact/Page/AJAX.php
CRM/Contact/Page/CustomSearch.php
CRM/Contact/Page/DashBoard.php
CRM/Contact/Page/Dashlet.php
CRM/Contact/Page/DedupeException.php
CRM/Contact/Page/DedupeFind.php
CRM/Contact/Page/DedupeRules.php
CRM/Contact/Page/ImageFile.php
CRM/Contact/Page/Inline/Actions.php
CRM/Contact/Page/Inline/Address.php
CRM/Contact/Page/Inline/CommunicationPreferences.php
CRM/Contact/Page/Inline/ContactInfo.php
CRM/Contact/Page/Inline/ContactName.php
CRM/Contact/Page/Inline/CustomData.php
CRM/Contact/Page/Inline/Demographics.php
CRM/Contact/Page/Inline/Email.php
CRM/Contact/Page/Inline/IM.php
CRM/Contact/Page/Inline/OpenID.php
CRM/Contact/Page/Inline/Phone.php
CRM/Contact/Page/Inline/Website.php
CRM/Contact/Page/SavedSearch.php
CRM/Contact/Page/Task.php
CRM/Contact/Page/View.php
CRM/Contact/Page/View/ContactSmartGroup.php
CRM/Contact/Page/View/CustomData.php
CRM/Contact/Page/View/GroupContact.php
CRM/Contact/Page/View/Log.php
CRM/Contact/Page/View/Note.php
CRM/Contact/Page/View/Print.php
CRM/Contact/Page/View/Relationship.php
CRM/Contact/Page/View/Summary.php
CRM/Contact/Page/View/Sunlight.php
CRM/Contact/Page/View/Tag.php
CRM/Contact/Page/View/UserDashBoard.php
CRM/Contact/Page/View/UserDashBoard/GroupContact.php
CRM/Contact/Page/View/Useradd.php
CRM/Contact/Page/View/Vcard.php
CRM/Contact/Selector.php
CRM/Contact/Selector/Controller.php
CRM/Contact/Selector/Custom.php
CRM/Contact/StateMachine/Search.php
CRM/Contact/Task.php
CRM/Contribute/BAO/Contribution.php
CRM/Contribute/BAO/Contribution/Utils.php
CRM/Contribute/BAO/ContributionPage.php
CRM/Contribute/BAO/ContributionRecur.php
CRM/Contribute/BAO/ContributionSoft.php
CRM/Contribute/BAO/ManagePremiums.php
CRM/Contribute/BAO/Premium.php
CRM/Contribute/BAO/Query.php
CRM/Contribute/BAO/Widget.php
CRM/Contribute/Config.php
CRM/Contribute/Controller/Contribution.php
CRM/Contribute/Controller/ContributionPage.php
CRM/Contribute/Controller/Search.php
CRM/Contribute/Exception/InactiveContributionPageException.php
CRM/Contribute/Form.php
CRM/Contribute/Form/AbstractEditPayment.php
CRM/Contribute/Form/AdditionalInfo.php
CRM/Contribute/Form/AdditionalPayment.php
CRM/Contribute/Form/CancelSubscription.php
CRM/Contribute/Form/Contribution.php
CRM/Contribute/Form/Contribution/Confirm.php
CRM/Contribute/Form/Contribution/Main.php
CRM/Contribute/Form/Contribution/OnBehalfOf.php
CRM/Contribute/Form/Contribution/ThankYou.php
CRM/Contribute/Form/ContributionBase.php
CRM/Contribute/Form/ContributionCharts.php
CRM/Contribute/Form/ContributionPage.php
CRM/Contribute/Form/ContributionPage/AddProduct.php
CRM/Contribute/Form/ContributionPage/Amount.php
CRM/Contribute/Form/ContributionPage/Custom.php
CRM/Contribute/Form/ContributionPage/Delete.php
CRM/Contribute/Form/ContributionPage/Premium.php
CRM/Contribute/Form/ContributionPage/Settings.php
CRM/Contribute/Form/ContributionPage/TabHeader.php
CRM/Contribute/Form/ContributionPage/ThankYou.php
CRM/Contribute/Form/ContributionPage/Widget.php
CRM/Contribute/Form/ContributionView.php
CRM/Contribute/Form/ManagePremiums.php
CRM/Contribute/Form/Search.php
CRM/Contribute/Form/SearchContribution.php
CRM/Contribute/Form/SoftCredit.php
CRM/Contribute/Form/Task.php
CRM/Contribute/Form/Task/Batch.php
CRM/Contribute/Form/Task/Delete.php
CRM/Contribute/Form/Task/Email.php
CRM/Contribute/Form/Task/Invoice.php
CRM/Contribute/Form/Task/PDF.php
CRM/Contribute/Form/Task/PDFLetter.php
CRM/Contribute/Form/Task/PDFLetterCommon.php
CRM/Contribute/Form/Task/PickProfile.php
CRM/Contribute/Form/Task/Print.php
CRM/Contribute/Form/Task/Result.php
CRM/Contribute/Form/Task/SearchTaskHookSample.php
CRM/Contribute/Form/Task/Status.php
CRM/Contribute/Form/UpdateBilling.php
CRM/Contribute/Form/UpdateSubscription.php
CRM/Contribute/Import/Controller.php
CRM/Contribute/Import/Field.php
CRM/Contribute/Import/Form/DataSource.php
CRM/Contribute/Import/Form/MapField.php
CRM/Contribute/Import/Form/Preview.php
CRM/Contribute/Import/Form/Summary.php
CRM/Contribute/Import/Parser.php
CRM/Contribute/Import/Parser/Contribution.php
CRM/Contribute/Info.php
CRM/Contribute/Page/ContributionPage.php
CRM/Contribute/Page/ContributionRecur.php
CRM/Contribute/Page/DashBoard.php
CRM/Contribute/Page/ManagePremiums.php
CRM/Contribute/Page/PaymentInfo.php
CRM/Contribute/Page/Premium.php
CRM/Contribute/Page/SubscriptionStatus.php
CRM/Contribute/Page/Tab.php
CRM/Contribute/Page/UserDashboard.php
CRM/Contribute/PseudoConstant.php
CRM/Contribute/Selector/Search.php
CRM/Contribute/StateMachine/Contribution.php
CRM/Contribute/StateMachine/ContributionPage.php
CRM/Contribute/StateMachine/Search.php
CRM/Contribute/Task.php
CRM/Core/Action.php
CRM/Core/BAO/ActionLog.php
CRM/Core/BAO/ActionSchedule.php
CRM/Core/BAO/Address.php
CRM/Core/BAO/Block.php
CRM/Core/BAO/CMSUser.php
CRM/Core/BAO/Cache.php
CRM/Core/BAO/ConfigSetting.php
CRM/Core/BAO/CustomField.php
CRM/Core/BAO/CustomGroup.php
CRM/Core/BAO/CustomOption.php
CRM/Core/BAO/CustomQuery.php
CRM/Core/BAO/CustomValue.php
CRM/Core/BAO/CustomValueTable.php
CRM/Core/BAO/Dashboard.php
CRM/Core/BAO/Discount.php
CRM/Core/BAO/Domain.php
CRM/Core/BAO/Email.php
CRM/Core/BAO/EntityTag.php
CRM/Core/BAO/Extension.php
CRM/Core/BAO/File.php
CRM/Core/BAO/FinancialTrxn.php
CRM/Core/BAO/IM.php
CRM/Core/BAO/Job.php
CRM/Core/BAO/LabelFormat.php
CRM/Core/BAO/Location.php
CRM/Core/BAO/LocationType.php
CRM/Core/BAO/Log.php
CRM/Core/BAO/MailSettings.php
CRM/Core/BAO/Mapping.php
CRM/Core/BAO/MessageTemplate.php
CRM/Core/BAO/Navigation.php
CRM/Core/BAO/Note.php
CRM/Core/BAO/OpenID.php
CRM/Core/BAO/OptionGroup.php
CRM/Core/BAO/OptionValue.php
CRM/Core/BAO/PaperSize.php
CRM/Core/BAO/PdfFormat.php
CRM/Core/BAO/Persistent.php
CRM/Core/BAO/Phone.php
CRM/Core/BAO/Preferences.php
CRM/Core/BAO/PreferencesDate.php
CRM/Core/BAO/PrevNextCache.php
CRM/Core/BAO/RecurringEntity.php
CRM/Core/BAO/SchemaHandler.php
CRM/Core/BAO/Setting.php
CRM/Core/BAO/Tag.php
CRM/Core/BAO/UFField.php
CRM/Core/BAO/UFGroup.php
CRM/Core/BAO/UFJoin.php
CRM/Core/BAO/UFMatch.php
CRM/Core/BAO/Website.php
CRM/Core/BAO/WordReplacement.php
CRM/Core/Base.php
CRM/Core/Block.php
CRM/Core/ClassLoader.php
CRM/Core/CodeGen/BaseTask.php
CRM/Core/CodeGen/Config.php
CRM/Core/CodeGen/I18n.php
CRM/Core/CodeGen/ITask.php
CRM/Core/CodeGen/Main.php
CRM/Core/CodeGen/Reflection.php
CRM/Core/CodeGen/Schema.php
CRM/Core/CodeGen/Specification.php
CRM/Core/CodeGen/Test.php
CRM/Core/CodeGen/Util/File.php
CRM/Core/CodeGen/Util/Smarty.php
CRM/Core/CodeGen/Util/Template.php
CRM/Core/CodeGen/Util/Xml.php
CRM/Core/CommunityMessages.php
CRM/Core/Component.php
CRM/Core/Component/Config.php
CRM/Core/Component/Info.php
CRM/Core/Config.php
CRM/Core/Config/Defaults.php
CRM/Core/Config/Variables.php
CRM/Core/Controller.php
CRM/Core/Controller/Simple.php
CRM/Core/DAO/permissions.php
CRM/Core/Error.php
CRM/Core/Exception.php
CRM/Core/FileSearchInterface.php
CRM/Core/Form.php
CRM/Core/Form/Date.php
CRM/Core/Form/RecurringEntity.php
CRM/Core/Form/Renderer.php
CRM/Core/Form/Search.php
CRM/Core/Form/Tag.php
CRM/Core/HTMLInputCoder.php
CRM/Core/I18n.php
CRM/Core/I18n/Form.php
CRM/Core/I18n/NativeGettext.php
CRM/Core/I18n/PseudoConstant.php
CRM/Core/I18n/Schema.php
CRM/Core/I18n/SchemaStructure_2_2_0.php
CRM/Core/I18n/SchemaStructure_3_0_alpha1.php
CRM/Core/I18n/SchemaStructure_3_0_beta1.php
CRM/Core/I18n/SchemaStructure_3_0_beta4.php
CRM/Core/I18n/SchemaStructure_3_1_alpha1.php
CRM/Core/I18n/SchemaStructure_3_1_beta2.php
CRM/Core/I18n/SchemaStructure_3_2_beta4.php
CRM/Core/I18n/SchemaStructure_3_3_beta1.php
CRM/Core/I18n/SchemaStructure_3_4_0.php
CRM/Core/I18n/SchemaStructure_3_4_beta2.php
CRM/Core/I18n/SchemaStructure_3_4_beta3.php
CRM/Core/I18n/SchemaStructure_4_1_0.php
CRM/Core/I18n/SchemaStructure_4_1_alpha1.php
CRM/Core/I18n/SchemaStructure_4_2_alpha1.php
CRM/Core/I18n/SchemaStructure_4_3_1.php
CRM/Core/I18n/SchemaStructure_4_5_alpha1.php
CRM/Core/I18n/SchemaStructure_4_5_beta2.php
CRM/Core/IDS.php
CRM/Core/InnoDBIndexer.php
CRM/Core/Invoke.php
CRM/Core/JobManager.php
CRM/Core/Joomla.php
CRM/Core/Key.php
CRM/Core/Lock.php
CRM/Core/ManagedEntities.php
CRM/Core/Menu.php
CRM/Core/Module.php
CRM/Core/OptionGroup.php
CRM/Core/OptionValue.php
CRM/Core/Page.php
CRM/Core/Page/AJAX.php
CRM/Core/Page/AJAX/Attachment.php
CRM/Core/Page/AJAX/Location.php
CRM/Core/Page/AJAX/RecurringEntity.php
CRM/Core/Page/Basic.php
CRM/Core/Page/File.php
CRM/Core/Page/Inline/Help.php
CRM/Core/Page/QUnit.php
CRM/Core/Page/Redirect.php
CRM/Core/Payment.php
CRM/Core/Payment/AuthorizeNet.php
CRM/Core/Payment/AuthorizeNetIPN.php
CRM/Core/Payment/BaseIPN.php
CRM/Core/Payment/Dummy.php
CRM/Core/Payment/Elavon.php
CRM/Core/Payment/FirstData.php
CRM/Core/Payment/Form.php
CRM/Core/Payment/Google.php
CRM/Core/Payment/GoogleIPN.php
CRM/Core/Payment/IATS.php
CRM/Core/Payment/Moneris.php
CRM/Core/Payment/PayJunction.php
CRM/Core/Payment/PayPalIPN.php
CRM/Core/Payment/PayPalImpl.php
CRM/Core/Payment/PayPalProIPN.php
CRM/Core/Payment/PayflowPro.php
CRM/Core/Payment/PaymentExpress.php
CRM/Core/Payment/PaymentExpressIPN.php
CRM/Core/Payment/PaymentExpressUtils.php
CRM/Core/Payment/ProcessorForm.php
CRM/Core/Payment/Realex.php
CRM/Core/Payment/eWAY.php
CRM/Core/Permission.php
CRM/Core/Permission/Base.php
CRM/Core/Permission/Drupal.php
CRM/Core/Permission/Drupal6.php
CRM/Core/Permission/Drupal8.php
CRM/Core/Permission/DrupalBase.php
CRM/Core/Permission/Joomla.php
CRM/Core/Permission/Soap.php
CRM/Core/Permission/UnitTests.php
CRM/Core/Permission/WordPress.php
CRM/Core/PseudoConstant.php
CRM/Core/QuickForm/Action.php
CRM/Core/QuickForm/Action/Back.php
CRM/Core/QuickForm/Action/Cancel.php
CRM/Core/QuickForm/Action/Display.php
CRM/Core/QuickForm/Action/Done.php
CRM/Core/QuickForm/Action/Jump.php
CRM/Core/QuickForm/Action/Next.php
CRM/Core/QuickForm/Action/Process.php
CRM/Core/QuickForm/Action/Refresh.php
CRM/Core/QuickForm/Action/Reload.php
CRM/Core/QuickForm/Action/Submit.php
CRM/Core/QuickForm/Action/Upload.php
CRM/Core/QuickForm/GroupMultiSelect.php
CRM/Core/QuickForm/NestedAdvMultiSelect.php
CRM/Core/Reference/Basic.php
CRM/Core/Reference/Interface.php
CRM/Core/Reference/OptionValue.php
CRM/Core/Region.php
CRM/Core/Report/Excel.php
CRM/Core/Resources.php
CRM/Core/ScheduledJob.php
CRM/Core/SelectValues.php
CRM/Core/Selector/API.php
CRM/Core/Selector/Base.php
CRM/Core/Selector/Controller.php
CRM/Core/Session.php
CRM/Core/ShowHideBlocks.php
CRM/Core/Smarty.php
CRM/Core/Smarty/plugins/block.edit.php
CRM/Core/Smarty/plugins/block.htxt.php
CRM/Core/Smarty/plugins/block.localize.php
CRM/Core/Smarty/plugins/block.serialize.php
CRM/Core/Smarty/plugins/block.ts.php
CRM/Core/Smarty/plugins/function.crmAPI.php
CRM/Core/Smarty/plugins/function.crmAttributes.php
CRM/Core/Smarty/plugins/function.crmCrudLink.php
CRM/Core/Smarty/plugins/function.crmDBTpl.php
CRM/Core/Smarty/plugins/function.crmGetAttribute.php
CRM/Core/Smarty/plugins/function.crmKey.php
CRM/Core/Smarty/plugins/function.crmNavigationMenu.php
CRM/Core/Smarty/plugins/function.crmResURL.php
CRM/Core/Smarty/plugins/function.crmScript.php
CRM/Core/Smarty/plugins/function.crmSetting.php
CRM/Core/Smarty/plugins/function.crmSigner.php
CRM/Core/Smarty/plugins/function.crmStyle.php
CRM/Core/Smarty/plugins/function.crmVersion.php
CRM/Core/Smarty/plugins/function.docURL.php
CRM/Core/Smarty/plugins/function.help.php
CRM/Core/Smarty/plugins/function.isValueChange.php
CRM/Core/Smarty/plugins/function.sectionTotal.php
CRM/Core/Smarty/plugins/function.simpleActivityContacts.php
CRM/Core/Smarty/plugins/modifier.crmAddClass.php
CRM/Core/Smarty/plugins/modifier.crmBtnType.php
CRM/Core/Smarty/plugins/modifier.crmDate.php
CRM/Core/Smarty/plugins/modifier.crmDelete.php
CRM/Core/Smarty/plugins/modifier.crmFirstWord.php
CRM/Core/Smarty/plugins/modifier.crmICalDate.php
CRM/Core/Smarty/plugins/modifier.crmICalText.php
CRM/Core/Smarty/plugins/modifier.crmInsert.php
CRM/Core/Smarty/plugins/modifier.crmMoney.php
CRM/Core/Smarty/plugins/modifier.crmNumberFormat.php
CRM/Core/Smarty/plugins/modifier.crmReplace.php
CRM/Core/Smarty/plugins/modifier.crmStripAlternatives.php
CRM/Core/Smarty/plugins/modifier.htmlize.php
CRM/Core/Smarty/plugins/modifier.json.php
CRM/Core/Smarty/plugins/modifier.mb_truncate.php
CRM/Core/Smarty/plugins/modifier.substring.php
CRM/Core/Smarty/resources/String.php
CRM/Core/State.php
CRM/Core/StateMachine.php
CRM/Core/TableHierarchy.php
CRM/Core/TemporaryErrorScope.php
CRM/Core/Transaction.php
CRM/Custom/Form/ChangeFieldType.php
CRM/Custom/Form/CustomData.php
CRM/Custom/Form/DeleteField.php
CRM/Custom/Form/DeleteGroup.php
CRM/Custom/Form/Field.php
CRM/Custom/Form/Group.php
CRM/Custom/Form/MoveField.php
CRM/Custom/Form/Option.php
CRM/Custom/Form/Preview.php
CRM/Custom/Import/Controller.php
CRM/Custom/Import/Field.php
CRM/Custom/Import/Form/DataSource.php
CRM/Custom/Import/Form/MapField.php
CRM/Custom/Import/Form/Preview.php
CRM/Custom/Import/Form/Summary.php
CRM/Custom/Import/Parser.php
CRM/Custom/Import/Parser/Api.php
CRM/Custom/Page/Field.php
CRM/Custom/Page/Group.php
CRM/Custom/Page/Option.php
CRM/Dashlet/Page/Activity.php
CRM/Dashlet/Page/AllCases.php
CRM/Dashlet/Page/Blog.php
CRM/Dashlet/Page/CaseDashboard.php
CRM/Dashlet/Page/MyCases.php
CRM/Dedupe/BAO/QueryBuilder.php
CRM/Dedupe/BAO/QueryBuilder/IndividualGeneral.php
CRM/Dedupe/BAO/QueryBuilder/IndividualSupervised.php
CRM/Dedupe/BAO/QueryBuilder/IndividualUnsupervised.php
CRM/Dedupe/BAO/Rule.php
CRM/Dedupe/BAO/RuleGroup.php
CRM/Dedupe/Finder.php
CRM/Dedupe/Merger.php
CRM/Event/BAO/Event.php
CRM/Event/BAO/Participant.php
CRM/Event/BAO/ParticipantPayment.php
CRM/Event/BAO/ParticipantStatusType.php
CRM/Event/BAO/Query.php
CRM/Event/Badge.php
CRM/Event/Badge/Logo.php
CRM/Event/Badge/Logo5395.php
CRM/Event/Badge/NameTent.php
CRM/Event/Badge/Simple.php
CRM/Event/Cart/BAO/Cart.php
CRM/Event/Cart/BAO/Conference.php
CRM/Event/Cart/BAO/EventInCart.php
CRM/Event/Cart/BAO/MerParticipant.php
CRM/Event/Cart/Controller/Checkout.php
CRM/Event/Cart/Form/Cart.php
CRM/Event/Cart/Form/Checkout/ConferenceEvents.php
CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.php
CRM/Event/Cart/Form/Checkout/Payment.php
CRM/Event/Cart/Form/Checkout/ThankYou.php
CRM/Event/Cart/Form/MerParticipant.php
CRM/Event/Cart/Page/AddToCart.php
CRM/Event/Cart/Page/CheckoutAJAX.php
CRM/Event/Cart/Page/RemoveFromCart.php
CRM/Event/Cart/Page/ViewCart.php
CRM/Event/Cart/StateMachine/Checkout.php
CRM/Event/Config.php
CRM/Event/Controller/Registration.php
CRM/Event/Controller/Search.php
CRM/Event/Form/EventFees.php
CRM/Event/Form/ManageEvent.php
CRM/Event/Form/ManageEvent/Conference.php
CRM/Event/Form/ManageEvent/Delete.php
CRM/Event/Form/ManageEvent/EventInfo.php
CRM/Event/Form/ManageEvent/Fee.php
CRM/Event/Form/ManageEvent/Location.php
CRM/Event/Form/ManageEvent/Registration.php
CRM/Event/Form/ManageEvent/Repeat.php
CRM/Event/Form/ManageEvent/ScheduleReminders.php
CRM/Event/Form/ManageEvent/TabHeader.php
CRM/Event/Form/Participant.php
CRM/Event/Form/ParticipantFeeSelection.php
CRM/Event/Form/ParticipantView.php
CRM/Event/Form/Registration.php
CRM/Event/Form/Registration/AdditionalParticipant.php
CRM/Event/Form/Registration/Confirm.php
CRM/Event/Form/Registration/ParticipantConfirm.php
CRM/Event/Form/Registration/Register.php
CRM/Event/Form/Registration/ThankYou.php
CRM/Event/Form/Search.php
CRM/Event/Form/SearchEvent.php
CRM/Event/Form/Task.php
CRM/Event/Form/Task/AddToGroup.php
CRM/Event/Form/Task/Badge.php
CRM/Event/Form/Task/Batch.php
CRM/Event/Form/Task/Cancel.php
CRM/Event/Form/Task/Delete.php
CRM/Event/Form/Task/Email.php
CRM/Event/Form/Task/ParticipantStatus.php
CRM/Event/Form/Task/PickProfile.php
CRM/Event/Form/Task/Print.php
CRM/Event/Form/Task/Result.php
CRM/Event/Form/Task/SaveSearch.php
CRM/Event/Form/Task/SaveSearch/Update.php
CRM/Event/Form/Task/SearchTaskHookSample.php
CRM/Event/Import/Controller.php
CRM/Event/Import/Field.php
CRM/Event/Import/Form/DataSource.php
CRM/Event/Import/Form/MapField.php
CRM/Event/Import/Form/Preview.php
CRM/Event/Import/Form/Summary.php
CRM/Event/Import/Parser.php
CRM/Event/Import/Parser/Participant.php
CRM/Event/Info.php
CRM/Event/Page/AJAX.php
CRM/Event/Page/DashBoard.php
CRM/Event/Page/EventInfo.php
CRM/Event/Page/ICalendar.php
CRM/Event/Page/ManageEvent.php
CRM/Event/Page/ParticipantListing.php
CRM/Event/Page/ParticipantListing/Name.php
CRM/Event/Page/ParticipantListing/NameAndEmail.php
CRM/Event/Page/ParticipantListing/NameStatusAndDate.php
CRM/Event/Page/ParticipantListing/Simple.php
CRM/Event/Page/Tab.php
CRM/Event/Page/UserDashboard.php
CRM/Event/PseudoConstant.php
CRM/Event/Selector/Search.php
CRM/Event/StateMachine/Registration.php
CRM/Event/StateMachine/Search.php
CRM/Event/Task.php
CRM/Export/BAO/Export.php
CRM/Export/Form/Map.php
CRM/Export/Form/Select.php
CRM/Extension/Browser.php
CRM/Extension/Container/Basic.php
CRM/Extension/Container/Collection.php
CRM/Extension/Container/Default.php
CRM/Extension/Container/Interface.php
CRM/Extension/Container/Static.php
CRM/Extension/Downloader.php
CRM/Extension/Exception.php
CRM/Extension/Exception/DependencyException.php
CRM/Extension/Exception/MissingException.php
CRM/Extension/Exception/ParseException.php
CRM/Extension/Info.php
CRM/Extension/Manager.php
CRM/Extension/Manager/Base.php
CRM/Extension/Manager/Interface.php
CRM/Extension/Manager/Module.php
CRM/Extension/Manager/Payment.php
CRM/Extension/Manager/Report.php
CRM/Extension/Manager/Search.php
CRM/Extension/Mapper.php
CRM/Extension/System.php
CRM/Extension/Upgrades.php
CRM/Financial/BAO/ExportFormat.php
CRM/Financial/BAO/ExportFormat/CSV.php
CRM/Financial/BAO/ExportFormat/IIF.php
CRM/Financial/BAO/FinancialAccount.php
CRM/Financial/BAO/FinancialItem.php
CRM/Financial/BAO/FinancialType.php
CRM/Financial/BAO/FinancialTypeAccount.php
CRM/Financial/BAO/PaymentProcessor.php
CRM/Financial/BAO/PaymentProcessorType.php
CRM/Financial/Form/BatchTransaction.php
CRM/Financial/Form/Export.php
CRM/Financial/Form/FinancialAccount.php
CRM/Financial/Form/FinancialBatch.php
CRM/Financial/Form/FinancialType.php
CRM/Financial/Form/FinancialTypeAccount.php
CRM/Financial/Form/Search.php
CRM/Financial/Page/AJAX.php
CRM/Financial/Page/Batch.php
CRM/Financial/Page/BatchTransaction.php
CRM/Financial/Page/FinancialAccount.php
CRM/Financial/Page/FinancialBatch.php
CRM/Financial/Page/FinancialType.php
CRM/Financial/Page/FinancialTypeAccount.php
CRM/Friend/BAO/Friend.php
CRM/Friend/Form.php
CRM/Friend/Form/Contribute.php
CRM/Friend/Form/Event.php
CRM/Grant/BAO/Grant.php
CRM/Grant/BAO/Query.php
CRM/Grant/Config.php
CRM/Grant/Controller/Search.php
CRM/Grant/Form/Grant.php
CRM/Grant/Form/GrantView.php
CRM/Grant/Form/Search.php
CRM/Grant/Form/Task.php
CRM/Grant/Form/Task/Delete.php
CRM/Grant/Form/Task/Print.php
CRM/Grant/Form/Task/Result.php
CRM/Grant/Form/Task/SearchTaskHookSample.php
CRM/Grant/Form/Task/Update.php
CRM/Grant/Info.php
CRM/Grant/Page/DashBoard.php
CRM/Grant/Page/Tab.php
CRM/Grant/Selector/Search.php
CRM/Grant/StateMachine/Search.php
CRM/Grant/Task.php
CRM/Group/Controller.php
CRM/Group/Form/Edit.php
CRM/Group/Form/Search.php
CRM/Group/Page/AJAX.php
CRM/Group/Page/Group.php
CRM/Group/StateMachine.php
CRM/Import/DataSource.php
CRM/Import/DataSource/CSV.php
CRM/Import/DataSource/SQL.php
CRM/Import/Form/MapField.php
CRM/Import/Form/Preview.php
CRM/Import/Form/Summary.php
CRM/Import/Parser.php
CRM/Import/StateMachine.php
CRM/Logging/Differ.php
CRM/Logging/ReportDetail.php
CRM/Logging/ReportSummary.php
CRM/Logging/Reverter.php
CRM/Logging/Schema.php
CRM/Mailing/BAO/BouncePattern.php
CRM/Mailing/BAO/Component.php
CRM/Mailing/BAO/Mailing.php
CRM/Mailing/BAO/MailingAB.php
CRM/Mailing/BAO/MailingJob.php
CRM/Mailing/BAO/Query.php
CRM/Mailing/BAO/Recipients.php
CRM/Mailing/BAO/Spool.php
CRM/Mailing/BAO/TrackableURL.php
CRM/Mailing/Config.php
CRM/Mailing/Controller/Send.php
CRM/Mailing/Event/BAO/Bounce.php
CRM/Mailing/Event/BAO/Confirm.php
CRM/Mailing/Event/BAO/Delivered.php
CRM/Mailing/Event/BAO/Forward.php
CRM/Mailing/Event/BAO/Opened.php
CRM/Mailing/Event/BAO/Queue.php
CRM/Mailing/Event/BAO/Reply.php
CRM/Mailing/Event/BAO/Resubscribe.php
CRM/Mailing/Event/BAO/Subscribe.php
CRM/Mailing/Event/BAO/TrackableURLOpen.php
CRM/Mailing/Event/BAO/Unsubscribe.php
CRM/Mailing/Form/Approve.php
CRM/Mailing/Form/Browse.php
CRM/Mailing/Form/Component.php
CRM/Mailing/Form/ForwardMailing.php
CRM/Mailing/Form/Group.php
CRM/Mailing/Form/Optout.php
CRM/Mailing/Form/Schedule.php
CRM/Mailing/Form/Search.php
CRM/Mailing/Form/Settings.php
CRM/Mailing/Form/Subscribe.php
CRM/Mailing/Form/Task.php
CRM/Mailing/Form/Task/Print.php
CRM/Mailing/Form/Test.php
CRM/Mailing/Form/Unsubscribe.php
CRM/Mailing/Form/Upload.php
CRM/Mailing/Info.php
CRM/Mailing/MailStore.php
CRM/Mailing/MailStore/Imap.php
CRM/Mailing/MailStore/Localdir.php
CRM/Mailing/MailStore/Maildir.php
CRM/Mailing/MailStore/Mbox.php
CRM/Mailing/MailStore/Pop3.php
CRM/Mailing/Page/AJAX.php
CRM/Mailing/Page/Browse.php
CRM/Mailing/Page/Common.php
CRM/Mailing/Page/Component.php
CRM/Mailing/Page/Confirm.php
CRM/Mailing/Page/Event.php
CRM/Mailing/Page/Optout.php
CRM/Mailing/Page/Preview.php
CRM/Mailing/Page/Report.php
CRM/Mailing/Page/Resubscribe.php
CRM/Mailing/Page/Tab.php
CRM/Mailing/Page/Unsubscribe.php
CRM/Mailing/Page/View.php
CRM/Mailing/PseudoConstant.php
CRM/Mailing/Selector/Browse.php
CRM/Mailing/Selector/Event.php
CRM/Mailing/Selector/Search.php
CRM/Mailing/StateMachine/Send.php
CRM/Mailing/Task.php
CRM/Member/BAO/Membership.php
CRM/Member/BAO/MembershipBlock.php
CRM/Member/BAO/MembershipLog.php
CRM/Member/BAO/MembershipPayment.php
CRM/Member/BAO/MembershipStatus.php
CRM/Member/BAO/MembershipType.php
CRM/Member/BAO/Query.php
CRM/Member/Config.php
CRM/Member/Controller/Search.php
CRM/Member/Form.php
CRM/Member/Form/Membership.php
CRM/Member/Form/MembershipBlock.php
CRM/Member/Form/MembershipConfig.php
CRM/Member/Form/MembershipRenewal.php
CRM/Member/Form/MembershipStatus.php
CRM/Member/Form/MembershipType.php
CRM/Member/Form/MembershipView.php
CRM/Member/Form/Search.php
CRM/Member/Form/Task.php
CRM/Member/Form/Task/Batch.php
CRM/Member/Form/Task/Delete.php
CRM/Member/Form/Task/Email.php
CRM/Member/Form/Task/Label.php
CRM/Member/Form/Task/PDFLetter.php
CRM/Member/Form/Task/PDFLetterCommon.php
CRM/Member/Form/Task/PickProfile.php
CRM/Member/Form/Task/Print.php
CRM/Member/Form/Task/Result.php
CRM/Member/Form/Task/SearchTaskHookSample.php
CRM/Member/Import/Controller.php
CRM/Member/Import/Field.php
CRM/Member/Import/Form/DataSource.php
CRM/Member/Import/Form/MapField.php
CRM/Member/Import/Form/Preview.php
CRM/Member/Import/Form/Summary.php
CRM/Member/Import/Parser.php
CRM/Member/Import/Parser/Membership.php
CRM/Member/Info.php
CRM/Member/Page/AJAX.php
CRM/Member/Page/DashBoard.php
CRM/Member/Page/MembershipStatus.php
CRM/Member/Page/MembershipType.php
CRM/Member/Page/Tab.php
CRM/Member/Page/UserDashboard.php
CRM/Member/PseudoConstant.php
CRM/Member/Selector/Search.php
CRM/Member/StateMachine/Search.php
CRM/Member/Task.php
CRM/Note/Form/Note.php
CRM/PCP/BAO/PCP.php
CRM/PCP/Controller/PCP.php
CRM/PCP/Form/Campaign.php
CRM/PCP/Form/Contribute.php
CRM/PCP/Form/Event.php
CRM/PCP/Form/PCP.php
CRM/PCP/Form/PCPAccount.php
CRM/PCP/Page/PCP.php
CRM/PCP/Page/PCPInfo.php
CRM/PCP/StateMachine/PCP.php
CRM/Pledge/BAO/Pledge.php
CRM/Pledge/BAO/PledgeBlock.php
CRM/Pledge/BAO/PledgePayment.php
CRM/Pledge/BAO/Query.php
CRM/Pledge/Config.php
CRM/Pledge/Controller/Search.php
CRM/Pledge/Form/Payment.php
CRM/Pledge/Form/Pledge.php
CRM/Pledge/Form/PledgeView.php
CRM/Pledge/Form/Search.php
CRM/Pledge/Form/Task.php
CRM/Pledge/Form/Task/Delete.php
CRM/Pledge/Form/Task/Print.php
CRM/Pledge/Form/Task/Result.php
CRM/Pledge/Form/Task/SearchTaskHookSample.php
CRM/Pledge/Info.php
CRM/Pledge/Page/AJAX.php
CRM/Pledge/Page/DashBoard.php
CRM/Pledge/Page/Payment.php
CRM/Pledge/Page/Tab.php
CRM/Pledge/Page/UserDashboard.php
CRM/Pledge/Selector/Search.php
CRM/Pledge/StateMachine/Search.php
CRM/Pledge/Task.php
CRM/Price/BAO/LineItem.php
CRM/Price/BAO/PriceField.php
CRM/Price/BAO/PriceFieldValue.php
CRM/Price/BAO/PriceSet.php
CRM/Price/Form/DeleteField.php
CRM/Price/Form/DeleteSet.php
CRM/Price/Form/Field.php
CRM/Price/Form/Option.php
CRM/Price/Form/Preview.php
CRM/Price/Form/Set.php
CRM/Price/Page/Field.php
CRM/Price/Page/Option.php
CRM/Price/Page/Set.php
CRM/Profile/Form.php
CRM/Profile/Form/Dynamic.php
CRM/Profile/Form/Edit.php
CRM/Profile/Form/Search.php
CRM/Profile/Page/Dynamic.php
CRM/Profile/Page/Listings.php
CRM/Profile/Page/MultipleRecordFieldsListing.php
CRM/Profile/Page/Router.php
CRM/Profile/Page/View.php
CRM/Profile/Selector/Listings.php
CRM/Queue/BAO/QueueItem.php
CRM/Queue/ErrorPolicy.php
CRM/Queue/Menu.php
CRM/Queue/Page/AJAX.php
CRM/Queue/Page/Runner.php
CRM/Queue/Queue.php
CRM/Queue/Queue/Memory.php
CRM/Queue/Queue/Sql.php
CRM/Queue/Runner.php
CRM/Queue/Service.php
CRM/Queue/Task.php
CRM/Queue/TaskContext.php
CRM/Report/BAO/Hook.php
CRM/Report/BAO/HookInterface.php
CRM/Report/BAO/ReportInstance.php
CRM/Report/Config.php
CRM/Report/Form.php
CRM/Report/Form/Activity.php
CRM/Report/Form/ActivitySummary.php
CRM/Report/Form/Campaign/SurveyDetails.php
CRM/Report/Form/Case/Demographics.php
CRM/Report/Form/Case/Detail.php
CRM/Report/Form/Case/Summary.php
CRM/Report/Form/Case/TimeSpent.php
CRM/Report/Form/Contact/CurrentEmployer.php
CRM/Report/Form/Contact/Detail.php
CRM/Report/Form/Contact/Log.php
CRM/Report/Form/Contact/LoggingDetail.php
CRM/Report/Form/Contact/LoggingSummary.php
CRM/Report/Form/Contact/Relationship.php
CRM/Report/Form/Contact/Summary.php
CRM/Report/Form/Contribute/Bookkeeping.php
CRM/Report/Form/Contribute/Detail.php
CRM/Report/Form/Contribute/History.php
CRM/Report/Form/Contribute/HouseholdSummary.php
CRM/Report/Form/Contribute/LoggingDetail.php
CRM/Report/Form/Contribute/LoggingSummary.php
CRM/Report/Form/Contribute/Lybunt.php
CRM/Report/Form/Contribute/OrganizationSummary.php
CRM/Report/Form/Contribute/PCP.php
CRM/Report/Form/Contribute/Recur.php
CRM/Report/Form/Contribute/Repeat.php
CRM/Report/Form/Contribute/SoftCredit.php
CRM/Report/Form/Contribute/Summary.php
CRM/Report/Form/Contribute/Sybunt.php
CRM/Report/Form/Contribute/TopDonor.php
CRM/Report/Form/Event.php
CRM/Report/Form/Event/Income.php
CRM/Report/Form/Event/IncomeCountSummary.php
CRM/Report/Form/Event/ParticipantListCount.php
CRM/Report/Form/Event/ParticipantListing.php
CRM/Report/Form/Event/Summary.php
CRM/Report/Form/Extended.php
CRM/Report/Form/Grant/Detail.php
CRM/Report/Form/Grant/Statistics.php
CRM/Report/Form/Instance.php
CRM/Report/Form/Mailing/Bounce.php
CRM/Report/Form/Mailing/Clicks.php
CRM/Report/Form/Mailing/Detail.php
CRM/Report/Form/Mailing/Opened.php
CRM/Report/Form/Mailing/Summary.php
CRM/Report/Form/Member/ContributionDetail.php
CRM/Report/Form/Member/Detail.php
CRM/Report/Form/Member/Lapse.php
CRM/Report/Form/Member/Summary.php
CRM/Report/Form/Membership/Summary.php
CRM/Report/Form/Pledge/Detail.php
CRM/Report/Form/Pledge/Pbnp.php
CRM/Report/Form/Pledge/Summary.php
CRM/Report/Form/Register.php
CRM/Report/Form/Walklist/Walklist.php
CRM/Report/Info.php
CRM/Report/Interface.php
CRM/Report/Page/Instance.php
CRM/Report/Page/InstanceList.php
CRM/Report/Page/Options.php
CRM/Report/Page/Report.php
CRM/Report/Page/TemplateList.php
CRM/Report/Utils/Get.php
CRM/Report/Utils/Report.php
CRM/SMS/BAO/Provider.php
CRM/SMS/Controller/Send.php
CRM/SMS/Form/Group.php
CRM/SMS/Form/Provider.php
CRM/SMS/Form/Schedule.php
CRM/SMS/Form/Upload.php
CRM/SMS/Page/Callback.php
CRM/SMS/Page/Provider.php
CRM/SMS/Provider.php
CRM/SMS/StateMachine/Send.php
CRM/Tag/Form/Tag.php
CRM/UF/Form/AbstractPreview.php
CRM/UF/Form/AdvanceSetting.php
CRM/UF/Form/Field.php
CRM/UF/Form/Group.php
CRM/UF/Form/Inline/Preview.php
CRM/UF/Form/Inline/PreviewById.php
CRM/UF/Form/Preview.php
CRM/UF/Page/AJAX.php
CRM/UF/Page/Field.php
CRM/UF/Page/Group.php
CRM/UF/Page/ProfileEditor.php
CRM/Upgrade/Controller.php
CRM/Upgrade/Form.php
CRM/Upgrade/Headless.php
CRM/Upgrade/Incremental/Legacy.php
CRM/Upgrade/Incremental/php/FourFive.php
CRM/Upgrade/Incremental/php/FourFour.php
CRM/Upgrade/Incremental/php/FourOne.php
CRM/Upgrade/Incremental/php/FourSix.php
CRM/Upgrade/Incremental/php/FourThree.php
CRM/Upgrade/Incremental/php/FourTwo.php
CRM/Upgrade/Incremental/php/FourZero.php
CRM/Upgrade/Incremental/php/ThreeFour.php
CRM/Upgrade/Incremental/php/ThreeThree.php
CRM/Upgrade/Incremental/php/ThreeTwo.php
CRM/Upgrade/Page/Cleanup.php
CRM/Upgrade/Page/Upgrade.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/Field.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/FieldValue.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/LineItem.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/Set.php
CRM/Upgrade/StateMachine.php
CRM/Utils/API/AbstractFieldCoder.php
CRM/Utils/API/HTMLInputCoder.php
CRM/Utils/API/MatchOption.php
CRM/Utils/API/NullOutputCoder.php
CRM/Utils/API/ReloadOption.php
CRM/Utils/Address.php
CRM/Utils/Address/BatchUpdate.php
CRM/Utils/Address/USPS.php
CRM/Utils/Api.php
CRM/Utils/Array.php
CRM/Utils/Cache.php
CRM/Utils/Cache/APCcache.php
CRM/Utils/Cache/ArrayCache.php
CRM/Utils/Cache/Interface.php
CRM/Utils/Cache/Memcache.php
CRM/Utils/Cache/Memcached.php
CRM/Utils/Cache/NoCache.php
CRM/Utils/Cache/SerializeCache.php
CRM/Utils/Cache/SqlGroup.php
CRM/Utils/Check.php
CRM/Utils/Check/Case.php
CRM/Utils/Check/Env.php
CRM/Utils/Check/Message.php
CRM/Utils/Check/Security.php
CRM/Utils/Constant.php
CRM/Utils/Crypt.php
CRM/Utils/Date.php
CRM/Utils/DeprecatedUtils.php
CRM/Utils/FakeObject.php
CRM/Utils/File.php
CRM/Utils/Geocode/Google.php
CRM/Utils/Geocode/Yahoo.php
CRM/Utils/GlobalStack.php
CRM/Utils/Hook.php
CRM/Utils/Hook/Drupal.php
CRM/Utils/Hook/Drupal6.php
CRM/Utils/Hook/Drupal8.php
CRM/Utils/Hook/DrupalBase.php
CRM/Utils/Hook/Joomla.php
CRM/Utils/Hook/Soap.php
CRM/Utils/Hook/UnitTests.php
CRM/Utils/Hook/WordPress.php
CRM/Utils/HttpClient.php
CRM/Utils/ICalendar.php
CRM/Utils/JS.php
CRM/Utils/JSON.php
CRM/Utils/Mail.php
CRM/Utils/Mail/EmailProcessor.php
CRM/Utils/Mail/Incoming.php
CRM/Utils/Migrate/Export.php
CRM/Utils/Migrate/ExportJSON.php
CRM/Utils/Migrate/Import.php
CRM/Utils/Migrate/ImportJSON.php
CRM/Utils/Money.php
CRM/Utils/Network.php
CRM/Utils/Number.php
CRM/Utils/OpenFlashChart.php
CRM/Utils/OptionBag.php
CRM/Utils/PDF/Label.php
CRM/Utils/PDF/Utils.php
CRM/Utils/Pager.php
CRM/Utils/PagerAToZ.php
CRM/Utils/PseudoConstant.php
CRM/Utils/QueryFormatter.php
CRM/Utils/REST.php
CRM/Utils/ReCAPTCHA.php
CRM/Utils/Recent.php
CRM/Utils/Request.php
CRM/Utils/Rule.php
CRM/Utils/SQL/Insert.php
CRM/Utils/SQL/Select.php
CRM/Utils/Signer.php
CRM/Utils/SoapServer.php
CRM/Utils/Sort.php
CRM/Utils/String.php
CRM/Utils/Sunlight.php
CRM/Utils/System.php
CRM/Utils/System/Base.php
CRM/Utils/System/Drupal.php
CRM/Utils/System/Drupal6.php
CRM/Utils/System/Drupal8.php
CRM/Utils/System/DrupalBase.php
CRM/Utils/System/Joomla.php
CRM/Utils/System/Soap.php
CRM/Utils/System/UnitTests.php
CRM/Utils/System/WordPress.php
CRM/Utils/SystemLogger.php
CRM/Utils/Time.php
CRM/Utils/Token.php
CRM/Utils/Tree.php
CRM/Utils/Type.php
CRM/Utils/Verp.php
CRM/Utils/VersionCheck.php
CRM/Utils/Weight.php
CRM/Utils/Wrapper.php
CRM/Utils/XML.php
CRM/Utils/Zip.php
CRM/Widget/Widget.php
Civi/API/Event/AuthorizeEvent.php
Civi/API/Event/Event.php
Civi/API/Event/ExceptionEvent.php
Civi/API/Event/PrepareEvent.php
Civi/API/Event/ResolveEvent.php
Civi/API/Event/RespondEvent.php
Civi/API/Events.php
Civi/API/Exception/NotImplementedException.php
Civi/API/Exception/UnauthorizedException.php
Civi/API/Kernel.php
Civi/API/Provider/AdhocProvider.php
Civi/API/Provider/MagicFunctionProvider.php
Civi/API/Provider/ProviderInterface.php
Civi/API/Provider/ReflectionProvider.php
Civi/API/Provider/StaticProvider.php
Civi/API/Request.php
Civi/API/Subscriber/APIv3SchemaAdapter.php
Civi/API/Subscriber/ChainSubscriber.php
Civi/API/Subscriber/DynamicFKAuthorization.php
Civi/API/Subscriber/I18nSubscriber.php
Civi/API/Subscriber/PermissionCheck.php
Civi/API/Subscriber/TransactionSubscriber.php
Civi/API/Subscriber/WrapperAdapter.php
Civi/API/Subscriber/XDebugSubscriber.php
Civi/CCase/Analyzer.php
Civi/CCase/CaseChangeListener.php
Civi/CCase/Event/CaseChangeEvent.php
Civi/CCase/Events.php
Civi/CCase/SequenceListener.php
Civi/CiUtil/Arrays.php
Civi/CiUtil/Command/AntagonistCommand.php
Civi/CiUtil/Command/CompareCommand.php
Civi/CiUtil/Command/LsCommand.php
Civi/CiUtil/ComparisonPrinter.php
Civi/CiUtil/CsvPrinter.php
Civi/CiUtil/EnvTestRunner.php
Civi/CiUtil/JenkinsParser.php
Civi/CiUtil/PHPUnitScanner.php
Civi/Core/Container.php
Civi/Core/DAO/Event/PostDelete.php
Civi/Core/DAO/Event/PostUpdate.php
Civi/Core/Event/PostEvent.php
Civi/Core/Event/PreEvent.php
Civi/Core/Event/UnhandledExceptionEvent.php
Civi/Core/Transaction/Frame.php
Civi/Core/Transaction/Manager.php
Civi/Install/Requirements.php
Civi/Payment/System.php
api/Exception.php
api/Wrapper.php
api/api.php
api/class.api.php
api/v3/Acl.php
api/v3/AclRole.php
api/v3/ActionSchedule.php
api/v3/ActivityContact.php
api/v3/ActivityType.php
api/v3/Address.php
api/v3/Batch.php
api/v3/Case.php
api/v3/CaseType.php
api/v3/Constant.php
api/v3/Contact.php
api/v3/Contribution.php
api/v3/ContributionPage.php
api/v3/ContributionRecur.php
api/v3/ContributionSoft.php
api/v3/Country.php
api/v3/CustomGroup.php
api/v3/DashboardContact.php
api/v3/Domain.php
api/v3/Email.php
api/v3/EntityTag.php
api/v3/Extension.php
api/v3/FinancialAccount.php
api/v3/FinancialType.php
api/v3/Generic/Getactions.php
api/v3/Generic/Getlist.php
api/v3/Generic/Setvalue.php
api/v3/Generic/Update.php
api/v3/GroupNesting.php
api/v3/Im.php
api/v3/Job.php
api/v3/LineItem.php
api/v3/LocBlock.php
api/v3/LocationType.php
api/v3/Mailing.php
api/v3/MailingAB.php
api/v3/MailingComponent.php
api/v3/MailingEventConfirm.php
api/v3/MailingEventQueue.php
api/v3/MailingEventResubscribe.php
api/v3/MailingEventSubscribe.php
api/v3/MailingEventUnsubscribe.php
api/v3/MailingGroup.php
api/v3/MailingJob.php
api/v3/MailingRecipients.php
api/v3/MembershipBlock.php
api/v3/MembershipType.php
api/v3/MessageTemplate.php
api/v3/ParticipantPayment.php
api/v3/PaymentProcessor.php
api/v3/Phone.php
api/v3/Pledge.php
api/v3/Premium.php
api/v3/PriceField.php
api/v3/PriceFieldValue.php
api/v3/PriceSet.php
api/v3/PrintLabel.php
api/v3/Product.php
api/v3/Profile.php
api/v3/Relationship.php
api/v3/ReportTemplate.php
api/v3/SmsProvider.php
api/v3/SurveyRespondant.php
api/v3/Tag.php
api/v3/UFGroup.php
api/v3/Website.php
api/v3/WordReplacement.php
api/v3/utils.php
bin/ContributionProcessor.php
bin/cleanup42.php
bin/cli.class.php
bin/cli.php
bin/cron.php
bin/csv/delete.php
bin/csv/export.php
bin/csv/import.php
bin/deprecated/CiviReportMail.php
bin/deprecated/EmailProcessor.php
bin/deprecated/ParticipantProcessor.php
bin/deprecated/RespondentProcessor.php
bin/deprecated/UpdateAddress.php
bin/deprecated/UpdateGreeting.php
bin/deprecated/UpdateMembershipRecord.php
bin/deprecated/UpdateMembershipReminderDate.php
bin/deprecated/UpdatePledgeRecord.php
bin/deprecated/action.cronjob.php
bin/deprecated/civimail.cronjob.php
bin/encryptDB.php
bin/migrate/export.php
bin/migrate/exportJSON.php
bin/migrate/import.php
bin/migrate/importJSON.php
bin/migrate/move.php
distmaker/utils/joomlaxml.php
extern/authorizeIPN.php
extern/googleNotify.php
extern/ipn.php
extern/rest.php
extern/soap.php
extern/widget.php
header-agpl.txt
header.txt
install/civicrm.php
install/index.php
settings/Address.setting.php
settings/Campaign.setting.php
settings/Contribute.setting.php
settings/Core.setting.php
settings/Developer.setting.php
settings/Directory.setting.php
settings/Event.setting.php
settings/Localization.setting.php
settings/Mailing.setting.php
settings/Member.setting.php
settings/Multisite.setting.php
settings/Search.setting.php
settings/Url.setting.php
tests/extensions/test.extension.manager.paymenttest/main.php
tests/extensions/test.extension.manager.reporttest/main.php
tests/phpunit/AllTests.php
tests/phpunit/CRM/Activity/AllTests.php
tests/phpunit/CRM/Activity/BAO/ActivityAssignmentTest.php
tests/phpunit/CRM/Activity/BAO/ActivityTargetTest.php
tests/phpunit/CRM/Activity/BAO/ActivityTest.php
tests/phpunit/CRM/AllTests.php
tests/phpunit/CRM/Batch/Form/EntryTest.php
tests/phpunit/CRM/Bridge/OG/DrupalTest.php
tests/phpunit/CRM/Case/AllTests.php
tests/phpunit/CRM/Case/BAO/CaseTest.php
tests/phpunit/CRM/Case/BAO/CaseTypeTest.php
tests/phpunit/CRM/Case/PseudoConstantTest.php
tests/phpunit/CRM/Case/XMLRepositoryTest.php
tests/phpunit/CRM/Contact/AllTests.php
tests/phpunit/CRM/Contact/BAO/ContactTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactSearchTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/RelationshipTest.php
tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php
tests/phpunit/CRM/Contact/BAO/GroupContactTest.php
tests/phpunit/CRM/Contact/BAO/GroupTest.php
tests/phpunit/CRM/Contact/BAO/QueryTest.php
tests/phpunit/CRM/Contact/BAO/QueryTestDataProvider.php
tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php
tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTestDataProvider.php
tests/phpunit/CRM/Contribute/AllTests.php
tests/phpunit/CRM/Contribute/BAO/ContributionPageTest.php
tests/phpunit/CRM/Contribute/BAO/ContributionRecurTest.php
tests/phpunit/CRM/Contribute/BAO/ContributionTest.php
tests/phpunit/CRM/Contribute/BAO/ContributionTypeTest.php
tests/phpunit/CRM/Contribute/BAO/ManagePremiumsTest.php
tests/phpunit/CRM/Core/AllTests.php
tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php
tests/phpunit/CRM/Core/BAO/AddressTest.php
tests/phpunit/CRM/Core/BAO/CustomFieldTest.php
tests/phpunit/CRM/Core/BAO/CustomGroupTest.php
tests/phpunit/CRM/Core/BAO/CustomValueTableMultipleTest.php
tests/phpunit/CRM/Core/BAO/CustomValueTableSetGetTest.php
tests/phpunit/CRM/Core/BAO/CustomValueTableTest.php
tests/phpunit/CRM/Core/BAO/CustomValueTest.php
tests/phpunit/CRM/Core/BAO/EmailTest.php
tests/phpunit/CRM/Core/BAO/FinancialTrxnTest.php
tests/phpunit/CRM/Core/BAO/IMTest.php
tests/phpunit/CRM/Core/BAO/LocationTest.php
tests/phpunit/CRM/Core/BAO/OpenIDTest.php
tests/phpunit/CRM/Core/BAO/PhoneTest.php
tests/phpunit/CRM/Core/BAO/PreferencesTest.php
tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php
tests/phpunit/CRM/Core/BAO/SettingTest.php
tests/phpunit/CRM/Core/BAO/UFFieldTest.php
tests/phpunit/CRM/Core/CommunityMessagesTest.php
tests/phpunit/CRM/Core/Config/MailerTest.php
tests/phpunit/CRM/Core/ErrorTest.php
tests/phpunit/CRM/Core/FieldOptionsTest.php
tests/phpunit/CRM/Core/InnoDBIndexerTest.php
tests/phpunit/CRM/Core/JobManagerTest.php
tests/phpunit/CRM/Core/ManagedEntitiesTest.php
tests/phpunit/CRM/Core/MenuTest.php
tests/phpunit/CRM/Core/Page/AJAXTest.php
tests/phpunit/CRM/Core/Page/RedirectTest.php
tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php
tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php
tests/phpunit/CRM/Core/Payment/BaseIPNTest.php
tests/phpunit/CRM/Core/Payment/PayPalProIPNTest.php
tests/phpunit/CRM/Core/PaymentTest.php
tests/phpunit/CRM/Core/Permission/BaseTest.php
tests/phpunit/CRM/Core/Permission/GenericTest.php
tests/phpunit/CRM/Core/Permission/JoomlaTest.php
tests/phpunit/CRM/Core/PseudoConstantTest.php
tests/phpunit/CRM/Core/ResourcesTest.php
tests/phpunit/CRM/Core/TransactionTest.php
tests/phpunit/CRM/Dedupe/DedupeFinderTest.php
tests/phpunit/CRM/Event/AllTests.php
tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php
tests/phpunit/CRM/Event/BAO/ParticipantStatusTest.php
tests/phpunit/CRM/Event/BAO/ParticipantTest.php
tests/phpunit/CRM/Extension/AllTests.php
tests/phpunit/CRM/Extension/BrowserTest.php
tests/phpunit/CRM/Extension/Container/AllTests.php
tests/phpunit/CRM/Extension/Container/BasicTest.php
tests/phpunit/CRM/Extension/Container/CollectionTest.php
tests/phpunit/CRM/Extension/Container/StaticTest.php
tests/phpunit/CRM/Extension/InfoTest.php
tests/phpunit/CRM/Extension/Manager/AllTests.php
tests/phpunit/CRM/Extension/Manager/PaymentTest.php
tests/phpunit/CRM/Extension/Manager/ReportTest.php
tests/phpunit/CRM/Extension/Manager/SearchTest.php
tests/phpunit/CRM/Extension/ManagerTest.php
tests/phpunit/CRM/Extension/MapperTest.php
tests/phpunit/CRM/Financial/BAO/FinancialAccountTest.php
tests/phpunit/CRM/Financial/BAO/FinancialItemTest.php
tests/phpunit/CRM/Financial/BAO/FinancialTypeAccountTest.php
tests/phpunit/CRM/Financial/BAO/FinancialTypeTest.php
tests/phpunit/CRM/Financial/BAO/PaymentProcessorTypeTest.php
tests/phpunit/CRM/Group/Page/AjaxTest.php
tests/phpunit/CRM/Mailing/BAO/QueryTest.php
tests/phpunit/CRM/Mailing/BAO/QueryTestDataProvider.php
tests/phpunit/CRM/Mailing/BAO/SpoolTest.php
tests/phpunit/CRM/Member/AllTests.php
tests/phpunit/CRM/Member/BAO/MembershipLogTest.php
tests/phpunit/CRM/Member/BAO/MembershipStatusTest.php
tests/phpunit/CRM/Member/BAO/MembershipTest.php
tests/phpunit/CRM/Member/BAO/MembershipTypeTest.php
tests/phpunit/CRM/Member/Form/AllTests.php
tests/phpunit/CRM/Member/Form/MembershipTest.php
tests/phpunit/CRM/Member/Import/Parser/MembershipTest.php
tests/phpunit/CRM/PCP/BAO/PCPTest.php
tests/phpunit/CRM/Pledge/AllTests.php
tests/phpunit/CRM/Pledge/BAO/PledgeBlockTest.php
tests/phpunit/CRM/Pledge/BAO/PledgePaymentTest.php
tests/phpunit/CRM/Pledge/BAO/PledgeTest.php
tests/phpunit/CRM/Queue/AllTests.php
tests/phpunit/CRM/Queue/Queue/AllTests.php
tests/phpunit/CRM/Queue/Queue/SqlTest.php
tests/phpunit/CRM/Queue/QueueTest.php
tests/phpunit/CRM/Queue/RunnerTest.php
tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php
tests/phpunit/CRM/Report/Form/TestCaseTest.php
tests/phpunit/CRM/UF/Page/ProfileEditorTest.php
tests/phpunit/CRM/Utils/API/ReloadOptionTest.php
tests/phpunit/CRM/Utils/ArrayTest.php
tests/phpunit/CRM/Utils/Cache/AllTests.php
tests/phpunit/CRM/Utils/Cache/SqlGroupTest.php
tests/phpunit/CRM/Utils/FileTest.php
tests/phpunit/CRM/Utils/GlobalStackTest.php
tests/phpunit/CRM/Utils/HookTest.php
tests/phpunit/CRM/Utils/HtmlToTextTest.php
tests/phpunit/CRM/Utils/JSTest.php
tests/phpunit/CRM/Utils/MailTest.php
tests/phpunit/CRM/Utils/Migrate/ImportExportTest.php
tests/phpunit/CRM/Utils/NumberTest.php
tests/phpunit/CRM/Utils/QueryFormatterTest.php
tests/phpunit/CRM/Utils/SQL/InsertTest.php
tests/phpunit/CRM/Utils/SQL/SelectTest.php
tests/phpunit/CRM/Utils/SignerTest.php
tests/phpunit/CRM/Utils/SystemTest.php
tests/phpunit/CRM/Utils/TimeTest.php
tests/phpunit/CRM/Utils/TypeTest.php
tests/phpunit/CRM/Utils/ZipTest.php
tests/phpunit/CRM/Utils/versionCheckTest.php
tests/phpunit/Civi/API/KernelTest.php
tests/phpunit/Civi/API/RequestTest.php
tests/phpunit/Civi/API/Subscriber/DynamicFKAuthorizationTest.php
tests/phpunit/Civi/API/Subscriber/TransactionSubscriberTest.php
tests/phpunit/Civi/AllTests.php
tests/phpunit/Civi/CCase/SequenceListenerTest.php
tests/phpunit/CiviTest/AuthorizeNet.php
tests/phpunit/CiviTest/CiviCaseTestCase.php
tests/phpunit/CiviTest/CiviDBAssert.php
tests/phpunit/CiviTest/CiviMailUtils.php
tests/phpunit/CiviTest/CiviReportTestCase.php
tests/phpunit/CiviTest/CiviSeleniumTestCase.php
tests/phpunit/CiviTest/CiviTestSuite.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/CiviTest/Contact.php
tests/phpunit/CiviTest/ContributionPage.php
tests/phpunit/CiviTest/Custom.php
tests/phpunit/CiviTest/Event.php
tests/phpunit/CiviTest/Membership.php
tests/phpunit/CiviTest/Participant.php
tests/phpunit/CiviTest/PaypalPro.php
tests/phpunit/CiviTest/bootstrap.php
tests/phpunit/EnvTests.php
tests/phpunit/HelloTest.php
tests/phpunit/Utils.php
tests/phpunit/WebTest/ACL/AssignUsersToRolesTest.php
tests/phpunit/WebTest/Activity/AddRecurringActivityTest.php
tests/phpunit/WebTest/Activity/ContactContextAddTest.php
tests/phpunit/WebTest/Activity/IcalTest.php
tests/phpunit/WebTest/Activity/StandaloneAddTest.php
tests/phpunit/WebTest/Admin/CustomAddTest.php
tests/phpunit/WebTest/Admin/CustomAddTestSameField.php
tests/phpunit/WebTest/Admin/Form/ScheduleReminderTest.php
tests/phpunit/WebTest/Admin/Form/Setting/LocalizationTest.php
tests/phpunit/WebTest/Admin/MoveCustomDataTest.php
tests/phpunit/WebTest/Admin/RelationshipTypeAddTest.php
tests/phpunit/WebTest/AllTests.php
tests/phpunit/WebTest/Campaign/ActivityTest.php
tests/phpunit/WebTest/Campaign/CampaignDescriptionTest.php
tests/phpunit/WebTest/Campaign/MailingTest.php
tests/phpunit/WebTest/Campaign/MembershipTest.php
tests/phpunit/WebTest/Campaign/OfflineContributionTest.php
tests/phpunit/WebTest/Campaign/OfflineEventRegistrationTest.php
tests/phpunit/WebTest/Campaign/OnlineContributionTest.php
tests/phpunit/WebTest/Campaign/OnlineEventRegistrationTest.php
tests/phpunit/WebTest/Campaign/PetitionUsageScenarioTest.php
tests/phpunit/WebTest/Campaign/PledgeTest.php
tests/phpunit/WebTest/Campaign/SurveyUsageScenarioTest.php
tests/phpunit/WebTest/Case/ActivityToCaseTest.php
tests/phpunit/WebTest/Case/AddCaseTest.php
tests/phpunit/WebTest/Case/AddCaseTypeTest.php
tests/phpunit/WebTest/Case/CaseCustomFieldsTest.php
tests/phpunit/WebTest/Case/CaseDashboardTest.php
tests/phpunit/WebTest/Contact/AddCmsUserTest.php
tests/phpunit/WebTest/Contact/AddContactsToEventAdvancedSearchTest.php
tests/phpunit/WebTest/Contact/AddTest.php
tests/phpunit/WebTest/Contact/AddViaProfileTest.php
tests/phpunit/WebTest/Contact/AddressParsingTest.php
tests/phpunit/WebTest/Contact/AdvanceSearchPaneTest.php
tests/phpunit/WebTest/Contact/AdvanceSearchPrivacyOptionsTest.php
tests/phpunit/WebTest/Contact/AdvancedSearchTest.php
tests/phpunit/WebTest/Contact/ContactReferenceFieldTest.php
tests/phpunit/WebTest/Contact/ContactTagTest.php
tests/phpunit/WebTest/Contact/CreateCmsUserFromContactTest.php
tests/phpunit/WebTest/Contact/CustomDataAddTest.php
tests/phpunit/WebTest/Contact/DeceasedContactsAdvancedSearchTest.php
tests/phpunit/WebTest/Contact/DupeContactTest.php
tests/phpunit/WebTest/Contact/EditContactTest.php
tests/phpunit/WebTest/Contact/GroupAddTest.php
tests/phpunit/WebTest/Contact/InlineFieldsEditTest.php
tests/phpunit/WebTest/Contact/MergeContactsTest.php
tests/phpunit/WebTest/Contact/MultipleContactSubTypes.php
tests/phpunit/WebTest/Contact/PrevNextTest.php
tests/phpunit/WebTest/Contact/PrivacyOptionSearchTest.php
tests/phpunit/WebTest/Contact/ProfileChecksumTest.php
tests/phpunit/WebTest/Contact/RelationshipAddTest.php
tests/phpunit/WebTest/Contact/SearchBuilderTest.php
tests/phpunit/WebTest/Contact/SearchTest.php
tests/phpunit/WebTest/Contact/SearchbyDateFilterTest.php
tests/phpunit/WebTest/Contact/SignatureTest.php
tests/phpunit/WebTest/Contact/TagAddTest.php
tests/phpunit/WebTest/Contact/TagSetSearchTest.php
tests/phpunit/WebTest/Contact/TaskActionAddToGroupTest.php
tests/phpunit/WebTest/Contact/TaskActionSendMassMailing.php
tests/phpunit/WebTest/Contact/TaskActionSendSMS.php
tests/phpunit/WebTest/Contact/UpdateProfileTest.php
tests/phpunit/WebTest/Contribute/AddBatchesTest.php
tests/phpunit/WebTest/Contribute/AddPricesetTest.php
tests/phpunit/WebTest/Contribute/ConfirmOptionalTest.php
tests/phpunit/WebTest/Contribute/ContactContextAddTest.php
tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php
tests/phpunit/WebTest/Contribute/OfflineContributionTest.php
tests/phpunit/WebTest/Contribute/OfflineRecurContributionTest.php
tests/phpunit/WebTest/Contribute/OnBehalfOfOrganization.php
tests/phpunit/WebTest/Contribute/OnlineContributionTest.php
tests/phpunit/WebTest/Contribute/OnlineMultiplePaymentProcessorTest.php
tests/phpunit/WebTest/Contribute/OnlineRecurContributionTest.php
tests/phpunit/WebTest/Contribute/PCPAddTest.php
tests/phpunit/WebTest/Contribute/StandaloneAddTest.php
tests/phpunit/WebTest/Contribute/UpdateBatchPendingContributionTest.php
tests/phpunit/WebTest/Contribute/UpdateContributionTest.php
tests/phpunit/WebTest/Contribute/UpdatePendingContributionTest.php
tests/phpunit/WebTest/Contribute/VerifySSLContributionTest.php
tests/phpunit/WebTest/Event/AddEventTest.php
tests/phpunit/WebTest/Event/AddParticipationTest.php
tests/phpunit/WebTest/Event/AddPricesetTest.php
tests/phpunit/WebTest/Event/AddRecurringEventTest.php
tests/phpunit/WebTest/Event/AdditionalPaymentTest.php
tests/phpunit/WebTest/Event/ChangeParticipantStatus.php
tests/phpunit/WebTest/Event/EventListingTest.php
tests/phpunit/WebTest/Event/EventWaitListTest.php
tests/phpunit/WebTest/Event/MultipleEventRegistrationbyCartTest.php
tests/phpunit/WebTest/Event/MultiprofileEventTest.php
tests/phpunit/WebTest/Event/PCPAddTest.php
tests/phpunit/WebTest/Event/ParticipantCountTest.php
tests/phpunit/WebTest/Event/ParticipantSearchTest.php
tests/phpunit/WebTest/Event/PricesetMaxCountTest.php
tests/phpunit/WebTest/Event/TellAFriendTest.php
tests/phpunit/WebTest/Export/ContactTest.php
tests/phpunit/WebTest/Export/ExportCiviSeleniumTestCase.php
tests/phpunit/WebTest/Financial/FinancialAccountTest.php
tests/phpunit/WebTest/Financial/FinancialAccountTypeTest.php
tests/phpunit/WebTest/Financial/FinancialBatchExport.php
tests/phpunit/WebTest/Generic/CheckActivityTest.php
tests/phpunit/WebTest/Generic/CheckDashboardTest.php
tests/phpunit/WebTest/Generic/CheckFindTest.php
tests/phpunit/WebTest/Generic/GeneralClickAroundTest.php
tests/phpunit/WebTest/Grant/ContactContextAddTest.php
tests/phpunit/WebTest/Grant/CustomFieldsetTest.php
tests/phpunit/WebTest/Grant/StandaloneAddTest.php
tests/phpunit/WebTest/Import/ActivityTest.php
tests/phpunit/WebTest/Import/AddressImportTest.php
tests/phpunit/WebTest/Import/AddressParsingTest.php
tests/phpunit/WebTest/Import/ContactCustomDataTest.php
tests/phpunit/WebTest/Import/ContactSubtypeTest.php
tests/phpunit/WebTest/Import/ContactTest.php
tests/phpunit/WebTest/Import/ContributionTest.php
tests/phpunit/WebTest/Import/CustomDataTest.php
tests/phpunit/WebTest/Import/DateFormatTest.php
tests/phpunit/WebTest/Import/DuplicateMatchingTest.php
tests/phpunit/WebTest/Import/GroupTest.php
tests/phpunit/WebTest/Import/ImportCiviSeleniumTestCase.php
tests/phpunit/WebTest/Import/MatchExternalIdTest.php
tests/phpunit/WebTest/Import/MemberTest.php
tests/phpunit/WebTest/Import/MultipleRelationshipTest.php
tests/phpunit/WebTest/Import/ParticipantTest.php
tests/phpunit/WebTest/Import/SavedMappingTest.php
tests/phpunit/WebTest/Import/TagTest.php
tests/phpunit/WebTest/Mailing/AddMessageTemplateTest.php
tests/phpunit/WebTest/Mailing/AddNewMailingComponentTest.php
tests/phpunit/WebTest/Mailing/MailingTest.php
tests/phpunit/WebTest/Mailing/SpoolTest.php
tests/phpunit/WebTest/Member/BatchUpdateViaProfileTest.php
tests/phpunit/WebTest/Member/ContactContextAddTest.php
tests/phpunit/WebTest/Member/DefaultMembershipPricesetTest.php
tests/phpunit/WebTest/Member/EditMembershipTest.php
tests/phpunit/WebTest/Member/FixedMembershipTypeTest.php
tests/phpunit/WebTest/Member/InheritedMembershipTest.php
tests/phpunit/WebTest/Member/OfflineAutoRenewMembershipTest.php
tests/phpunit/WebTest/Member/OfflineMembershipAddPricesetTest.php
tests/phpunit/WebTest/Member/OfflineMembershipRenewTest.php
tests/phpunit/WebTest/Member/OnlineAutoRenewMembershipGCTest.php
tests/phpunit/WebTest/Member/OnlineAutoRenewMembershipTest.php
tests/phpunit/WebTest/Member/OnlineMembershipAddPricesetTest.php
tests/phpunit/WebTest/Member/OnlineMembershipCreateTest.php
tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php
tests/phpunit/WebTest/Member/SeperateMembershipPaymentTest.php
tests/phpunit/WebTest/Member/StandaloneAddTest.php
tests/phpunit/WebTest/Member/UpdateMembershipScriptTest.php
tests/phpunit/WebTest/Pledge/AddCancelPaymentTest.php
tests/phpunit/WebTest/Pledge/ContactContextAddTest.php
tests/phpunit/WebTest/Pledge/ContactContextPledgePaymentAddTest.php
tests/phpunit/WebTest/Pledge/StandaloneAddDeleteTest.php
tests/phpunit/WebTest/Pledge/StandaloneAddTest.php
tests/phpunit/WebTest/Profile/BatchUpdateTest.php
tests/phpunit/WebTest/Profile/DedupeTest.php
tests/phpunit/WebTest/Profile/MultiRecordProfileAddTest.php
tests/phpunit/WebTest/Profile/ProfileAddTest.php
tests/phpunit/WebTest/Profile/ProfileCountryState.php
tests/phpunit/WebTest/Profile/ProfileGroupSubscriptionTest.php
tests/phpunit/WebTest/Profile/SearchTest.php
tests/phpunit/WebTest/Release/InstallScript.php
tests/phpunit/WebTest/Release/ReleaseTestCase.php
tests/phpunit/WebTest/Release/UpgradeScript.php
tests/phpunit/WebTest/Report/AddTest.php
tests/phpunit/WebTest/Report/DonarReportTest.php
tests/phpunit/WebTest/Report/LoggingReportTest.php
tests/phpunit/WebTest/Report/RolePermissionReportTest.php
tests/phpunit/WebTest/Utils/RestTest.php
tests/phpunit/api/v3/ACLCachingTest.php
tests/phpunit/api/v3/ACLPermissionTest.php
tests/phpunit/api/v3/APIStandardsTest.php
tests/phpunit/api/v3/APITest.php
tests/phpunit/api/v3/APIWrapperTest.php
tests/phpunit/api/v3/ActivityContactTest.php
tests/phpunit/api/v3/ActivityTest.php
tests/phpunit/api/v3/ActivityTypeTest.php
tests/phpunit/api/v3/AddressTest.php
tests/phpunit/api/v3/AllTests.php
tests/phpunit/api/v3/AttachmentTest.php
tests/phpunit/api/v3/BatchTest.php
tests/phpunit/api/v3/CRM11793Test.php
tests/phpunit/api/v3/CampaignTest.php
tests/phpunit/api/v3/CaseTest.php
tests/phpunit/api/v3/CaseTypeTest.php
tests/phpunit/api/v3/ConstantTest.php
tests/phpunit/api/v3/ContactTest.php
tests/phpunit/api/v3/ContactTypeTest.php
tests/phpunit/api/v3/ContributionPageTest.php
tests/phpunit/api/v3/ContributionRecurTest.php
tests/phpunit/api/v3/ContributionSoftTest.php
tests/phpunit/api/v3/ContributionTest.php
tests/phpunit/api/v3/CountryTest.php
tests/phpunit/api/v3/CustomFieldTest.php
tests/phpunit/api/v3/CustomGroupTest.php
tests/phpunit/api/v3/CustomSearchTest.php
tests/phpunit/api/v3/CustomValueContactTypeTest.php
tests/phpunit/api/v3/CustomValueTest.php
tests/phpunit/api/v3/DashboardContactTest.php
tests/phpunit/api/v3/DashboardTest.php
tests/phpunit/api/v3/DomainTest.php
tests/phpunit/api/v3/EmailTest.php
tests/phpunit/api/v3/EntityTagTest.php
tests/phpunit/api/v3/EventTest.php
tests/phpunit/api/v3/GrantTest.php
tests/phpunit/api/v3/GroupContactTest.php
tests/phpunit/api/v3/GroupNestingTest.php
tests/phpunit/api/v3/GroupOrganizationTest.php
tests/phpunit/api/v3/GroupTest.php
tests/phpunit/api/v3/ImTest.php
tests/phpunit/api/v3/JobProcessMailingTest.php
tests/phpunit/api/v3/JobTest.php
tests/phpunit/api/v3/LineItemTest.php
tests/phpunit/api/v3/LocBlockTest.php
tests/phpunit/api/v3/MailSettingsTest.php
tests/phpunit/api/v3/MailingABTest.php
tests/phpunit/api/v3/MailingContactTest.php
tests/phpunit/api/v3/MailingGroupTest.php
tests/phpunit/api/v3/MembershipPaymentTest.php
tests/phpunit/api/v3/MembershipStatusTest.php
tests/phpunit/api/v3/MembershipTest.php
tests/phpunit/api/v3/MembershipTypeTest.php
tests/phpunit/api/v3/MessageTemplateTest.php
tests/phpunit/api/v3/NoteTest.php
tests/phpunit/api/v3/OptionGroupTest.php
tests/phpunit/api/v3/OptionValueTest.php
tests/phpunit/api/v3/ParticipantPaymentTest.php
tests/phpunit/api/v3/ParticipantStatusTypeTest.php
tests/phpunit/api/v3/ParticipantTest.php
tests/phpunit/api/v3/PaymentProcessorTest.php
tests/phpunit/api/v3/PaymentProcessorTypeTest.php
tests/phpunit/api/v3/PhoneTest.php
tests/phpunit/api/v3/PledgePaymentTest.php
tests/phpunit/api/v3/PledgeTest.php
tests/phpunit/api/v3/PriceFieldTest.php
tests/phpunit/api/v3/PriceFieldValueTest.php
tests/phpunit/api/v3/PriceSetTest.php
tests/phpunit/api/v3/ProductTest.php
tests/phpunit/api/v3/ProfileTest.php
tests/phpunit/api/v3/RelationshipTest.php
tests/phpunit/api/v3/RelationshipTypeTest.php
tests/phpunit/api/v3/ReportTemplateTest.php
tests/phpunit/api/v3/SettingTest.php
tests/phpunit/api/v3/SurveyTest.php
tests/phpunit/api/v3/SyntaxConformanceTest.php
tests/phpunit/api/v3/SystemTest.php
tests/phpunit/api/v3/TagTest.php
tests/phpunit/api/v3/TaxContributionPageTest.php
tests/phpunit/api/v3/UFFieldTest.php
tests/phpunit/api/v3/UFGroupTest.php
tests/phpunit/api/v3/UFJoinTest.php
tests/phpunit/api/v3/UFMatchTest.php
tests/phpunit/api/v3/UtilsTest.php
tests/phpunit/api/v3/WebsiteTest.php
tests/qunit/example/test.js

index 4a85ba1dda5499a9e6fbc685ddc53292c38c94bf..5bf1787529a22bedd0e35e4e51934a5106f620cc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -229,4 +229,5 @@ class CRM_ACL_API {
 
     return in_array($groupID, $groups) ? TRUE : FALSE;
   }
+
 }
index b8cef2a1b36bd28266c8a880c047581b4eea1c11..9e5e2fb9cc44af1d05fad54385a8f14b0283047b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -228,7 +228,7 @@ class CRM_ACL_BAO_ACL extends CRM_ACL_DAO_ACL {
                         AND     {$t['GroupContact']}.status     = 'Added')";
 
     /* Query for permissions granted through an ACL group to a Contact
-         * group */
+     * group */
 
     $query[] = "SELECT      {$t['ACL']}.*, 0 as override
                     FROM        {$t['ACL']}
@@ -262,10 +262,10 @@ class CRM_ACL_BAO_ACL extends CRM_ACL_DAO_ACL {
 
     while ($dao->fetch()) {
       /* Instant bypass for the following cases:
-             * 1) the rule governs all tables
-             * 2) the rule governs all objects in the table in question
-             * 3) the rule governs the specific object we want
-             */
+       * 1) the rule governs all tables
+       * 2) the rule governs all objects in the table in question
+       * 3) the rule governs the specific object we want
+       */
 
       if (empty($dao->object_table) ||
         ($dao->object_table == $object_table
@@ -284,8 +284,8 @@ class CRM_ACL_BAO_ACL extends CRM_ACL_DAO_ACL {
         );
 
         /* If the clause returned is null, then the rule is a blanket
-                 * (id is null) on a table other than the one we're interested
-                 * in.  So skip it. */
+         * (id is null) on a table other than the one we're interested
+         * in.  So skip it. */
 
         if (empty($clause)) {
           continue;
@@ -293,7 +293,7 @@ class CRM_ACL_BAO_ACL extends CRM_ACL_DAO_ACL {
       }
 
       /* Now we figure out if this is an allow or deny rule, and possibly
-             * a contact-level override */
+       * a contact-level override */
 
       if ($dao->deny) {
         $deny[] = $clause;
@@ -977,4 +977,5 @@ ORDER BY a.object_id
     $acl->id = $aclId;
     $acl->delete();
   }
+
 }
index 8771235220e2d292f8073075850ce76916b514ec..21e49533fa32a69d984405b2dcc8fc11268fb401 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -173,4 +173,5 @@ WHERE  modified_date IS NULL
       CRM_Core_DAO::singleValueQuery("TRUNCATE TABLE civicrm_acl_contact_cache");
     }
   }
+
 }
index 9e7f1242246c14a07d7cda95dffa3b55f011f98d..13935e81ef6bf2e8db0c6f71824bafb180cb5928 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -100,4 +100,5 @@ class CRM_ACL_BAO_EntityRole extends CRM_ACL_DAO_EntityRole {
     $entityDAO->find(TRUE);
     $entityDAO->delete();
   }
+
 }
index 1769504d64931565479997bf905890b9e3d6811c..d904767aa5b0e0b9ad4b5ab66598bacc2e3b8597 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -156,30 +156,30 @@ class CRM_ACL_Form_ACL extends CRM_Admin_Form {
 
     $label = ts('Role');
     $role = array(
-        '-1' => ts('- select role -'),
-        '0' => ts('Everyone'),
-      ) + CRM_Core_OptionGroup::values('acl_role');
+      '-1' => ts('- select role -'),
+      '0' => ts('Everyone'),
+    ) + CRM_Core_OptionGroup::values('acl_role');
     $this->add('select', 'entity_id', $label, $role, TRUE);
 
     $group = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Groups'),
-      ) + CRM_Core_PseudoConstant::group();
+      '-1' => ts('- select -'),
+      '0' => ts('All Groups'),
+    ) + CRM_Core_PseudoConstant::group();
 
     $customGroup = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Custom Groups'),
-      ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_CustomField', 'custom_group_id');
+      '-1' => ts('- select -'),
+      '0' => ts('All Custom Groups'),
+    ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_CustomField', 'custom_group_id');
 
     $ufGroup = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Profiles'),
-      ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_UFField', 'uf_group_id');
+      '-1' => ts('- select -'),
+      '0' => ts('All Profiles'),
+    ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_UFField', 'uf_group_id');
 
     $event = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Events'),
-      ) + CRM_Event_PseudoConstant::event(NULL, FALSE, "( is_template IS NULL OR is_template != 1 )");
+      '-1' => ts('- select -'),
+      '0' => ts('All Events'),
+    ) + CRM_Event_PseudoConstant::event(NULL, FALSE, "( is_template IS NULL OR is_template != 1 )");
 
     $this->add('select', 'group_id', ts('Group'), $group);
     $this->add('select', 'custom_group_id', ts('Custom Data'), $customGroup);
index 2391478d6822d1ba977aaee99dc0fb541074819a..f916fc3aa7d4efe4d89b01b49b85a7a1c18aa806 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -165,4 +165,5 @@ DELETE
       }
     }
   }
+
 }
index fe092af132045e0cf09d2f4fbb957fbcc6a99a66..a7159cfb04a66a5ab99d4e1744bb449ba0648fb2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -91,4 +91,5 @@ class CRM_ACL_Form_EntityRole extends CRM_Admin_Form {
       CRM_ACL_BAO_EntityRole::create($params);
     }
   }
+
 }
index acd6254449b6acc7c4062f89cbdc3875899363c5..d9937254aa7131ecbda7320e698748da3488230f 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -189,4 +189,5 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
 
     return $perms_array;
   }
+
 }
index 82e5744119daa5d41d5fbb9114755d9c70a928a0..69070d0d3e7a848fb887caff5715f8e94734afd2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -126,7 +126,7 @@ class CRM_ACL_Page_ACL extends CRM_Core_Page_Basic {
         'url' => CRM_Utils_System::url('civicrm/admin/access',
           'reset=1'
         ),
-      )
+      ),
     );
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
     // what action to take ?
@@ -173,22 +173,22 @@ ORDER BY entity_id
     $roles = CRM_Core_OptionGroup::values('acl_role');
 
     $group = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Groups'),
-      ) + CRM_Core_PseudoConstant::group();
+      '-1' => ts('- select -'),
+      '0' => ts('All Groups'),
+    ) + CRM_Core_PseudoConstant::group();
     $customGroup = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Custom Groups'),
-      ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_CustomField', 'custom_group_id');
+      '-1' => ts('- select -'),
+      '0' => ts('All Custom Groups'),
+    ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_CustomField', 'custom_group_id');
     $ufGroup = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Profiles'),
-      ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_UFField', 'uf_group_id');
+      '-1' => ts('- select -'),
+      '0' => ts('All Profiles'),
+    ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_UFField', 'uf_group_id');
 
     $event = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Events'),
-      ) + CRM_Event_PseudoConstant::event();
+      '-1' => ts('- select -'),
+      '0' => ts('All Events'),
+    ) + CRM_Event_PseudoConstant::event();
 
     while ($dao->fetch()) {
       $acl[$dao->id] = array();
@@ -284,4 +284,5 @@ ORDER BY entity_id
   public function userContext($mode = NULL) {
     return 'civicrm/acl';
   }
+
 }
index 4f83ddeba17d342ce09f99973dbd6b0342cda805..aef3c1a849bd6592035e6c2d2212cb36fb8cb714 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -218,4 +218,5 @@ ORDER BY entity_id
   public function userContext($mode = NULL) {
     return 'civicrm/acl/basic';
   }
+
 }
index 4a6c8aa49b2e1bd5d4f5c3cf934328992b508c0c..4712453a67221fbc2bcf7b0e87f966a319e3ecb9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -225,4 +225,5 @@ class CRM_ACL_Page_EntityRole extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/acl/entityrole';
   }
+
 }
index 1685e121aeec9c099b0510c1cd18a93f78c4edca..1d5ecd066e46b9e758f583e060d5ff19fd7ebe31 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1187,8 +1187,7 @@ LEFT JOIN civicrm_activity_contact src ON (src.activity_id = ac.activity_id AND
     $attachments = NULL,
     $cc = NULL,
     $bcc = NULL,
-    // FIXME a param with no default shouldn't be last
-    $contactIds,
+    $contactIds = NULL,
     $additionalDetails = NULL
   ) {
     // get the contact details of logged in contact, which we set as from email
index 40617496684db00655a91855d327d5413821ef36..c739d0729c9511b0d3b251406217b6aa28ab7399 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -157,4 +157,5 @@ AND        civicrm_activity_contact.record_type_id = $assigneeID
     }
     return $assigneeNames;
   }
+
 }
index 329f14f8ed2959c05a24223cac9f6872ad2aa260..32ca64447dc883987d394c7e22dd6b550d62260e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -160,4 +160,5 @@ AND        civicrm_contact.is_deleted = 0
     $link = array('activity_id' => 'civicrm_activity:id');
     return $link;
   }
+
 }
index 14b95016a844e1d47b9ec7e34db92b8869ba31d5..cbc4e8ddb4dffe514f87e9eb562941a05dbcfdaf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -128,4 +128,5 @@ AND        contact_a.is_deleted = 0
 
     return $targetNames;
   }
+
 }
index 7cb7ed51af0abcd9ae29a4da988b4ce22b617818..ee518610e674ee221d7996fef77c66313e1bccf2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -137,4 +137,5 @@ class CRM_Activity_BAO_ICalendar {
     }
     return $primary;
   }
+
 }
index 2e9213e5f66762f91c26c34adcac72bc182b5b77..a24f4c02ddde272740437bc6488adcdb8b510f90 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -566,4 +566,5 @@ class CRM_Activity_BAO_Query {
 
     return $properties;
   }
+
 }
index ca5f8cb3fcb0c6568590fae46eb1b3c8bed0aad1..085e3119c594940c6d8574e7db19c926f0245eb6 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -70,4 +70,5 @@ class CRM_Activity_Controller_Search extends CRM_Core_Controller {
   public function selectorName() {
     return $this->get('selectorName');
   }
+
 }
index 4c3560fb74b823e094962c2fd5077f0920b340d7..99d080e3441071149f09b73e9bf9e4f57508facc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -178,7 +178,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
         'attributes' => array(
           'multiple' => TRUE,
           'create' => TRUE,
-          'api' => array('params' => array('is_deceased' => 0))
+          'api' => array('params' => array('is_deceased' => 0)),
         ),
       ),
       'followup_assignee_contact_id' => array(
@@ -187,7 +187,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
         'attributes' => array(
           'multiple' => TRUE,
           'create' => TRUE,
-          'api' => array('params' => array('is_deceased' => 0))
+          'api' => array('params' => array('is_deceased' => 0)),
         ),
       ),
       'followup_activity_type_id' => array(
@@ -484,8 +484,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
 
     // figure out the file name for activity type, if any
     if ($this->_activityTypeId &&
-      $this->_activityTypeFile =
-        CRM_Activity_BAO_Activity::getFileForActivityTypeId($this->_activityTypeId, $this->_crmDir)
+      $this->_activityTypeFile = CRM_Activity_BAO_Activity::getFileForActivityTypeId($this->_activityTypeId, $this->_crmDir)
     ) {
       $this->assign('activityTypeFile', $this->_activityTypeFile);
       $this->assign('crmDir', $this->_crmDir);
@@ -566,8 +565,8 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
       $defaults['source_contact_id'] = $this->_sourceContactId;
       $defaults['target_contact_id'] = $this->_targetContactId;
 
-      list($defaults['activity_date_time'], $defaults['activity_date_time_time']) =
-        CRM_Utils_Date::setDateDefaults(NULL, 'activityDateTime');
+      list($defaults['activity_date_time'], $defaults['activity_date_time_time'])
+        CRM_Utils_Date::setDateDefaults(NULL, 'activityDateTime');
     }
 
     if ($this->_activityTypeId) {
@@ -889,7 +888,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
       CRM_Core_BAO_EntityTag::del($tagParams);
 
       CRM_Core_Session::setStatus(ts("Selected Activity has been deleted successfully."), ts('Record Deleted'), 'success');
-      return;
+      return NULL;
     }
 
     // store the submitted values in an array
@@ -1008,7 +1007,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
    * @param array $params
    *   Associated array of submitted values.
    *
-   * @return $this|null|object
+   * @return self|null|object
    */
   protected function processActivity(&$params) {
     $activityAssigned = array();
@@ -1197,4 +1196,5 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
       $className::endPostProcess($this, $params, $activity);
     }
   }
+
 }
index 9addb8df9d1d187d51cc5ff64a74c366add02e8f..5e74b0d2e5014050914b334d2ac13d9b46972ee4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -84,4 +84,5 @@ class CRM_Activity_Form_ActivityFilter extends CRM_Core_Form {
     }
     return $defaults;
   }
+
 }
index 21ef6a4c87bbb896885b9d8882601618ea8aa392..9cecb5c92519a6d3cef2f96505241401dbcfb940 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -118,4 +118,5 @@ class CRM_Activity_Form_ActivityLinks extends CRM_Core_Form {
 
     $self->assign('suppressForm', TRUE);
   }
+
 }
index 59e1272310ff91fb2764df78e8e334a0f0540439..2a633ba1f37d3716ccf2dde65f7a38ac98cf98f5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -131,4 +131,5 @@ class CRM_Activity_Form_ActivityView extends CRM_Core_Form {
       )
     );
   }
+
 }
index 9503298887c9b5a5aff43e1190ef06a044a16964..9c30ef073fddc0d1a2fa253ec78a03ab8ce75adb 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -385,7 +385,7 @@ class CRM_Activity_Form_Search extends CRM_Core_Form_Search {
       // Activity date time assumes midnight at the beginning of the date
       // This sets it to almost midnight at the end of the date
       /*   if ($dateHigh <= 99999999) {
-        $dateHigh = 1000000 * $dateHigh + 235959;
+      $dateHigh = 1000000 * $dateHigh + 235959;
       } */
       $dateHigh = date('m/d/Y', strtotime($dateHigh));
       $this->_formValues['activity_date_relative'] = 0;
@@ -414,4 +414,5 @@ class CRM_Activity_Form_Search extends CRM_Core_Form_Search {
   public function getTitle() {
     return ts('Find Activities');
   }
+
 }
index e53688dd492a38b211a02a034441184a0e11379b..ef159a2004d8833cb5d2a3712397dab24ba957e7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -197,4 +197,5 @@ WHERE  activity_id IN ( $IDs ) AND
       )
     );
   }
+
 }
index 6fc196e5fcd05921f6ba5be769965e08b0b8aff9..4eefe64ce8a1e20b0ecbbc3638ba2005cfefad1b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -157,4 +157,5 @@ class CRM_Activity_Form_Task_AddToTag extends CRM_Activity_Form_Task {
     }
 
   }
+
 }
index 2225e3c29c815835efa92caf64581ee03da3c4a1..a60c9a71031ab4de9ee6f32f3851b571ecba2631 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -295,4 +295,5 @@ WHERE  a.id = %1 ";
       CRM_Core_Session::setStatus("", ts("No Updates Saved"), "info");
     }
   }
+
 }
index 65823df9b8dcc65682bfca6d560cb30fa83809c3..d6ceb4de4d3ad8c0d66142b20ec4590ca56d2013 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -85,4 +85,5 @@ class CRM_Activity_Form_Task_Delete extends CRM_Activity_Form_Task {
     CRM_Core_Session::setStatus($deletedActivities, ts('Deleted Activities'), "success");
     CRM_Core_Session::setStatus("", ts('Total Selected Activities: %1', array(1 => count($this->_activityHolderIds))), "info");
   }
+
 }
index dc463c4293f4ad8eb02219719ddbc09fcd3a7150..1f8756bfc16cad9a5d3c67a1ca2f2228fa1f7a24 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -93,4 +93,5 @@ class CRM_Activity_Form_Task_Email extends CRM_Activity_Form_Task {
   public function postProcess() {
     CRM_Contact_Form_Task_EmailCommon::postProcess($this);
   }
+
 }
index a3f5663e3bc849d83f1238fedcf151a2985949a8..408f1ac59df7056d903f605b70f17d355c2c4d1d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -94,7 +94,6 @@ class CRM_Activity_Form_Task_FileOnCase extends CRM_Activity_Form_Task {
    *
    * @return void
    */
-
   public function postProcess() {
     $formparams = $this->exportValues();
     $caseId = $formparams['unclosed_case_id'];
@@ -131,7 +130,7 @@ class CRM_Activity_Form_Task_FileOnCase extends CRM_Activity_Form_Task {
       else {
         CRM_Core_Session::setStatus(ts('Not permitted to file activity %1 %2.', array(
             1 => empty($defaults['subject']) ? '' : $defaults['subject'],
-            2 => $defaults['activity_date_time']
+            2 => $defaults['activity_date_time'],
           )),
           ts("Error"), "error");
       }
@@ -140,4 +139,5 @@ class CRM_Activity_Form_Task_FileOnCase extends CRM_Activity_Form_Task {
     CRM_Core_Session::setStatus($filedActivities, ts("Filed Activities"), "success");
     CRM_Core_Session::setStatus("", ts('Total Selected Activities: %1', array(1 => count($this->_activityHolderIds))), "info");
   }
+
 }
index c63c17493c2ce603131af0216907b3ad198e55ab..f7bbc3457da38e97928bb995641fd20558cc0ff9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -184,4 +184,5 @@ class CRM_Activity_Form_Task_PickOption extends CRM_Activity_Form_Task {
 
     $this->set('contacts', $this->_contacts);
   }
+
 }
index e3a7ba962b5697bed666e7300c05dbc0ac002bc5..29b751aea20730ae65d675a00004a46df76ecb89 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -76,7 +76,7 @@ class CRM_Activity_Form_Task_PickProfile extends CRM_Activity_Form_Task {
     if (count($this->_activityHolderIds) > $this->_maxActivities) {
       CRM_Core_Session::setStatus(ts("The maximum number of Activities you can select for Batch Update is %1. You have selected %2. Please select fewer Activities from your search results and try again.", array(
             1 => $this->_maxActivities,
-            2 => count($this->_activityHolderIds)
+            2 => count($this->_activityHolderIds),
           )), ts('Maximum Exceeded'), 'error');
       $validate = TRUE;
     }
@@ -129,7 +129,7 @@ class CRM_Activity_Form_Task_PickProfile extends CRM_Activity_Form_Task {
 
     $ufGroupElement = $this->add('select', 'uf_group_id', ts('Select Profile'),
       array(
-        '' => ts('- select profile -')
+        '' => ts('- select profile -'),
       ) + $profiles, TRUE
     );
     $this->addDefaultButtons(ts('Continue'));
@@ -172,4 +172,5 @@ class CRM_Activity_Form_Task_PickProfile extends CRM_Activity_Form_Task {
     // also reset the batch page so it gets new values from the db
     $this->controller->resetPage('Batch');
   }
+
 }
index 1ec4292a8fc9378d944415df373952b842b96391..ccadc7837c8fd7ca59e49604e2997c7550a17270 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -101,4 +101,5 @@ class CRM_Activity_Form_Task_Print extends CRM_Activity_Form_Task {
   public function postProcess() {
     // redirect to the main search page after printing is over
   }
+
 }
index 1e67b893f2689b8aa945b5253e4590b605e31d16..53f3919adca41e3e202b78f32ff83eeed2bd9e7d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -150,4 +150,5 @@ class CRM_Activity_Form_Task_RemoveFromTag extends CRM_Activity_Form_Task {
       CRM_Core_Session::setStatus($status, ts("Removed Tag <em>%1</em>", array(1 => $this->_tags[$key])), 'success', array('expires' => 0));
     }
   }
+
 }
index 5f505879f81871f608c67955e4452c48dff757cf..3b59e8da869e538784696dd67bfc2ebce92996c8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class provides the functionality to sms a group of
@@ -78,4 +78,5 @@ class CRM_Activity_Form_Task_SMS extends CRM_Activity_Form_Task {
   public function postProcess() {
     CRM_Contact_Form_Task_SMSCommon::postProcess($this);
   }
+
 }
index eee90149ac362bc0497883fa6894e1e516b5fad0..b344287d425d6331eedd34b444043a18ca28b9fc 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -93,4 +93,5 @@ INNER JOIN civicrm_contact ct ON ( ac.contact_id = ct.id )
       )
     );
   }
+
 }
index dbec3aa18d2c726022d469a857ce73e27220c4b9..f61c1041651fe16a93cfeea7009936d6d818f8f9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -57,4 +57,5 @@ class CRM_Activity_Import_Controller extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions($config->uploadDir, array('uploadFile'));
   }
+
 }
index 532b667f772f56c52c98c4576c1389b251b306d4..e25280786ec8b678bfe7eb79f342caafeb60bfe0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -124,4 +124,5 @@ class CRM_Activity_Import_Field {
     }
     return TRUE;
   }
+
 }
index a957a1cd0d279f876bf4bdcfa9d987fa067c332c..0e1ee35c0c35cec4bfed3579e83750ca1a75d69b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -170,4 +170,5 @@ class CRM_Activity_Import_Form_DataSource extends CRM_Core_Form {
   public function getTitle() {
     return ts('Upload Data');
   }
+
 }
index 6ce40979d3973c09f859cd150920827f4251375d..4b18667a78cb0cbad8b91fc3c04d84dcf4225726 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -478,4 +478,5 @@ class CRM_Activity_Import_Form_MapField extends CRM_Import_Form_MapField {
     // add all the necessary variables to the form
     $parser->set($this);
   }
+
 }
index 55146a1d00562a3a034e9eb9f6220a29a45d9d0b..7a127e6300d2852ed18c676231222c1a7575d15a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -192,4 +192,5 @@ class CRM_Activity_Import_Form_Preview extends CRM_Import_Form_Preview {
       $this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
     }
   }
+
 }
index ba091c358620313efc8aefb440c4ac09acc6a946..0d3c8c3f7b530d454aebe7bda054deefcdae4d9d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 47a1aaae267799f219dccf4b3b5032a1dabd6642..02e925737975b15888fa255d8cb8c8721b9bdf86 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -73,7 +73,7 @@ abstract class CRM_Activity_Import_Parser extends CRM_Import_Parser {
    * @return mixed
    * @throws Exception
    */
-  function run(
+  public function run(
     $fileName,
     $seperator = ',',
     &$mapper,
@@ -200,7 +200,7 @@ abstract class CRM_Activity_Import_Parser extends CRM_Import_Parser {
       if ($returnCode & self::DUPLICATE) {
         if ($returnCode & self::MULTIPLE_DUPE) {
           /* TODO: multi-dupes should be counted apart from singles
-                     * on non-skip action */
+           * on non-skip action */
         }
         $this->_duplicateCount++;
         $recordNumber = $this->_lineCount;
@@ -278,7 +278,7 @@ abstract class CRM_Activity_Import_Parser extends CRM_Import_Parser {
    * Given a list of the importable field keys that the user has selected
    * set the active fields array to this list
    *
-   * @param array mapped array of values
+   * @param array $fieldKeys
    *
    * @return void
    */
index 01e7b6869f1c9caa35829811faad06a47aa0d1c3..e6b5f44b1b1f2d0491be3cfede8e9c2053e4d5dc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index f5bc179753a119b9820d33a7c34a683f0037f5d0..6f657edeeeb7a1f7ef77ff1d77328d528bddf2be 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -546,4 +546,5 @@ class CRM_Activity_Page_AJAX {
     echo CRM_Utils_JSON::encodeDataTableSelector($activities, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
     CRM_Utils_System::civiExit();
   }
+
 }
index 6686de71d0d7149592073d8ef3c48cc6ddf7350a..194ec6039022177090b5bbe1a31b817dc7f32dca 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -204,7 +204,7 @@ class CRM_Activity_Page_Tab extends CRM_Core_Page {
 
       if (in_array($activityTypeId, array(
         $emailTypeValue,
-        $letterTypeValue
+        $letterTypeValue,
       ))) {
         return;
       }
@@ -218,4 +218,5 @@ class CRM_Activity_Page_Tab extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index dc7d7c18f7b560f03aef1c63075918cc9b14a567..49d0a950713782e365e99a65e6341948866e0b8d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -74,4 +74,5 @@ class CRM_Activity_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBoar
     parent::preProcess();
     $this->listActivities();
   }
+
 }
index 4187319007295284ab1cbf7c5aa115c3c6d5df62..5d299ed3f15714f8226416d6171ab10bc451e160 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -75,7 +75,7 @@ class CRM_Activity_Selector_Activity extends CRM_Core_Selector_Base implements C
    *
    * @return \CRM_Activity_Selector_Activity
    */
-  function __construct(
+  public function __construct(
     $contactId,
     $permission,
     $admin = FALSE,
@@ -221,7 +221,7 @@ class CRM_Activity_Selector_Activity extends CRM_Core_Selector_Base implements C
           'url' => $url,
           'qs' => $qsView,
           'title' => ts('View Activity'),
-        )
+        ),
       );
     }
 
@@ -241,7 +241,7 @@ class CRM_Activity_Selector_Activity extends CRM_Core_Selector_Base implements C
             'url' => $updateUrl,
             'qs' => $qsUpdate,
             'title' => ts('Update Activity'),
-          )
+          ),
         );
       }
     }
@@ -257,7 +257,7 @@ class CRM_Activity_Selector_Activity extends CRM_Core_Selector_Base implements C
           'url' => '#',
           'extra' => 'onclick="javascript:fileOnCase( \'file\', \'%%id%%\', null, this ); return false;"',
           'title' => ts('File on Case'),
-        )
+        ),
       );
     }
 
@@ -272,7 +272,7 @@ class CRM_Activity_Selector_Activity extends CRM_Core_Selector_Base implements C
           'url' => $delUrl,
           'qs' => $qsDelete,
           'title' => ts('Delete Activity'),
-        )
+        ),
       );
     }
 
@@ -284,7 +284,7 @@ class CRM_Activity_Selector_Activity extends CRM_Core_Selector_Base implements C
           'url' => 'civicrm/mailing/report',
           'qs' => "mid={$sourceRecordId}&reset=1&cid=%%cid%%&context=activitySelector",
           'title' => ts('View Mailing Report'),
-        )
+        ),
       );
     }
 
@@ -545,4 +545,5 @@ class CRM_Activity_Selector_Activity extends CRM_Core_Selector_Base implements C
 
     return self::$_columnHeaders;
   }
+
 }
index 082b835b0803f27b4bb75856a1c44d24d95ea0bc..296c51f37e074653027ef958278ed3c92f9a1615 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -153,7 +153,7 @@ class CRM_Activity_Selector_Search extends CRM_Core_Selector_Base implements CRM
    *
    * @return \CRM_Activity_Selector_Search
    */
-  function __construct(
+  public function __construct(
     &$queryParams,
     $action = CRM_Core_Action::NONE,
     $activityClause = NULL,
@@ -439,4 +439,5 @@ class CRM_Activity_Selector_Search extends CRM_Core_Selector_Base implements CRM
   public function getExportFileName($output = 'csv') {
     return ts('CiviCRM Activity Search');
   }
+
 }
index 84a0752e386c37027deea811a2eebf5d2535bd38..49cf8febb56f1439e5d637fc773493ed7053ca0f 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -110,4 +110,5 @@ class CRM_Activity_StateMachine_Search extends CRM_Core_StateMachine {
   public function shouldReset() {
     return FALSE;
   }
+
 }
index e83b54861a3ec3a957c276cb5e5f3eece9fe1747..24c782772333b48ab9af551e3e9214ba19b572ed 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -207,4 +207,5 @@ class CRM_Activity_Task {
       self::$_tasks[$value]['result'],
     );
   }
+
 }
index 520e895ee71aadb443d63efe6a60116bca1a0df4..3b7f16564cda4e7e4a2deb72fe3493b55f6fa0b0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -135,4 +135,5 @@ class CRM_Admin_Form extends CRM_Core_Form {
       );
     }
   }
+
 }
index 9ea0aeccc661398e0c5fc5b2cc0fba45320f5605..98221f9f320c40baea21b2d436a22734fef08de8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -69,4 +69,5 @@ class CRM_Admin_Form_CMSUser extends CRM_Core_Form {
   public function postProcess() {
     CRM_Core_BAO_CMSUser::synchronize();
   }
+
 }
index c121468edaaf29069660598b188c9c5b938d6869..baf71f1136915524b8e508b95d9d456104db411d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index d22e27e8bc6da6612fa1ba65a8977d0f304dd9b4..1d55aeb9ac3da5bc6b261164739452476682b5a5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -221,4 +221,5 @@ class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
       )
     );
   }
+
 }
index a9e9bfb94426f355c1475378b0a8afe07027d0bc..f0ae436e2525b8093331dd2b42403edba990f359 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -212,4 +212,5 @@ class CRM_Admin_Form_Job extends CRM_Admin_Form {
     }
 
   }
+
 }
index 3548ef1a59cae65c9bc80e1b0dee8b0c79f8ebcc..a0645235b422bb9f0036c93bb1009c17db4e3635 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -90,16 +90,16 @@ class CRM_Admin_Form_LabelFormats extends CRM_Admin_Form {
     // currently we support only mailing label creation, hence comment below code
     /*
     $options = array(
-      'label_format' => ts('Mailing Label'),
-      'name_badge'   => ts('Name Badge'),
+    'label_format' => ts('Mailing Label'),
+    'name_badge'   => ts('Name Badge'),
     );
 
     $labelType = $this->addRadio('label_type', ts('Used For'), $options, null, '&nbsp;&nbsp;');
 
     if ($this->_action != CRM_Core_Action::ADD) {
-      $labelType->freeze();
+    $labelType->freeze();
     }
-    */
+     */
 
     $this->add('select', 'paper_size', ts('Sheet Size'),
       array(
@@ -250,4 +250,5 @@ class CRM_Admin_Form_LabelFormats extends CRM_Admin_Form {
     }
     CRM_Core_Session::setStatus($status, ts('Saved'), 'success');
   }
+
 }
index a347b5007ee4b17e3236cd2597272fd2f02d8f52..9388183a45ac4de7be88c6a7e43b65a482075760 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 0d45fe10fa2eb37f1a0ad54e6746d240de83d8c4..b9f43ab40918df7ceeac07337caa7f5142489061 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -156,7 +156,7 @@ class CRM_Admin_Form_MailSettings extends CRM_Admin_Form {
     foreach ($fields as $f) {
       if (in_array($f, array(
         'is_default',
-        'is_ssl'
+        'is_ssl',
       ))) {
         $params[$f] = CRM_Utils_Array::value($f, $formValues, FALSE);
       }
index 0ff7d2ef5afa6bd167f8404caf7fc3c83c269bce..ce3a2ffffc24705f4bb5722f780164b325a60d29 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 0f24a14b88263efa8fe7d87e6088d830fad7e8ff..f9f07549a016b14f2aa5ea49595370447114fa57 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -144,7 +144,7 @@ class CRM_Admin_Form_MessageTemplates extends CRM_Admin_Form {
         'url' => CRM_Utils_System::url('civicrm/admin/messageTemplates',
           'action=browse&reset=1'
         ),
-      )
+      ),
     );
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
 
@@ -188,7 +188,7 @@ class CRM_Admin_Form_MessageTemplates extends CRM_Admin_Form {
 
     $this->add('select', 'pdf_format_id', ts('PDF Page Format'),
       array(
-        'null' => ts('- default -')
+        'null' => ts('- default -'),
       ) + CRM_Core_BAO_PdfFormat::getList(TRUE), FALSE
     );
 
@@ -240,4 +240,5 @@ class CRM_Admin_Form_MessageTemplates extends CRM_Admin_Form {
       }
     }
   }
+
 }
index 2ab93c48f96c40e977f187cf03e9c35b495487af..9daada8947024789f7d3b1ad09ece9eb875e104c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -165,4 +165,5 @@ class CRM_Admin_Form_Navigation extends CRM_Admin_Form {
       array(1 => $navigation->label)
     ), ts('Saved'), 'success');
   }
+
 }
index bb8c5e6a971658367ee1420a6890370fe700a940..2b789e2792d327bce5fac8baa8eebe120a2161cd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -81,7 +81,7 @@ class CRM_Admin_Form_OptionGroup extends CRM_Admin_Form {
       if (in_array($this->_values['name'], array(
         'encounter_medium',
         'case_type',
-        'case_status'
+        'case_status',
       ))) {
         static $caseCount = NULL;
         if (!isset($caseCount)) {
@@ -128,4 +128,5 @@ class CRM_Admin_Form_OptionGroup extends CRM_Admin_Form {
       CRM_Core_Session::setStatus(ts('The Option Group \'%1\' has been saved.', array(1 => $optionGroup->name)), ts('Saved'), 'success');
     }
   }
+
 }
index 375e91bac2ad71308d3b40f1021611603f322a67..95dc103b7ffcbee0d05cb193d503d3eb19c3c01e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -95,7 +95,7 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
         $scriptURL = "<a href='" . CRM_Utils_System::docURL2('Update Greetings and Address Data for Contacts', TRUE, NULL, NULL, NULL, "wiki") . "'>" . ts('Learn more about a script that can automatically update contact addressee and greeting options.') . "</a>";
         CRM_Core_Session::setStatus(ts('The selected %1 option has <strong>not been deleted</strong> because it is currently in use. Please update these contacts to use a different format before deleting this option. %2', array(
               1 => $this->_gLabel,
-              2 => $scriptURL
+              2 => $scriptURL,
             )), ts('Sorry'), 'error');
         $redirect = CRM_Utils_System::url($url, $params);
         CRM_Utils_System::redirect($redirect);
@@ -132,7 +132,7 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
     if (in_array($this->_gName, array(
       'email_greeting',
       'postal_greeting',
-      'addressee'
+      'addressee',
     ))) {
       $defaults['contactOptions'] = (CRM_Utils_Array::value('filter', $defaults)) ? $defaults['filter'] : NULL;
     }
@@ -173,7 +173,7 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
     if (!in_array($this->_gName, array(
         'email_greeting',
         'postal_greeting',
-        'addressee'
+        'addressee',
       )) && !$isReserved
     ) {
       $this->addRule('label',
@@ -304,7 +304,7 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
     if (in_array($this->_gName, array(
         'email_greeting',
         'postal_greeting',
-        'addressee'
+        'addressee',
       )) && !$isReserved
     ) {
       $values = array(
@@ -352,7 +352,7 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
     if (in_array($self->_gName, array(
           'email_greeting',
           'postal_greeting',
-          'addressee'
+          'addressee',
         )) && empty($self->_defaultValues['is_reserved'])
     ) {
       $label = $fields['label'];
@@ -455,7 +455,7 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
 
       CRM_Core_Session::setStatus(ts('The %1 \'%2\' has been saved.', array(
             1 => $this->_gLabel,
-            2 => $optionValue->label
+            2 => $optionValue->label,
           )), ts('Saved'), 'success');
     }
   }
index 4fcd2d847040f1fd6570e378b926272e9054cd63..3eff6f3f37cf46ca57f0f2d72b98ceacde1d6555 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -131,4 +131,5 @@ class CRM_Admin_Form_ParticipantStatusType extends CRM_Admin_Form {
       CRM_Core_Session::setStatus(ts('The changes have not been saved.'), ts('Saved'), 'success');
     }
   }
+
 }
index 247f7880ba18484b275842cb85ed9eb9b9f72d5e..eda41c979c795d152ccdc6f814450da83fac0799 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -414,4 +414,5 @@ class CRM_Admin_Form_PaymentProcessor extends CRM_Admin_Form {
     );
     CRM_Financial_BAO_FinancialTypeAccount::add($params);
   }
+
 }
index 2f4d62183be0218ade039cd259ce24c4ec7e8ebb..0f77aebd9813ca4d8e46ad43e6710041d4d44c86 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -244,4 +244,5 @@ UPDATE civicrm_payment_processor SET is_default = 0";
     }
     $dao->save();
   }
+
 }
index b22c7406c907ef084197d6b1ba548d8985933790..2c15f18caddcaee5b83c8620586c9ba9f8f7f131 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -133,4 +133,5 @@ class CRM_Admin_Form_PdfFormats extends CRM_Admin_Form {
     }
     CRM_Core_Session::setStatus($status);
   }
+
 }
index 232fc52e7303d3b025e8c6018955dde6deabd6d6..61965bea9cf8f109ea8a53a7f4663032728c58ed 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -100,4 +100,5 @@ class CRM_Admin_Form_Persistent extends CRM_Core_Form {
 
     CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/tplstrings', "reset=1"));
   }
+
 }
index d6ac61dade3dbb67b4c17d18a0650f26719499c0..fcc2de5ba835b86c0eb03e51b73d69ac2efb7ded 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 57be327a5967af2fce4063b56e41e05b6ec080a2..39f4c2d37a5132ce9895aa70f973dfbdd59679c4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -213,4 +213,5 @@ class CRM_Admin_Form_Preferences_Address extends CRM_Admin_Form_Preferences {
 
     $this->postProcessCommon();
   }
+
 }
index 0de208a7c59a80251a980c386e0fc716a066d70a..346814d188cdd381bad1a2338288e5b3e6eeeb0f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -59,4 +59,5 @@ class CRM_Admin_Form_Preferences_Campaign extends CRM_Admin_Form_Preferences {
 
     parent::preProcess();
   }
+
 }
index e474e28a49764401a59bc480660d2e870b4b3094..2f6e0a486f0f786504b0618253d87170c6a9e775 100644 (file)
@@ -141,4 +141,5 @@ class CRM_Admin_Form_Preferences_Contribute extends CRM_Admin_Form_Preferences {
       CRM_Core_BAO_Setting::setItem($settingName, 'CiviCRM Preferences', 'user_dashboard_options');
     }
   }
+
 }
index 3ba0ddffd4d9e52d4e13d8eed3dccfab9cd0a2f4..7edef9655f57a93a99aa3b579d4a836ddb403354 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -239,4 +239,5 @@ class CRM_Admin_Form_Preferences_Display extends CRM_Admin_Form_Preferences {
 
     $this->postProcessCommon();
   }
+
 }
index 978b585d3fa8635ddfc992e1fc2411c18fdf86fe..ecc7b4a772d80af815003cf020272443dedced14 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -68,4 +68,5 @@ class CRM_Admin_Form_Preferences_Event extends CRM_Admin_Form_Preferences {
 
     parent::preProcess();
   }
+
 }
index 7de79ac874e78be7bb1a025a0d40d666eaf22d9c..d93ec54982fe12546c0a9d81eb434bcd03e63f77 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -138,4 +138,5 @@ class CRM_Admin_Form_Preferences_Mailing extends CRM_Admin_Form_Preferences {
 
     parent::postProcess();
   }
+
 }
index 403e3ea926babcf5e333e9c643eafa33ac12dae4..42eba7f811b6feb3fe85b850777fc58abc2aca79 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -63,4 +63,5 @@ class CRM_Admin_Form_Preferences_Member extends CRM_Admin_Form_Preferences {
   public function buildQuickForm() {
     parent::buildQuickForm();
   }
+
 }
index 93e8456ce23fef38282a1d1ddf81f18aea5337d4..a5d467d6b32915aadb848ce1e038c78b1adcf373 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -77,4 +77,5 @@ class CRM_Admin_Form_Preferences_Multisite extends CRM_Admin_Form_Preferences {
 
     parent::preProcess();
   }
+
 }
index c12bd0f1a347647fe56385291847ade703cf9140..2c2f05ddb94e46f7690cd2843383b53d4ea81798 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -137,4 +137,5 @@ class CRM_Admin_Form_PreferencesDate extends CRM_Admin_Form {
       array(1 => $params['name'])
     ), ts('Saved'), 'success');
   }
+
 }
index 8129662b8b0df42a185bb8228b653a905e056366..3aaf217d6ceb1cf30c43d27d276904a11940b612 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 8e0c222178df9db58a8a7fcc0d72d8e15bd96dc5..f83e3d4ee26aedae98229d6e4554729355ee57a5 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -611,4 +611,5 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form {
     }
     CRM_Core_Session::setStatus($status, ts('Saved'), 'success');
   }
+
 }
index 5aaf82f8b83747915d859c6b8898da143bb0392c..15c197977d5ae05d8dcc293be537a917bf91f417 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -277,4 +277,5 @@ AND    time_format <> ''
     $configFile = $config->uploadDir . 'Config.IDS.ini';
     @unlink($configFile);
   }
+
 }
index a36136369251f67701b194d571f8c94488d00a77..1b71abb04e5197dba8b38304b438d0a1ba3d611a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -175,4 +175,5 @@ class CRM_Admin_Form_Setting_Component extends CRM_Admin_Form_Setting {
       }
     }
   }
+
 }
index a25e059aaef3a1c3232b381060cb351b202ce1ff..10a0b35b05cd73358b2beb81e59aa985a791fc74 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -65,4 +65,5 @@ class CRM_Admin_Form_Setting_Date extends CRM_Admin_Form_Setting {
 
     parent::buildQuickForm();
   }
+
 }
index 401219d22a11f990d33fcf654cc957caaf46b833..166761b3ffa3ad33685987363c2f771c05140564 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -59,4 +59,5 @@ class CRM_Admin_Form_Setting_Debugging extends CRM_Admin_Form_Setting {
 
     parent::buildQuickForm();
   }
+
 }
index d922123c45c4e2119e443e52ef424cd311bf7a76..ea75cd3d1b8d80e54a2ab706e736bf24f90b61d8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -313,4 +313,5 @@ class CRM_Admin_Form_Setting_Localization extends CRM_Admin_Form_Setting {
       CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/setting/localization', 'reset=1'));
     }
   }
+
 }
index 4e0c02b56ef4902fafa1a77389fed4ffb04cc2d7..0e1532f131eefc4c677050325920161bf3cec4d8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -87,4 +87,5 @@ class CRM_Admin_Form_Setting_Mail extends CRM_Admin_Form_Setting {
 
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index ee0acdd7f6139e69e9c485521f7ea4d9d4b22907..8b4591dc93d3fbfcfe6fb0a8b59dab9f8c11b12b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -93,4 +93,5 @@ class CRM_Admin_Form_Setting_Mapping extends CRM_Admin_Form_Setting {
   public function addRules() {
     $this->addFormRule(array('CRM_Admin_Form_Setting_Mapping', 'formRule'));
   }
+
 }
index 77008585f0f03fa3b9a78826436fa582f6938ddc..513bc5a650372dc80f7cd1b8aa22df7096ca2da5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -174,4 +174,5 @@ class CRM_Admin_Form_Setting_Miscellaneous extends CRM_Admin_Form_Setting {
       }
     }
   }
+
 }
index 3d4408201714c52b6c70e67f6c042ad893381620..c19af371a9485fc08abd1f7258e5f8bfdb61763a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -73,4 +73,5 @@ class CRM_Admin_Form_Setting_Path extends CRM_Admin_Form_Setting {
 
     parent::rebuildMenu();
   }
+
 }
index aaa858c5580fe8faa7b5660f915022e1bacd4788..4c401173170462f5b8df61cf9bbb725bbe4d8a7e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -96,4 +96,5 @@ class CRM_Admin_Form_Setting_Search extends CRM_Admin_Form_Setting {
 
     parent::buildQuickForm();
   }
+
 }
index cbb44aa8c2653183636905f6eb11e72435e4f98f..3343a950394bd290027b8d1216d3c2ef66fdd887 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -120,7 +120,7 @@ class CRM_Admin_Form_Setting_Smtp extends CRM_Admin_Form_Setting {
         $from = '"' . $domainEmailName . '" <' . $domainEmailAddress . '>';
         $testMailStatusMsg = ts('Sending test email. FROM: %1 TO: %2.<br />', array(
             1 => $domainEmailAddress,
-            2 => $toEmail
+            2 => $toEmail,
           ));
 
         $params = array();
@@ -276,4 +276,5 @@ class CRM_Admin_Form_Setting_Smtp extends CRM_Admin_Form_Setting {
     }
     return $this->_defaults;
   }
+
 }
index 5ca2b082d71bd679f68a25f0b9d8241d424c59dd..1e99f62cbe5681977c29dbadc945014fc4f8c872 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -97,4 +97,5 @@ class CRM_Admin_Form_Setting_UF extends CRM_Admin_Form_Setting {
 
     parent::buildQuickForm();
   }
+
 }
index 000ef9c2435e69e702e70243f39888a1a9ff7633..765214b7dc860e0f54ebb1cb6a8eb6881d2cee14 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -166,4 +166,5 @@ class CRM_Admin_Form_Setting_UpdateConfigBackend extends CRM_Admin_Form_Setting
 
     parent::rebuildMenu();
   }
+
 }
index d16a5e8839580bcee78e8ea59581be4ce3d5d2e6..eb1b1df52c24cb3aaf4b92aa029937c8d7dfc9a3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -105,4 +105,5 @@ class CRM_Admin_Form_Setting_Url extends CRM_Admin_Form_Setting {
 
     parent::rebuildMenu();
   }
+
 }
index 2ddd301f5eb6a00286b3d858ee3149ed2197e4e9..e1c9a276be5f47fda98de0762e8781ad6df4484e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index b0d0db63a226679436d6c36b2a33b50fd1958745..009060b42ee8446dcd93f400fbd44ca1f892c2bc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -281,4 +281,5 @@ class CRM_Admin_Form_WordReplacements extends CRM_Core_Form {
       ));
     }
   }
+
 }
index a95514675eea54a5cc6eca43f5b8aee4ebf06a88..38a6fa76d2eb8fd7fc2e5c9453c29afc6aa199f4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 5b5e1bdf3acc5426255a77c51d699bbef560a362..ddf46d20c5b5c79416f91511f16327fcb06cdeaf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -64,4 +64,5 @@ class CRM_Admin_Page_APIDoc extends CRM_Core_Page {
   public function userContext($mode = NULL) {
     return 'civicrm/api/doc';
   }
+
 }
index c5f4d392878d304f1e67d4fc6cbc2809074eb581..7b93156a49115872e166df0d1bc16cb01c5ec687 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -60,4 +60,5 @@ class CRM_Admin_Page_APIExplorer extends CRM_Core_Page {
   public function userContext() {
     return 'civicrm/api/explorer';
   }
+
 }
index 4f7ef3020d98eeaf9b20e25994b9befe32b9c0b0..e6f704708b397a61fe4ed255ff87870602998d99 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -79,4 +79,5 @@ class CRM_Admin_Page_Access extends CRM_Core_Page {
     }
     return parent::run();
   }
+
 }
index 07fa772e739504a96fe40fb61915cbe7061f3c83..fa9a0d6bb43cfbda314634f52763d14fb0b2fdd9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -120,4 +120,5 @@ class CRM_Admin_Page_Admin extends CRM_Core_Page {
     $this->_showHide->addToTemplate();
     return parent::run();
   }
+
 }
index 8379019219232bc60ccc358c317e3dfa02c83238..4275aded1b4879980f2b24ff6ba2aba5b5c1d0f8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -68,4 +68,5 @@ class CRM_Admin_Page_CMSUser extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 545b54cc5c056cd7f0b270174b77f7b86e5bd342..01121fca446c2a545e65d1637f38a2fd6a0d71ab 100644 (file)
@@ -55,4 +55,5 @@ class CRM_Admin_Page_ConfigTaskList extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index eaff918f5ea7ef653e7b94e20d38cdd298502197..496dd1a202c2e861840a49f32bdcb14e21e1c1f6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -162,4 +162,5 @@ class CRM_Admin_Page_ContactType extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/options/subtype';
   }
+
 }
index da2c1ab391a9fc708c41964a104c2a8fa158dfe1..572254637f3885998843736af2e44aef3c23dfab 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -171,4 +171,5 @@ class CRM_Admin_Page_EventTemplate extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/eventTemplate';
   }
+
 }
index e442cc38f2d410dd71880fe6f91c9beecd586930..2246b0f1297a0a62ae07fa875ee45584a77a5b62 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This is a part of CiviCRM extension management functionality.
@@ -333,4 +333,5 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic {
     }
     return $extensionRow;
   }
+
 }
index b8aca70fa3b8b701ce7a790d3be8c4bb7a965c93..c453e07eddd8139bcea15ef636028b4eca39de9b 100644 (file)
@@ -30,4 +30,5 @@ class CRM_Admin_Page_ExtensionsUpgrade extends CRM_Core_Page {
   public static function onEnd(CRM_Queue_TaskContext $ctx) {
     CRM_Core_Error::debug_log_message('CRM_Admin_Page_ExtensionsUpgrade: Finish upgrades');
   }
+
 }
index e7fcf9987dc288345fb8886308b60122493684b9..fad5705d08c65fb7287825e24f9e965db916372f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -219,4 +219,5 @@ class CRM_Admin_Page_Job extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/job';
   }
+
 }
index 366d2c58fe776e7626eddac9e5f681e3c2186c18..50795acb71c66eed6c29b3d24b8129448bb76a93 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -83,7 +83,7 @@ class CRM_Admin_Page_JobLog extends CRM_Core_Page_Basic {
         'url' => CRM_Utils_System::url('civicrm/admin',
           'reset=1'
         ),
-      )
+      ),
     );
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
     return parent::run();
@@ -104,8 +104,7 @@ class CRM_Admin_Page_JobLog extends CRM_Core_Page_Basic {
 
     $jobName = NULL;
     if ($jid) {
-      $jobName =
-        CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Job', $jid);
+      $jobName = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Job', $jid);
     }
 
     $this->assign('jobName', $jobName);
@@ -163,4 +162,5 @@ class CRM_Admin_Page_JobLog extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/job';
   }
+
 }
index e281eb266be28ddc848fea06c28986cd3a90f07c..8ce4ddfefacec352d0b44e5ba7588bed07daae83 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -167,4 +167,5 @@ class CRM_Admin_Page_LabelFormats extends CRM_Core_Page_Basic {
 
     $this->assign('rows', $labelFormatList);
   }
+
 }
index cf88450a2d92ad0df1ce3668b4ae7274e27556b4..7fd1b63d6a1c99bb9713ef56e65e21a1f643b2b1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -124,4 +124,5 @@ class CRM_Admin_Page_LocationType extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/locationType';
   }
+
 }
index 358aba07404d9e87676677a5b14d64d7ad995421..5e35e9c61d8e60d12876fd7ef557ae131fb6af15 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -160,4 +160,5 @@ class CRM_Admin_Page_MailSettings extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/mailSettings';
   }
+
 }
index c1b4c7404fb7ab047a32dbaa776ce184873f859c..a8070ce5f169e7be38c46b53a04ef6831f120d20 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -146,4 +146,5 @@ class CRM_Admin_Page_Mapping extends CRM_Core_Page_Basic {
     $sort = 'mapping_type asc';
     return parent::run($sort);
   }
+
 }
index ad3bed60bfc21950656f44af4dbf02ee80a40752..19586b60c614fe3e3d92afe0c70b0cd234961693 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -293,4 +293,5 @@ class CRM_Admin_Page_MessageTemplates extends CRM_Core_Page_Basic {
 
     $this->assign('rows', $rows);
   }
+
 }
index 76b33e36d12166fee928cf88dd826aa8e4a82040..6b0b09c481ddcf44b5d697ce60fd22374d744677 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -58,10 +58,11 @@ class CRM_Admin_Page_Navigation extends CRM_Core_Page_Basic {
   /**
    * Get action Links
    *
-   * @return array
+   * @return array|NULL
    *   (reference) of action links
    */
   public function &links() {
+    return NULL;
   }
 
   /**
@@ -109,4 +110,5 @@ class CRM_Admin_Page_Navigation extends CRM_Core_Page_Basic {
       ->addScriptFile('civicrm', 'packages/jquery/plugins/jstree/jquery.jstree.js', 0, 'html-header', FALSE)
       ->addStyleFile('civicrm', 'packages/jquery/plugins/jstree/themes/default/style.css', 0, 'html-header');
   }
+
 }
index 49d42dab9ee5d5628727c99e2c6a92a9e62e9f44..028b3f358dacf44ed9d79ab3f109e07cac8df30c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -125,7 +125,7 @@ class CRM_Admin_Page_Options extends CRM_Core_Page_Basic {
           'url' => CRM_Utils_System::url('civicrm/admin/access',
             'reset=1'
           ),
-        )
+        ),
       );
       CRM_Utils_System::appendBreadCrumb($breadCrumb);
     }
@@ -210,7 +210,7 @@ class CRM_Admin_Page_Options extends CRM_Core_Page_Basic {
             'url' => 'civicrm/contact/search/custom',
             'qs' => 'reset=1&csid=%%value%%',
             'title' => ts('Run %1', array(1 => self::$_gName)),
-          )
+          ),
         );
         self::$_links = $runLink + self::$_links;
       }
@@ -289,4 +289,5 @@ class CRM_Admin_Page_Options extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/options' . (self::$_gName ? '/' . self::$_gName : '');
   }
+
 }
index b4d931f6a18937a69086efdd04797113464f76b7..a0d9ba56b6a74a3abe5198580e8b7ee4c4e0f166 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -80,7 +80,7 @@ class CRM_Admin_Page_ParticipantStatusType extends CRM_Core_Page_Basic {
   public function browse() {
     $statusTypes = array();
 
-    $dao = new CRM_Event_DAO_ParticipantStatusType;
+    $dao = new CRM_Event_DAO_ParticipantStatusType();
     $dao->orderBy('weight');
     $dao->find();
 
@@ -92,7 +92,7 @@ class CRM_Admin_Page_ParticipantStatusType extends CRM_Core_Page_Basic {
       'Awaiting approval',
       'Pending from waitlist',
       'Pending from approval',
-      'Rejected'
+      'Rejected',
     );
 
     while ($dao->fetch()) {
@@ -142,4 +142,5 @@ class CRM_Admin_Page_ParticipantStatusType extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/participant_status';
   }
+
 }
index b329ea11e7e1b3943e3de4ee37d4ef98ac21e42a..d2aa930b7927492efc9d11a055ccdfc13efecbee 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -106,7 +106,7 @@ class CRM_Admin_Page_PaymentProcessor extends CRM_Core_Page_Basic {
     //CRM-15546
     $paymentProcessorTypes = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_PaymentProcessor', 'payment_processor_type_id', array(
         'labelColumn' => 'name',
-        'flip' => 1
+        'flip' => 1,
       ));
     $this->assign('defaultPaymentProcessorType', $paymentProcessorTypes['PayPal']);
     $breadCrumb = array(
@@ -115,7 +115,7 @@ class CRM_Admin_Page_PaymentProcessor extends CRM_Core_Page_Basic {
         'url' => CRM_Utils_System::url('civicrm/admin',
           'reset=1'
         ),
-      )
+      ),
     );
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
     return parent::run();
@@ -199,4 +199,5 @@ class CRM_Admin_Page_PaymentProcessor extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/paymentProcessor';
   }
+
 }
index ea7c4666f2ab603efa0423d520ceb221836f0cf7..86b7fdb2b3eb2f5936789ab21159d842cc63c0a1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -122,4 +122,5 @@ class CRM_Admin_Page_PaymentProcessorType extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/paymentProcessorType';
   }
+
 }
index 5cdff8748c71359d1c7d620326d525c504eba7aa..bda33b66cabc716affe45897e694575b0983f913 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -150,4 +150,5 @@ class CRM_Admin_Page_PdfFormats extends CRM_Core_Page_Basic {
 
     $this->assign('rows', $pdfFormatList);
   }
+
 }
index 9413518fcf14550647f41b6d7a64e99a3d85c4e0..7df058b9deb8ee0ff39140c3d8f89f5432667c40 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -52,7 +52,7 @@ class CRM_Admin_Page_Persistent extends CRM_Core_Page {
    * @return array
    *   (reference) of action links
    */
-  function &stringActionLinks() {
+  public function &stringActionLinks() {
     // check if variable _actionsLinks is populated
     if (!isset(self::$_stringActionLinks)) {
 
@@ -150,4 +150,5 @@ class CRM_Admin_Page_Persistent extends CRM_Core_Page {
     );
     $this->assign('rows', $rows);
   }
+
 }
index b1d1e7ff0d86ce6f7d791523df99986884267423..251db921a2b0fb175eab8b9fc424026a635bfc8e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -121,4 +121,5 @@ class CRM_Admin_Page_PreferencesDate extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/setting/preferences/date';
   }
+
 }
index a8b8be2281ebb6a874db608cab5f45cca34bebd9..c3178e1b8a0068174a59550da995fab3e6bd76a6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -130,4 +130,5 @@ class CRM_Admin_Page_RelationshipType extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/reltype';
   }
+
 }
index abf55130b579f8b22bf703dfd9d82127cf175f41..b0b511de25c2e0f6eaf7a005e747bc7a537701f5 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -164,4 +164,5 @@ class CRM_Admin_Page_ScheduleReminders extends CRM_Core_Page_Basic {
 
     $this->assign('rows', $reminderList);
   }
+
 }
index a528fc005d6070d0dee0261a20e236788f244af3..acd760dad3f3f8ab2c8a190997365935b49031c3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -47,4 +47,5 @@ class CRM_Admin_Page_Setting extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index fe2d55c6e791a0c3399e70af888c0e909df0e882..46653e6fb24bad796ffcbb09c0cb2a65eb85f173 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -216,4 +216,5 @@ WHERE t2.id IS NULL {$reservedClause}";
 
     $this->assign('rows', $values);
   }
+
 }
index 14611420375e8cbe8fa4d8a045b99999a135a916..c0e0f8ff794d577d3c9d4c86d3ba8dc2a068c46e 100644 (file)
@@ -21,7 +21,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -493,4 +493,5 @@ class CRM_Badge_BAO_Badge {
     $eventBadgeClass = new CRM_Badge_BAO_Badge();
     $eventBadgeClass->createLabels($rows, $layoutInfo);
   }
+
 }
index bfd3ef58afd94635e87dfa27caac6cf2df3709ca..94231886a7a36e55e012398e82e5b4a73966356d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -182,4 +182,5 @@ class CRM_Badge_BAO_Layout extends CRM_Core_DAO_PrintLabel {
   static public function getDecodedData($jsonData) {
     return json_decode($jsonData, TRUE);
   }
+
 }
index 0559403951de10c9a72498135d729a6a5d8e0d6a..08fb2e29febe895c4375c297f2726d0bf553451e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -237,4 +237,5 @@ class CRM_Badge_Form_Layout extends CRM_Admin_Form {
 
     CRM_Badge_BAO_Badge::buildBadges($params, $this);
   }
+
 }
index a69a01578e20e97482d9f3143f4c1d8f6d12a350..e63feef6ea052a36532b25664fcdea12ae98fbb8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -37,4 +37,5 @@ class CRM_Badge_Page_AJAX {
     list($w, $h) = CRM_Badge_BAO_Badge::getImageProperties($img);
     CRM_Utils_JSON::output(array('width' => $w, 'height' => $h));
   }
+
 }
index a33fef2442e68b9c0f71030b239dd1cf7a0200dc..3fd23599219785e817eed9f7acf54c5befe95ae6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -122,4 +122,5 @@ class CRM_Badge_Page_Layout extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/badgelayout';
   }
+
 }
index a3774a4bc7f3d96a3bf80c554bcc05123163b20c..624de900a4b8f17cad63992e480c88c8592026d9 100755 (executable)
@@ -299,8 +299,7 @@ class CRM_Batch_BAO_Batch extends CRM_Batch_DAO_Batch {
         $newLinks = array();
       }
       elseif ($params['context'] == 'financialBatch') {
-        $values['check'] =
-          "<input type='checkbox' id='check_" .
+        $values['check'] = "<input type='checkbox' id='check_" .
           $object->id .
           "' name='check_" .
           $object->id .
@@ -673,34 +672,33 @@ LEFT JOIN civicrm_contact contact_a ON contact_a.id = civicrm_contribution.conta
 LEFT JOIN civicrm_contribution_soft ON civicrm_contribution_soft.contribution_id = civicrm_contribution.id
 ";
 
-    $searchFields =
-      array(
-        'sort_name',
-        'financial_type_id',
-        'contribution_page_id',
-        'contribution_payment_instrument_id',
-        'contribution_transaction_id',
-        'contribution_source',
-        'contribution_currency_type',
-        'contribution_pay_later',
-        'contribution_recurring',
-        'contribution_test',
-        'contribution_thankyou_date_is_not_null',
-        'contribution_receipt_date_is_not_null',
-        'contribution_pcp_made_through_id',
-        'contribution_pcp_display_in_roll',
-        'contribution_date_relative',
-        'contribution_amount_low',
-        'contribution_amount_high',
-        'contribution_in_honor_of',
-        'contact_tags',
-        'group',
-        'contribution_date_relative',
-        'contribution_date_high',
-        'contribution_date_low',
-        'contribution_check_number',
-        'contribution_status_id',
-      );
+    $searchFields = array(
+      'sort_name',
+      'financial_type_id',
+      'contribution_page_id',
+      'contribution_payment_instrument_id',
+      'contribution_transaction_id',
+      'contribution_source',
+      'contribution_currency_type',
+      'contribution_pay_later',
+      'contribution_recurring',
+      'contribution_test',
+      'contribution_thankyou_date_is_not_null',
+      'contribution_receipt_date_is_not_null',
+      'contribution_pcp_made_through_id',
+      'contribution_pcp_display_in_roll',
+      'contribution_date_relative',
+      'contribution_amount_low',
+      'contribution_amount_high',
+      'contribution_in_honor_of',
+      'contact_tags',
+      'group',
+      'contribution_date_relative',
+      'contribution_date_high',
+      'contribution_date_low',
+      'contribution_check_number',
+      'contribution_status_id',
+    );
     $values = array();
     foreach ($searchFields as $field) {
       if (isset($params[$field])) {
@@ -812,4 +810,5 @@ WHERE  {$where}
     }
     return $batches;
   }
+
 }
index 01c59b57dc363213415a6c7e309b22ded9d08a04..3416871c7dd61ab920ee0f120d7a763f2171be40 100755 (executable)
@@ -130,4 +130,5 @@ class CRM_Batch_Form_Batch extends CRM_Admin_Form {
       $session->replaceUserContext(CRM_Utils_System::url('civicrm/batch/entry', "id={$batch->id}&reset=1"));
     }
   }
+
 }
index 854ca2ba758197240682e2838b94ef14da00dffb..6c9f0de27c3576e08e7d25464953ebef6564ec9a 100755 (executable)
@@ -870,4 +870,5 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
   public function testProcessContribution($params) {
     return $this->processContribution($params);
   }
+
 }
index f8e092a26de3d77b5fc159151bf313d55f189766..794fc8e54b518d4b9656427fe304e44ed84714d6 100644 (file)
@@ -63,4 +63,5 @@ class CRM_Batch_Form_Search extends CRM_Core_Form {
     parent::buildQuickForm();
     $this->assign('suppressForm', TRUE);
   }
+
 }
index 1de2a868bd985dac906e60f3b9f56b263023be50..3ecc88e6dedd70fdf9f0566269838802d5c73b14 100644 (file)
@@ -117,4 +117,5 @@ class CRM_Batch_Page_AJAX {
     echo CRM_Utils_JSON::encodeDataTableSelector($batches, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
     CRM_Utils_System::civiExit();
   }
+
 }
index 3e326a1cfae9a425732f609b06f4155490e83c9e..193056cd3757e015d57f7c08508575c7e2c17045 100644 (file)
@@ -120,4 +120,5 @@ class CRM_Batch_Page_Batch extends CRM_Core_Page_Basic {
     $form->process();
     $form->run();
   }
+
 }
index 843ddced70c3044a14465906e2672118c33684c9..49b1746763f6ddf6c2c2d07661077e0d71a49ad0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -120,4 +120,5 @@ class CRM_Bridge_OG_CiviCRM {
       }
     }
   }
+
 }
index 3acaeb810ae37214d20a006e9bd2e1d69a61a0d0..62a3cec301459d157cd2e2879f1cfb4c920a044e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -268,4 +268,5 @@ SELECT v.id
       }
     }
   }
+
 }
index fea608be4efb7ed6a59f76274805890adf30ee8a..886587187fa70f2dc8ec14e72b6ad29b74435f05 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -149,4 +149,5 @@ SELECT id
 
     return $groupID;
   }
+
 }
index 940a04e6df970bb9600bf8aa99fa51e04873ff9c..8909fcb7f4c541a88261f0f78162de6a7b340d17 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -48,7 +48,7 @@ class CRM_Campaign_BAO_Campaign extends CRM_Campaign_DAO_Campaign {
    */
   public static function create(&$params) {
     if (empty($params)) {
-      return;
+      return NULL;
     }
 
     if (!(CRM_Utils_Array::value('id', $params))) {
@@ -685,4 +685,5 @@ INNER JOIN  civicrm_group grp ON ( grp.id = campgrp.entity_id )
     }
     $form->assign('campaignInfo', $campaignInfo);
   }
+
 }
index 30136a430ec9fa4e661e4ab8ce088cee26f1081d..42cb414b6817e96acb239c3e7b2c83fd6f921fcc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -177,7 +177,7 @@ SELECT  petition.id                         as id,
    */
   public function createSignature(&$params) {
     if (empty($params)) {
-      return;
+      return NULL;
     }
 
     if (!isset($params['sid'])) {
@@ -637,7 +637,6 @@ AND         tag_id = ( SELECT id FROM civicrm_tag WHERE name = %2 )";
             )
           ) . "@$emailDomain";
 
-
         $confirmUrl = CRM_Utils_System::url('civicrm/petition/confirm',
           "reset=1&cid={$se->contact_id}&sid={$se->id}&h={$se->hash}&a={$params['activityId']}&pid={$params['sid']}",
           TRUE
@@ -674,4 +673,5 @@ AND         tag_id = ( SELECT id FROM civicrm_tag WHERE name = %2 )";
         break;
     }
   }
+
 }
index 137aa33b8762d1e9666dbd5f4831e3317570e338..3124b1d24101a77b0a23dcac72279012c41bc274 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -627,4 +627,5 @@ INNER JOIN  civicrm_custom_group grp on fld.custom_group_id = grp.id
     );
     $query->_tables[$tableName] = $query->_whereTables[$tableName] = 1;
   }
+
 }
index 96661f31b20117e7571c50a1cc47547dbdd5a61b..9e2463801123d334c6bf4facba8319d3921c4dde 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -306,14 +306,9 @@ SELECT  survey.id    as id,
   }
 
   /**
-   * Get Surveys activity types
-   *
-   *
+   * Get Survey activity types.
    */
-  static function getSurveyActivityType(
-    $returnColumn = 'label',
-    $includePetitionActivityType = FALSE
-  ) {
+  public static function getSurveyActivityType($returnColumn = 'label', $includePetitionActivityType = FALSE) {
     static $activityTypes;
     $cacheKey = "{$returnColumn}_{$includePetitionActivityType}";
 
@@ -449,7 +444,7 @@ SELECT  survey.id    as id,
     foreach ($returnProperties as $property => $ignore) {
       $value = (in_array($property, array(
         'city',
-        'street_address'
+        'street_address',
       ))) ? 'address' : $property;
       switch ($property) {
         case 'sort_name':
@@ -522,9 +517,7 @@ Group By  contact.id";
    * @return array
    *   array of survey activity.
    */
-  static function voterActivityDetails(
-    $surveyId, $voterIds, $interviewerId = NULL,
-    $statusIds = array()) {
+  public static function voterActivityDetails($surveyId, $voterIds, $interviewerId = NULL, $statusIds = array()) {
     $activityDetails = array();
     if (!$surveyId ||
       !is_array($voterIds) || empty($voterIds)
@@ -585,7 +578,7 @@ INNER JOIN  civicrm_activity_contact activityAssignment
    * @return array
    *   An array of survey activity.
    */
-  static function getSurveyActivities(
+  public static function getSurveyActivities(
     $surveyId,
     $interviewerId = NULL,
     $statusIds = NULL,
@@ -742,7 +735,7 @@ INNER JOIN  civicrm_contact contact_a ON ( activityTarget.contact_id = contact_a
    *
    * @param int $activityId
    *   Activity id.
-   * @return boolean
+   * @return bool
    */
   public static function isSurveyActivity($activityId) {
     $isSurveyActivity = FALSE;
@@ -840,13 +833,12 @@ INNER JOIN  civicrm_contact contact_a ON ( activityTarget.contact_id = contact_a
     if (CRM_Core_Permission::check('access CiviReport')) {
       $reportID = self::getReportID($surveyId);
       if ($reportID) {
-        $voterLinks['report'] =
-          array(
-            'name' => 'report',
-            'url' => "civicrm/report/instance/{$reportID}",
-            'qs' => 'reset=1',
-            'title' => ts('View Survey Report'),
-          );
+        $voterLinks['report'] = array(
+          'name' => 'report',
+          'url' => "civicrm/report/instance/{$reportID}",
+          'qs' => 'reset=1',
+          'title' => ts('View Survey Report'),
+        );
       }
     }
 
@@ -1153,4 +1145,5 @@ UPDATE  civicrm_activity
     }
     return CRM_Core_PseudoConstant::get(__CLASS__, $fieldName, $params, $context);
   }
+
 }
index f0d87aa467d89455336023c63791a2171d27fca5..50e9e829b9a10e1e53af1cdf01c8b52ac90fbfa6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Config handles all the run time configuration changes that the system needs to deal with.
index f0aad4fa7a52a03af702796a8e979508ee2e8081..73c21972a83a4f096b6c01cc52b67c9b07b79310 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,4 +62,5 @@ class CRM_Campaign_Controller_Search extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions();
   }
+
 }
index 937fc03ae577a4d88e17592385c8af7b5326acd2..c80c7b7b061fa017e7aeb56acfb11843579abbb1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -145,24 +145,17 @@ class CRM_Campaign_Form_Campaign extends CRM_Core_Form {
     }
 
     if (isset($defaults['start_date'])) {
-      list($defaults['start_date'],
-        $defaults['start_date_time']
-        ) = CRM_Utils_Date::setDateDefaults($defaults['start_date'],
-        'activityDateTime'
-      );
+      list($defaults['start_date'], $defaults['start_date_time'])
+        = CRM_Utils_Date::setDateDefaults($defaults['start_date'], 'activityDateTime');
     }
     else {
-      list($defaults['start_date'],
-        $defaults['start_date_time']
-        ) = CRM_Utils_Date::setDateDefaults();
+      list($defaults['start_date'], $defaults['start_date_time'])
+        = CRM_Utils_Date::setDateDefaults();
     }
 
     if (isset($defaults['end_date'])) {
-      list($defaults['end_date'],
-        $defaults['end_date_time']
-        ) = CRM_Utils_Date::setDateDefaults($defaults['end_date'],
-        'activityDateTime'
-      );
+      list($defaults['end_date'], $defaults['end_date_time'])
+        = CRM_Utils_Date::setDateDefaults($defaults['end_date'], 'activityDateTime');
     }
 
     if (!isset($defaults['is_active'])) {
@@ -386,4 +379,5 @@ class CRM_Campaign_Form_Campaign extends CRM_Core_Form {
       $session->replaceUserContext(CRM_Utils_System::url('civicrm/campaign', 'reset=1&subPage=campaign'));
     }
   }
+
 }
index 169f0b48d0b225419d54c344139c9f897febd9b0..180412d8eafdfab5711ab5c10123f121a54a8550 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -165,4 +165,5 @@ class CRM_Campaign_Form_Gotv extends CRM_Core_Form {
 
     $this->assign('errorMessages', empty($errorMessages) ? FALSE : $errorMessages);
   }
+
 }
index 973b6e29b9ae5694fdabd0f3c20c7caf3ba3a3b9..1a77939d4c4ce8bd9410fe7842ea5d5ccf9920e3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -122,8 +122,6 @@ class CRM_Campaign_Form_Petition extends CRM_Core_Form {
    * Set default values for the form. Note that in edit/view mode
    * the default values are retrieved from the database
    *
-   * @param null
-   *
    * @return array
    *   array of default values
    */
@@ -199,7 +197,7 @@ class CRM_Campaign_Form_Petition extends CRM_Core_Form {
     // custom group id
     $this->add('select', 'contact_profile_id', ts('Contact Profile'),
       array(
-        '' => ts('- select -')
+        '' => ts('- select -'),
       ) + $customContactProfiles, TRUE
     );
 
@@ -369,4 +367,5 @@ WHERE  $whereClause
       $session->replaceUserContext(CRM_Utils_System::url('civicrm/campaign', 'reset=1&subPage=petition'));
     }
   }
+
 }
index 1fe046fcad08f819e18f56064a8fa47dd0fa72b6..5e70c6d336b042bb3b0576e34ebec273986678cc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -221,7 +221,6 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
       CRM_Core_Error::fatal('The contact profile needs to contain the primary email address field');
     }
 
-
     $ufJoinParams['weight'] = 1;
     $this->_activityProfileId = CRM_Core_BAO_UFJoin::findUFGroupId($ufJoinParams);
 
@@ -326,7 +325,6 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
    * @return void
    * @see valid_date
    */
-
   public static function formRule($fields, $files, $errors) {
     $errors = array();
 
@@ -344,7 +342,6 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
       'tag_unconfirmed'
     );
 
-
     if ($tag_name) {
       // Check if contact 'email confirmed' tag exists, else create one
       // This should be in the petition module initialise code to create a default tag for this
@@ -496,7 +493,6 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
         break;
     }
 
-
     $transaction = new CRM_Core_Transaction();
 
     $addToGroupID = isset($this->_addToGroupID) ? $this->_addToGroupID : NULL;
@@ -570,11 +566,10 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
       $this->postProcessHook();
 
       // set the template to thank you
-      $url =
-        CRM_Utils_System::url(
-          'civicrm/petition/thankyou',
-          'pid=' . $this->_surveyId . '&id=' . $this->_sendEmailMode . '&reset=1'
-        );
+      $url = CRM_Utils_System::url(
+        'civicrm/petition/thankyou',
+        'pid=' . $this->_surveyId . '&id=' . $this->_sendEmailMode . '&reset=1'
+      );
       CRM_Utils_System::redirect($url);
     }
   }
@@ -608,16 +603,6 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
       }
 
       if ($fields) {
-        /*
-                // unset any email-* fields since we already collect it, CRM-2888
-                foreach ( array_keys( $fields ) as $fieldName ) {
-                    if ( substr( $fieldName, 0, 6 ) == 'email-' ) {
-                        unset( $fields[$fieldName] );
-                    }
-                }
-                */
-
-
         $this->assign($name, $fields);
 
         $addCaptcha = FALSE;
@@ -685,4 +670,5 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
       }
     }
   }
+
 }
index 5d16dfc5de30b0a62e54f745726834b64cd7488b..165ca403b6de5e7a1a9e3633dfe167af3dbebb95 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -479,4 +479,5 @@ class CRM_Campaign_Form_Search extends CRM_Core_Form_Search {
   public function getTitle() {
     return ts('Find Respondents');
   }
+
 }
index f909e34bd6da9979b4c8d71ff5c01731a4d25cea..f604c97fd21944e571c69a96d67e630b9ff76243 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -125,4 +125,5 @@ class CRM_Campaign_Form_Search_Campaign extends CRM_Core_Form {
     $this->set('searchParams', $this->_searchParams);
     $this->assign('searchParams', json_encode($this->_searchParams));
   }
+
 }
index 3d5dbf5d5421b7fe88c7a0f85174f8e2b4a9f069..79e8c65c02cee838383b4d46b87282ebb804344f 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -100,4 +100,5 @@ class CRM_Campaign_Form_Search_Petition extends CRM_Core_Form {
     $this->set('searchParams', $this->_searchParams);
     $this->assign('searchParams', json_encode($this->_searchParams));
   }
+
 }
index 0b6195b2ec1334f4f8c069b2a8b3036ad1d0d0b8..7de20bf3dbca7511d312d6fb94346d85c89047a7 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -50,7 +50,7 @@ class CRM_Campaign_Form_Search_Survey extends CRM_Core_Form {
    *
    * @return void
    */
-  function preProcess() {
+  public function preProcess() {
     $this->_search = CRM_Utils_Array::value('search', $_GET);
     $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE, FALSE);
     $this->_searchTab = CRM_Utils_Request::retrieve('type', 'String', $this, FALSE, 'survey');
@@ -86,7 +86,7 @@ class CRM_Campaign_Form_Search_Survey extends CRM_Core_Form {
     $surveyTypes = CRM_Campaign_BAO_Survey::getSurveyActivityType();
     $this->add('select', 'activity_type_id',
       ts('Activity Type'), array(
-        '' => ts('- select -')
+        '' => ts('- select -'),
       ) + $surveyTypes
     );
     $this->set('surveyTypes', $surveyTypes);
@@ -111,4 +111,5 @@ class CRM_Campaign_Form_Search_Survey extends CRM_Core_Form {
     $this->set('searchParams', $this->_searchParams);
     $this->assign('searchParams', json_encode($this->_searchParams));
   }
+
 }
index bf554f725bd84d03145a80c488f0794269816085..23c370de99927a8885dbc456acd7b7ddedbe844f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -180,4 +180,5 @@ class CRM_Campaign_Form_Survey extends CRM_Core_Form {
       return 'CRM/Campaign/Form/Survey/Tab.tpl';
     }
   }
+
 }
index ff91793985470b10b288bea876f2963c31f2e9f1..73ebf36d1e102ee5f6c89f10261d847d3cdeae64 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -106,4 +106,5 @@ class CRM_Campaign_Form_Survey_Delete extends CRM_Core_Form {
       CRM_Core_Error::fatal(ts('Delete action is missing expected survey ID.'));
     }
   }
+
 }
index 8163555c9865da8b0722c6625741c103169cfddf..5b3dd92cc7e5007d08a7eff6d068952ec64c20d6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -40,9 +40,9 @@
 class CRM_Campaign_Form_Survey_Main extends CRM_Campaign_Form_Survey {
 
   /* values
-     *
-     * @var array
-     */
+   *
+   * @var array
+   */
 
   public $_values;
 
@@ -234,4 +234,5 @@ class CRM_Campaign_Form_Survey_Main extends CRM_Campaign_Form_Survey {
 
     parent::endPostProcess();
   }
+
 }
index ac1e44b50e740fad8ae879ddda1a243efd283227..a603c0f9151c84045b37b192f8e1d217fe095c8a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -142,4 +142,5 @@ class CRM_Campaign_Form_Survey_Questions extends CRM_Campaign_Form_Survey {
 
     parent::endPostProcess();
   }
+
 }
index 039ef71573b46d1b1d331da567a326fa3d503489..5d5f4a92ec399a4ed0ef2eb1c7b2c5893e7f936b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -44,9 +44,9 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
   protected $_reportTitle;
 
   /* values
-     *
-     * @var array
-     */
+   *
+   * @var array
+   */
   public $_values;
 
   const NUM_OPTION = 11;
@@ -499,4 +499,5 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
 
     parent::endPostProcess();
   }
+
 }
index a37f81dd18cf3fb90da9f98460f31e2af1675cb2..78f3b2d789d5decfde4a514373f268b18cc451f8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -164,8 +164,9 @@ class CRM_Campaign_Form_Survey_TabHeader {
    */
   public static function getNextTab(&$form) {
     static $next = FALSE;
-    if ($next)
+    if ($next) {
       return $next;
+    }
 
     $tabs = $form->get('tabHeader');
     if (is_array($tabs)) {
@@ -184,4 +185,5 @@ class CRM_Campaign_Form_Survey_TabHeader {
     $next = $next ? $next : 'main';
     return $next;
   }
+
 }
index a1e41ccd716c8c2e0e1f05dfd0a1a65af6b394ed..20f4bcab4caad58f32c69360bff5b587f83ec7b8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -173,4 +173,5 @@ class CRM_Campaign_Form_SurveyType extends CRM_Admin_Form {
       CRM_Core_Session::setStatus(ts('The Survey type \'%1\' has been saved.', array(1 => $optionValue->label)), ts('Saved'), 'success');
     }
   }
+
 }
index f87ede84b452f4ea112776d4391b37f954796196..e65f6657cff562eafbf920e2267f95903ff005a8 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -158,4 +158,5 @@ class CRM_Campaign_Form_Task extends CRM_Core_Form {
       )
     );
   }
+
 }
index e742e619c4064708b2c5c381e0bf66c6f137ae20..9ff89df8468d4daaefe5ea69d35093dbd7ddf7dd 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -662,4 +662,5 @@ INNER JOIN  {$tempTableName} ON ( {$tempTableName}.survey_contact_id = contact.i
       }
     }
   }
+
 }
index 378d6def07ff6d8b0b3a1711422d02fda39611b4..a3dcc5f959c1ca5a1aaef0121363b0be41f25929 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -110,4 +110,5 @@ class CRM_Campaign_Form_Task_Print extends CRM_Campaign_Form_Task {
   public function postProcess() {
     // redirect to the main search page after printing is over
   }
+
 }
index cb408656a6b807793893f3b7df3d8a7b16c494c5..770aaca72170541995ecfc192e0f8d6b743b633f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -168,4 +168,5 @@ class CRM_Campaign_Form_Task_Release extends CRM_Campaign_Form_Task {
       CRM_Core_Session::setStatus(implode('&nbsp;', $status), '', 'info');
     }
   }
+
 }
index 06c5384653d978760fbc75f7c18a0ce97a445313..c56c525397fe9ac9a35808c24d8a3b372d541ab3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -94,9 +94,7 @@ class CRM_Campaign_Form_Task_Reserve extends CRM_Campaign_Form_Task {
     //get the survey activities.
     $activityStatus = CRM_Core_PseudoConstant::activityStatus('name');
     $statusIds = array();
-    foreach (array(
-               'Scheduled'
-             ) as $name) {
+    foreach (array('Scheduled') as $name) {
       if ($statusId = array_search($name, $activityStatus)) {
         $statusIds[] = $statusId;
       }
@@ -179,7 +177,7 @@ class CRM_Campaign_Form_Task_Reserve extends CRM_Campaign_Form_Task {
         'name' => ts('Reserve'),
         'subName' => 'reserve',
         'isDefault' => TRUE,
-      )
+      ),
     );
 
     if (CRM_Core_Permission::check('manage campaign') ||
@@ -358,4 +356,5 @@ class CRM_Campaign_Form_Task_Reserve extends CRM_Campaign_Form_Task {
 
     return $groupAdditions;
   }
+
 }
index 4a70eeeaea34de2c8b9013b3f23d1a1786e775c3..52de2850b8bedaa74eae06df99b1b249812d16c9 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -63,4 +63,5 @@ class CRM_Campaign_Form_Task_Result extends CRM_Campaign_Form_Task {
       )
     );
   }
+
 }
index 9bffa5d59a8ad88c8068a815d73ff0dd9443eb39..f1a3a04ba6f842e4fb1c32eef123d45f681b6ee4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class introduces component to the system and provides all the
@@ -142,4 +142,5 @@ class CRM_Campaign_Info extends CRM_Core_Component_Info {
       ));
     }
   }
+
 }
index b6aeb8ffc5253b85ceb18561fa15952ccccb7fe4..0d7b5e2f8897c92318d25e50d0c232bb89ea1353 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -863,4 +863,5 @@ class CRM_Campaign_Page_AJAX {
     echo CRM_Utils_JSON::encodeDataTableSelector($searchRows, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
     CRM_Utils_System::civiExit();
   }
+
 }
index a80f2335e64a2a509c34716457be45b6204cef0f..be0ada5b9820ac538b40a702fd97c8a786662d36 100644 (file)
@@ -139,4 +139,5 @@ class CRM_Campaign_Page_Campaign extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index eb0d701606886cd8d21d72cd9451b4006456b9c9..d6a98a37e0f1a6f5878281bfa53fea4d3b97f5c1 100644 (file)
@@ -475,7 +475,7 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page {
       ->addSetting(array(
         'tabSettings' => array(
           'active' => strtolower(CRM_Utils_Array::value('subPage', $_GET, 'campaign')),
-        )
+        ),
       ));
   }
 
@@ -505,4 +505,5 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page {
     $allTabs['campaign']['class'] = 'livePage';
     $this->assign('tabHeader', $allTabs);
   }
+
 }
index af5c3ac3cf196ebc076bb550f0383cb7d8404f7f..0c43eb4e57b82e138ce8967bcfdd2dffcf05efcd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -59,4 +59,5 @@ class CRM_Campaign_Page_Petition extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index e1a78ee0748a5b1174327d38967dea1943b6e0e1..a30a7ce582fe6f2f19c070f081185719e76c151a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -103,7 +103,7 @@ class CRM_Campaign_Page_Petition_Confirm extends CRM_Core_Page {
    * @param int $activity_id
    * @param int $petition_id
    *
-   * @return boolean
+   * @return bool
    *   True on success
    */
   public static function confirm($contact_id, $subscribe_id, $hash, $activity_id, $petition_id) {
@@ -131,4 +131,5 @@ class CRM_Campaign_Page_Petition_Confirm extends CRM_Core_Page {
     $bao = new CRM_Campaign_BAO_Petition();
     $bao->confirmSignature($activity_id, $contact_id, $petition_id);
   }
+
 }
index a6ff4f0655ad28d2f82bbdb1a581adf915490e50..13e4faf982b8a47a1f7f802aa9c22adbcdb8eda4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -52,13 +52,14 @@ class CRM_Campaign_Page_Petition_ThankYou extends CRM_Core_Page {
 
     // send thank you or email verification emails
     /*
-       * sendEmailMode
-       * 1 = connected user via login/pwd - thank you
-       *      or dedupe contact matched who doesn't have a tag CIVICRM_TAG_UNCONFIRMED - thank you
-       *      login using fb connect - thank you + click to add msg to fb wall
-       * 2 = send a confirmation request email
-       */
+     * sendEmailMode
+     * 1 = connected user via login/pwd - thank you
+     *      or dedupe contact matched who doesn't have a tag CIVICRM_TAG_UNCONFIRMED - thank you
+     *      login using fb connect - thank you + click to add msg to fb wall
+     * 2 = send a confirmation request email
+     */
 
     return parent::run();
   }
+
 }
index 99ab30099df8fc6d8f06cafa85167423a4462c76..6ed8c0a22413947aba55bfd5d9806ffaa5364226 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -132,4 +132,5 @@ class CRM_Campaign_Page_Survey extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 9dbfcc49036ee0b9d008306acb05f08c988ccc33..dc5678ba9e752796995bcfdcdd45dd0b7e05ad28 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -214,4 +214,5 @@ class CRM_Campaign_Page_SurveyType extends CRM_Core_Page_Basic {
   public function userContextParams($mode = NULL) {
     return 'reset=1';
   }
+
 }
index 2ff97eed26a44fcf2f8aaeb2eceee4db71870221..63f963d8496ac9d523de40cf380823ca2c6f4638 100644 (file)
@@ -143,4 +143,5 @@ class CRM_Campaign_Page_Vote extends CRM_Core_Page {
 
     $this->assign('tabHeader', empty($allTabs) ? FALSE : $allTabs);
   }
+
 }
index 6f1c5c74b0b1db3777f6e962e4083ba70799e3d4..a1d84bbc09e5d6c8541e65ed613a904ce74d74cf 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -154,4 +154,5 @@ class CRM_Campaign_PseudoConstant extends CRM_Core_PseudoConstant {
       self::$$name = NULL;
     }
   }
+
 }
index 71dac101b44c688fa313b19b17fbf4b2a22edbaa..38e9471f41aa6d413ec8c57782517607923e1ceb 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -383,4 +383,5 @@ FROM {$from}
   public function getExportFileName($output = 'csv') {
     return ts('CiviCRM Respondent Search');
   }
+
 }
index aec137aa7f46cf464abd4c9990d41ecc32e90a24..12d19f47d919bf2c9b221c852648a588a36e6d1f 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -99,4 +99,5 @@ class CRM_Campaign_StateMachine_Search extends CRM_Core_StateMachine {
   public function getTaskFormName() {
     return CRM_Utils_String::getClassName($this->_task);
   }
+
 }
index 5e0d703dd58276eec6f76eb11b1b63ffb0566423..8f6c4e74413d79f2ac55f8625a90758006c365ef 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -156,4 +156,5 @@ class CRM_Campaign_Task {
       self::$_tasks[$value]['result'],
     );
   }
+
 }
index e607f4d020ec0b068791463175dcb75223da0819..1928fa4e4383cc5da7686e2a1a4a44ad64cd1a42 100644 (file)
@@ -100,7 +100,7 @@ class CRM_Case_Audit_Audit {
               if ($printReport) {
                 if (!in_array($label, array(
                   'Activity Type',
-                  'Status'
+                  'Status',
                 ))
                 ) {
                   $caseActivities[$activityindex][$fieldindex] = array();
@@ -212,20 +212,19 @@ class CRM_Case_Audit_Audit {
   }
 
   /**
-   * @param $xmlString
+   * @param string $xmlString
    * @param int $clientID
    * @param int $caseID
    * @param bool $printReport
    *
    * @return mixed
    */
-  static
-  public function run($xmlString, $clientID, $caseID, $printReport = FALSE) {
+  public static function run($xmlString, $clientID, $caseID, $printReport = FALSE) {
     /*
     $fh = fopen('C:/temp/audit2.xml', 'w');
     fwrite($fh, $xmlString);
     fclose($fh);
-    */
+     */
 
     $audit = new CRM_Case_Audit_Audit($xmlString, 'audit.conf.xml');
     $activities = $audit->getActivities($printReport);
@@ -243,4 +242,5 @@ class CRM_Case_Audit_Audit {
     }
     return $contents;
   }
+
 }
index 03f28fe9980373b88d5c3e907002ae35648618ce..14bc772ff168062a371318b0ca376eac8ebaa36d 100644 (file)
@@ -253,4 +253,5 @@ class CRM_Case_Audit_AuditConfig {
 
     return $x - $y;
   }
+
 }
index 8a8c43275093aa641e6b1d726306d4ff06ab5eb4..a714634a0c8ab77edfc38b5c67608d42d3a2c043 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -3396,4 +3396,5 @@ WHERE id IN (' . implode(',', $copiedActivityIds) . ')';
     }
     return CRM_Core_PseudoConstant::get($className, $fieldName, $params, $context);
   }
+
 }
index d8787510fb639ace5e0d162ea63e7a0a96b3d12a..3a787eee8782bf7930aa5cf861924f5dcc4b1e43 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -383,4 +383,5 @@ class CRM_Case_BAO_CaseType extends CRM_Case_DAO_CaseType {
     }
     return TRUE;
   }
+
 }
index 7b4ab3423fbcb6710bb5ece81259dd3896191fa1..1e7aef5d9ec0c7e26c2fb2bee969c0610227581d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -772,4 +772,5 @@ case_relation_type.id = case_relationship.relationship_type_id )";
    */
   public static function searchAction(&$row, $id) {
   }
+
 }
index 5481d502722c8a479e8fa839cdbccaaad5b09946..8c812fbce729407544152d8c719c215f7f545056 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 4730563f84da43827f428650ad00111770ddf96e..f503023cd28da721c2d81e08aba6990263681fa3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,4 +62,5 @@ class CRM_Case_Controller_Search extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions();
   }
+
 }
index 9a3407d48b78332c85be882e9f4e155f5d89a6fa..57cce896cf35b254d50de476150c07d59c96a28c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -281,9 +281,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
       $openCaseID = CRM_Core_OptionGroup::getValue('activity_type', 'Open Case', 'name');
       unset($aTypes[$openCaseID]);
       asort($aTypes);
-      $this->_fields['followup_activity_type_id']['attributes'] = array(
-          '' => '- select activity type -',
-        ) + $aTypes;
+      $this->_fields['followup_activity_type_id']['attributes'] = array('' => '- select activity type -') + $aTypes;
     }
 
     $result = parent::buildQuickForm();
@@ -711,4 +709,5 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
       ), 'info');
     }
   }
+
 }
index ac4c8530dd8410a16f78beda04a37eee484f1664..5576aaf8ebc85282564c620384f274145b1c3229 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -251,4 +251,5 @@ class CRM_Case_Form_Activity_ChangeCaseStartDate {
     // 3.status msg
     $params['statusMsg'] = ts('Case Start Date changed successfully.');
   }
+
 }
index 9ea9f782bd95d1e96ab2c382755fc7b05e45fe35..d8db4c83337d93741087a05b455ad9217cab41b8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -193,4 +193,5 @@ class CRM_Case_Form_Activity_ChangeCaseStatus {
     // FIXME: does this do anything ?
     $params['statusMsg'] = ts('Case Status changed successfully.');
   }
+
 }
index 22c8145a08438e206f9a42dde2b1b631480c5cc2..b1f628921259eb31e4de32d53908b0463bf68e29 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -199,4 +199,5 @@ class CRM_Case_Form_Activity_ChangeCaseType {
     // status msg
     $params['statusMsg'] = ts('Case Type changed successfully.');
   }
+
 }
index 163374925a17a2dca459cbc6407e549c30e4579f..c2736f359756ee498e04d0db651989f5d21b6c68 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -154,4 +154,5 @@ class CRM_Case_Form_Activity_LinkCases {
       CRM_Case_BAO_Case::processCaseActivity($caseParams);
     }
   }
+
 }
index eab4ac78558b475b55e205883cc40c0a950ec8ed..f3ed3af0c138e9f11cc526d4b67f52d66e0990d5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -151,7 +151,7 @@ class CRM_Case_Form_Activity_OpenCase {
     if ($form->_context == 'standalone') {
       $form->addEntityRef('client_id', ts('Client'), array(
           'create' => TRUE,
-          'multiple' => $form->_allowMultiClient
+          'multiple' => $form->_allowMultiClient,
         ), TRUE);
     }
 
@@ -368,4 +368,5 @@ class CRM_Case_Form_Activity_OpenCase {
       }
     }
   }
+
 }
index 3706a788fe4debe7efb38d7d2d6413877236cd44..8c51e5f322688b0255bcefaa400c72e7670ba235 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -48,4 +48,5 @@ class CRM_Case_Form_ActivityChangeStatus extends CRM_Core_Form {
     $activityStatus = CRM_Core_PseudoConstant::activityStatus();
     $this->add('select', 'activity_change_status', ts('New Status'), $activityStatus);
   }
+
 }
index 46930ef2f9d2a3b98a5f2a97c564f939a7e265aa..ec58fa525d43dd996c99fa73cc5e1886cc1fae1d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -98,4 +98,5 @@ class CRM_Case_Form_ActivityToCase extends CRM_Core_Form {
     $this->addEntityRef('file_on_case_target_contact_id', ts('With Contact(s)'), array('multiple' => TRUE));
     $this->add('text', 'file_on_case_activity_subject', ts('Subject'), array('size' => 50));
   }
+
 }
index 314cbd3da2a076af9967bf7e776820447fd7ff54..cb1ff8bbdd5cf935bf37a406d258eaf95df946a4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -179,4 +179,5 @@ class CRM_Case_Form_ActivityView extends CRM_Core_Form {
       $recentOther
     );
   }
+
 }
index a324b78ff0e0f9ed66f0bdb11782431d1e29cbaa..1e7994db3b87ab971527eeaeb30d7b1b49fc8abc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -439,4 +439,5 @@ class CRM_Case_Form_Case extends CRM_Core_Form {
     // 6. set status
     CRM_Core_Session::setStatus($params['statusMsg'], ts('Saved'), 'success');
   }
+
 }
index 94e4978c53added6907aef7a76a803c46591984d..4962fa7c3cc19ee53d85d67344beac2473093c92 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -170,7 +170,7 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form {
     if ($relatedCases) {
       $this->assign('relatedCaseLabel', ts('%1 Related Case', array(
             'count' => count($relatedCases),
-            'plural' => '%1 Related Cases'
+            'plural' => '%1 Related Cases',
           )));
       $this->assign('relatedCaseUrl', CRM_Utils_System::url('civicrm/contact/view/case', array(
         'id' => $this->_caseID,
@@ -312,7 +312,7 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form {
         $this->add('select', 'merge_case_id',
           ts('Select Case for Merge'),
           array(
-            '' => ts('- select case -')
+            '' => ts('- select case -'),
           ) + $otherCases,
           FALSE,
           array('class' => 'crm-select2 huge')
@@ -535,4 +535,5 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form {
       $form->add('checkbox', 'activity_deleted', ts('Deleted Activities'), '', FALSE, array('id' => 'activity_deleted_' . $form->_caseID));
     }
   }
+
 }
index 4a352c861c904d8c7b648c28106d41bfdc72b0e5..629199c870565d398c2f6d452c383c0f1d31f136 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -175,4 +175,5 @@ class CRM_Case_Form_CustomData extends CRM_Core_Form {
 
     $transaction->commit();
   }
+
 }
index 82ea24668688f5650d432fbfea5ab1644d3d5284..c115e549ecece9802b4d362022df9209debb9f05 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -135,4 +135,5 @@ class CRM_Case_Form_EditClient extends CRM_Core_Form {
     );
     CRM_Core_Session::singleton()->pushUserContext($url);
   }
+
 }
index 66215cce5688e8b73f08f6bc370b71e0200f9a6b..0499dd51abcb6d557226d2a6a1b3fe5595ffe8e3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -136,4 +136,5 @@ class CRM_Case_Form_Report extends CRM_Core_Form {
     );
     $this->set('report', $contents);
   }
+
 }
index c75997630cfe6d1155ccd116140e473fe0492eb2..47a37ccfcea4d7ec2599a43deb5c586cdbc2fac5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -96,9 +96,9 @@ class CRM_Case_Form_Search extends CRM_Core_Form_Search {
     $this->defaults = array();
 
     /*
-         * we allow the controller to set force/reset externally, useful when we are being
-         * driven by the wizard framework
-         */
+     * we allow the controller to set force/reset externally, useful when we are being
+     * driven by the wizard framework
+     */
 
     $this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean', CRM_Core_DAO::$_nullObject);
     $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE);
@@ -440,4 +440,5 @@ class CRM_Case_Form_Search extends CRM_Core_Form_Search {
   public function getTitle() {
     return ts('Find Cases');
   }
+
 }
index 1996ba56e52b174a62fd31168fa8d268d467e330..eeb8797ed4e05cbc1a118e0cb82802f37950fa92 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -175,4 +175,5 @@ class CRM_Case_Form_Task extends CRM_Core_Form {
       )
     );
   }
+
 }
index 661c1e63be08430de6858b4cde306b569ea787ea..f6d4819cd1c188f93e9168d7a8b549a5d6d12708 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -95,4 +95,5 @@ class CRM_Case_Form_Task_Delete extends CRM_Case_Form_Task {
     CRM_Core_Session::setStatus($deletedCases, ts('Deleted Cases'), 'success');
     CRM_Core_Session::setStatus('', ts('Total Selected Case(s): %1', array(1 => count($this->_caseIds))), 'info');
   }
+
 }
index 91cc032dd7a629e952efbb7f3a400e0cacb6ea5a..82ce616914e4c9bdeb642442369d1975a0ef9322 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -102,4 +102,5 @@ class CRM_Case_Form_Task_Print extends CRM_Case_Form_Task {
   public function postProcess() {
     // redirect to the main search page after printing is over
   }
+
 }
index 93bbaa0f9068efd6b96ad90b4fcfc4891a4f9f2e..35c170c2087bd557ecbb2cdcde1f3a432d458ced 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -84,4 +84,5 @@ class CRM_Case_Form_Task_Restore extends CRM_Case_Form_Task {
     CRM_Core_Session::setStatus($restoredCases, ts('Restored Cases'), 'success');
     CRM_Core_Session::setStatus('', ts('Total Selected Case(s): %1', array(1 => count($this->_caseIds))), 'info');
   }
+
 }
index c18819d722c681f3707e2d45d78d6ed68dcc916e..c1428c17fa22ba6d95fed1d12fd7d35cd9431a44 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -63,4 +63,5 @@ class CRM_Case_Form_Task_Result extends CRM_Case_Form_Task {
       )
     );
   }
+
 }
index 19466d0d6ab438d811ee2f8ae634fbb339e3bd8d..7667941c54f5e0cb95b0c7c70deb049e579c2175 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -86,4 +86,5 @@ WHERE cs.id IN ( {$caseIDs} )";
       )
     );
   }
+
 }
index 7ee506fe4a161bcffd79d2073a1185a21abe98a3..b38534ced0110483b9b22bf3bd70ca32c02b1199 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class introduces component to the system and provides all the
@@ -233,4 +233,5 @@ class CRM_Case_Info extends CRM_Core_Component_Info {
       }
     }
   }
+
 }
index 727c71dc55f5ab7750ee431970a7132ce738465b..ae9906b7d03973d1f37f18d8f42c5a3df5ba205f 100644 (file)
@@ -140,4 +140,5 @@ class CRM_Case_ManagedEntities {
 
     return $result;
   }
+
 }
index 87e03e31263dee87a2b2227ef60fc6d77638e452..0ba389e2a44d8b04dad5904e0bc859ea44224096 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -213,4 +213,5 @@ class CRM_Case_Page_AJAX {
 
     CRM_Utils_System::civiExit();
   }
+
 }
index f74113a8d0a12d7eeaee14a8a3ecd3b0c571e7ba..8f922cb20fdb8f599d5ab19e1bb383377e044fc7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -78,4 +78,5 @@ class CRM_Case_Page_CaseDetails extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 2e8b94903de7e124dc40aa47e81131d5897118f4..4b77ddc4967227cdce43c52aea2b31d6fd5da164 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -114,4 +114,5 @@ class CRM_Case_Page_DashBoard extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 6eeecf3b84dbbc06f0a7ee160a700a045ee107a1..a4736c624b073b5a1bbfe2d2bd262c23a5221634 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -318,4 +318,5 @@ class CRM_Case_Page_Tab extends CRM_Core_Page {
       $session->pushUserContext($url);
     }
   }
+
 }
index 8b45a10986addcfe9d90ffcc00ad39fb640a9154..1d28f25ce74b0f7987e72befa623e29a5519de60 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -253,4 +253,5 @@ class CRM_Case_PseudoConstant extends CRM_Core_PseudoConstant {
       self::$$name = NULL;
     }
   }
+
 }
index 2320e1ff21d5b698c492c2f2e7367dd5e65a6912..0a1e1ae65104b0cf64ad8a590995f98a75dfcd0b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -141,7 +141,7 @@ class CRM_Case_Selector_Search extends CRM_Core_Selector_Base {
    *
    * @return \CRM_Case_Selector_Search
    */
-  function __construct(
+  public function __construct(
     &$queryParams,
     $action = CRM_Core_Action::NONE,
     $additionalClause = NULL,
@@ -185,8 +185,7 @@ class CRM_Case_Selector_Search extends CRM_Core_Selector_Base {
    *
    * @return array
    */
-  static
-  public function &links($isDeleted = FALSE, $key = NULL) {
+  static public function &links($isDeleted = FALSE, $key = NULL) {
     $extraParams = ($key) ? "&key={$key}" : NULL;
 
     if ($isDeleted) {
@@ -506,4 +505,5 @@ class CRM_Case_Selector_Search extends CRM_Core_Selector_Base {
   public function getExportFileName($output = 'csv') {
     return ts('Case Search');
   }
+
 }
index 4e460c7e3669d76e70cc8901e3e1f0c8f421280b..02e8def86dcc68f40915fb817c39ef5706354b9b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -109,4 +109,5 @@ class CRM_Case_StateMachine_Search extends CRM_Core_StateMachine {
   public function shouldReset() {
     return FALSE;
   }
+
 }
index 7775f7aa7b85dcdbfd2d44a61405a6b46c1c3507..a9492915e0a511413c0f203412dfae88a761dc22 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -175,4 +175,5 @@ class CRM_Case_Task {
       self::$_tasks[$value]['result'],
     );
   }
+
 }
index 4abcb8aa52bafeac17c4b43b09a17468f9a801f8..e6993503f5acd70d8c2e9a2b071dd59dab668e8f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -131,4 +131,5 @@ class CRM_Case_XMLProcessor {
     self::$activityTypes = NULL;
     self::$relationshipTypes = NULL;
   }
+
 }
index d434104b185eb5dfe350c30358b5e5a9fd495d04..b3afe3d3ec407d4cb442f864fdc6f2c55bc91551 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -669,4 +669,5 @@ AND        a.is_deleted = 0
     $xml = $this->retrieve("Settings");
     return ( string ) $xml->NaturalActivityTypeSort ? 1 : 0;
   }
+
 }
index 5408b52a98f27943d00fb9799445e502525734f2..26be8e784846e5276f53afdd267b323921af3550 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -987,4 +987,5 @@ LIMIT  1
     echo $printReport;
     CRM_Utils_System::civiExit();
   }
+
 }
index 2622baf04354f774844d8d0ddcfa234fda34b69e..bcc41693f61c92fd0f8e07376d90ce3c693261b9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -60,4 +60,5 @@ class CRM_Case_XMLProcessor_Settings extends CRM_Case_XMLProcessor {
     }
     return $this->_settings;
   }
+
 }
index 25eccaee8fd7e14d213ce758f2001926668ff99f..d14e62687f421d05ee5701af3f50edb645f9b51c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 8e9ccee6606607725acab424ba8faec98d9adb0d..f6b59effc6a02565a3f4645856a6539af7ee6f59 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -113,7 +113,7 @@ class CRM_Contact_BAO_Contact extends CRM_Contact_DAO_Contact {
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Contact_BAO_Contact|CRM_Core_Error
+   * @return CRM_Contact_BAO_Contact|CRM_Core_Error|NULL
    *   Created or updated contact object or error object.
    *   (error objects are being phased out in favour of exceptions)
    */
@@ -121,7 +121,7 @@ class CRM_Contact_BAO_Contact extends CRM_Contact_DAO_Contact {
     $contact = new CRM_Contact_DAO_Contact();
 
     if (empty($params)) {
-      return;
+      return NULL;
     }
 
     // Fix for validate contact sub type CRM-5143.
@@ -536,8 +536,7 @@ WHERE     civicrm_contact.id = " . CRM_Utils_Type::escape($id, 'Integer');
   public function createDefaultCrudLink($crudLinkSpec) {
     switch ($crudLinkSpec['action']) {
       case CRM_Core_Action::VIEW:
-
-        return array(
+        $result = array(
           'title' => $this->display_name,
           'path' => 'civicrm/contact/view',
           'query' => array(
@@ -545,9 +544,10 @@ WHERE     civicrm_contact.id = " . CRM_Utils_Type::escape($id, 'Integer');
             'cid' => $this->id,
           ),
         );
+        return $result;
 
       case CRM_Core_Action::UPDATE:
-        return array(
+        $result = array(
           'title' => $this->display_name,
           'path' => 'civicrm/contact/add',
           'query' => array(
@@ -556,6 +556,7 @@ WHERE     civicrm_contact.id = " . CRM_Utils_Type::escape($id, 'Integer');
             'cid' => $this->id,
           ),
         );
+        return $result;
     }
     return NULL;
   }
@@ -1624,10 +1625,10 @@ WHERE id={$id}; ";
 
     // We don't know the contents of return properties, but we need the lower
     // level ids of the contact so add a few fields.
-    $returnProperties['first_name'] =
-    $returnProperties['organization_name'] =
-    $returnProperties['household_name'] =
-    $returnProperties['contact_type'] =
+    $returnProperties['first_name'] = 1;
+    $returnProperties['organization_name'] = 1;
+    $returnProperties['household_name'] = 1;
+    $returnProperties['contact_type'] = 1;
     $returnProperties['contact_sub_type'] = 1;
     return list($query, $options) = CRM_Contact_BAO_Query::apiQuery($params, $returnProperties, $options);
   }
@@ -2556,11 +2557,11 @@ AND       civicrm_openid.is_primary = 1";
         return CRM_Core_BAO_EntityTag::getContactTags($contactId, TRUE);
 
       case 'rel':
-
-        return CRM_Contact_BAO_Relationship::getRelationship($contactId,
+        $result = CRM_Contact_BAO_Relationship::getRelationship($contactId,
           CRM_Contact_BAO_Relationship::CURRENT,
           0, 1
         );
+        return $result;
 
       case 'group':
 
@@ -3133,7 +3134,7 @@ LEFT JOIN civicrm_address add2 ON ( add1.master_id = add2.id )
    * @param int $contactId
    *
    * @return array
-   *  Dates - ('created_date' => $, 'modified_date' => $)
+   *   Dates - ('created_date' => $, 'modified_date' => $)
    */
   public static function getTimestamps($contactId) {
     $timestamps = CRM_Core_DAO::executeQuery(
@@ -3301,7 +3302,7 @@ LEFT JOIN civicrm_address add2 ON ( add1.master_id = add2.id )
    * @param array $props
    *   whatever is known about this dao object.
    *
-   * @return Array|bool
+   * @return array|bool
    */
   public static function buildOptions($fieldName, $context = NULL, $props = array()) {
     $params = array();
@@ -3370,4 +3371,5 @@ LEFT JOIN civicrm_address add2 ON ( add1.master_id = add2.id )
     $obj->free();
     return TRUE;
   }
+
 }
index 63d6ee122a4d4675d8dac36b155e82808307fc21..e26cfabd8a8ce92717112f49d70d461dfb04dbf0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -201,4 +201,5 @@ AND civicrm_contact.id IN $idString ";
     }
     return $locations;
   }
+
 }
index fd736ab5fe82ead8505ea23b5f5188c85349a4c8..980b51e12400ec3222fac2d6fca92dd01cc5f27c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -186,4 +186,5 @@ class CRM_Contact_BAO_Contact_Optimizer {
     // we can skip saving new and return
     unset($newValues['email']);
   }
+
 }
index 04f36414bd4b82458095605225b58ffc0f46e662..a81ee42acd8da997dfe75c103042ba4d6f183a8b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -400,4 +400,5 @@ WHERE  (( contact_id_a = %1 AND contact_id_b = %2 AND is_permission_a_b = 1 ) OR
     }
     return TRUE;
   }
+
 }
index 7c9a4b8742b21dc402a1030cb98f22df08f57deb..f72865f0c6db604ea060865421ad15e06f81c859 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1128,4 +1128,5 @@ WHERE id IN (" . implode(',', $contactIds) . ")";
     $smarty = CRM_Core_Smarty::singleton();
     $templateString = $smarty->fetch("string:$templateString");
   }
+
 }
index 9807af89a7ce2e6bca50781a67d58c93570bc0d6..2a9394ab7e3bb6f113056ab8708098275b5d5d13 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -938,4 +938,5 @@ WHERE ($subtypeClause)";
     $query = "DELETE FROM {$customTable} WHERE entity_id = %1";
     return CRM_Core_DAO::singleValueQuery($query, array(1 => array($entityID, 'Integer')));
   }
+
 }
index 27ecfcea0763c922749cdf75c9ce0f5e35fd6716..dbfd0517e0b4912cfa117ab6fec6472658195d51 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @package CRM
index b0cea18aa89201e1df4a0b3d5a27b268d5818a04..e645f4c096084d1fa269881d54fd92becdcbfe1d 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -72,8 +72,6 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
    *
    * @param int $id
    *   Group id.
-   *
-   * @return NULL
    */
   public static function discard($id) {
     CRM_Utils_Hook::pre('delete', 'Group', $id, CRM_Core_DAO::$_nullArray);
@@ -238,7 +236,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
    * @todo other BAO functions that use returnProperties (e.g. Query Objects) receive the array flipped & filled with 1s and
    * add in essential fields (e.g. id). This should follow a regular pattern like the others
    */
-  static function getGroups(
+  public static function getGroups(
     $params = NULL,
     $returnProperties = NULL,
     $sort = NULL,
@@ -517,8 +515,6 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
         $this->where_tables = serialize($whereTables);
       }
     }
-
-    return;
   }
 
   /**
@@ -994,7 +990,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
    *
    * @return array
    */
-  static function getGroupsHierarchy(
+  public static function getGroupsHierarchy(
     $groupIDs,
     $parents = NULL,
     $spacer = '<span class="child-indent"></span>',
@@ -1224,7 +1220,6 @@ WHERE {$whereClause}";
 
     $clauses[] = self::getPermissionClause();
 
-
     return implode(' AND ', $clauses);
   }
 
@@ -1286,4 +1281,5 @@ WHERE {$whereClause}";
 
     return CRM_Utils_PagerAToZ::getAToZBar($dao, $this->_sortByCharacter, TRUE);
   }
+
 }
index 72be26a332fbcdc810c0cfaf39da25b404e2e8ad..8616165c39eaea49d552f3546746370f66817687 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -139,14 +139,8 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact {
 
     CRM_Utils_Hook::pre('create', 'GroupContact', $groupId, $contactIds);
 
-    list($numContactsAdded,
-      $numContactsNotAdded
-      ) = self::bulkAddContactsToGroup($contactIds,
-      $groupId,
-      $method,
-      $status,
-      $tracking
-    );
+    list($numContactsAdded, $numContactsNotAdded)
+      = self::bulkAddContactsToGroup($contactIds, $groupId, $method, $status, $tracking);
 
     // also reset the acl cache
     $config = CRM_Core_Config::singleton();
@@ -813,4 +807,5 @@ AND    contact_id IN ( $contactStr )
 
     return $options;
   }
+
 }
index e3917eb887975a40b12fbae80b77e55fdbdaba3a..081aa5dcb5f88fc26d0043c4c8d91f5eec4292b7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index a9dab201af039e5062cce814277a46bf2e68006b..b065d4a1720cf4e3966c47cb43f3b3e4549d0e99 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -262,10 +262,10 @@ class CRM_Contact_BAO_GroupNesting extends CRM_Contact_DAO_GroupNesting implemen
     }
     else {
       /* if we get here, it could be because we're out of siblings
-             * (in which case we return null) or because we're at the
-             * top level groups which do not have parents but may still
-             * have siblings, so check for that first.
-             */
+       * (in which case we return null) or because we're at the
+       * top level groups which do not have parents but may still
+       * have siblings, so check for that first.
+       */
 
       $nextGroup = $this->_getNextParentlessGroup($group);
       if ($nextGroup) {
@@ -415,8 +415,8 @@ class CRM_Contact_BAO_GroupNesting extends CRM_Contact_DAO_GroupNesting implemen
       $parentGroupId = $dao->parent_group_id;
       if ($parentGroupId == $checkGroupId) {
         /* print "One of these: <pre>";
-                print_r($groupIds);
-                print "</pre> has groupId $checkGroupId as an ancestor.<br/>"; */
+        print_r($groupIds);
+        print "</pre> has groupId $checkGroupId as an ancestor.<br/>"; */
 
         return TRUE;
       }
@@ -449,8 +449,8 @@ class CRM_Contact_BAO_GroupNesting extends CRM_Contact_DAO_GroupNesting implemen
       $childGroupId = $dao->child_group_id;
       if ($childGroupId == $checkGroupId) {
         /* print "One of these: <pre>";
-                 print_r($groupIds);
-                 print "</pre> has groupId $checkGroupId as a descendent.<br/><br/>"; */
+        print_r($groupIds);
+        print "</pre> has groupId $checkGroupId as a descendent.<br/><br/>"; */
 
         return TRUE;
       }
@@ -484,8 +484,8 @@ class CRM_Contact_BAO_GroupNesting extends CRM_Contact_DAO_GroupNesting implemen
       $parentGroupId = $dao->parent_group_id;
       if ($parentGroupId == $checkGroupId) {
         /* print "One of these: <pre>";
-                print_r($groupIds);
-                print "</pre> has groupId $checkGroupId as an ancestor.<br/>"; */
+        print_r($groupIds);
+        print "</pre> has groupId $checkGroupId as an ancestor.<br/>"; */
 
         return TRUE;
       }
@@ -525,8 +525,8 @@ class CRM_Contact_BAO_GroupNesting extends CRM_Contact_DAO_GroupNesting implemen
       $childGroupId = $dao->child_group_id;
       if ($childGroupId == $checkGroupId) {
         /* print "One of these: <pre>";
-                print_r($groupIds);
-                print "</pre> has groupId $checkGroupId as a descendent.<br/><br/>"; */
+        print_r($groupIds);
+        print "</pre> has groupId $checkGroupId as a descendent.<br/><br/>"; */
 
         return TRUE;
       }
@@ -736,4 +736,5 @@ class CRM_Contact_BAO_GroupNesting extends CRM_Contact_DAO_GroupNesting implemen
 
     return $containingGroups;
   }
+
 }
index e16644e14e4d001f596aa44d96db3fb79a56a501..8dbb484ecba198c207e26c09b6935baa009bbe8d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -260,4 +260,5 @@ WHERE  id = $id
 }";
     return $json;
   }
+
 }
index 3eca1c2fe2cf95583bb260e320fc354856e031df..848157d02629694dc1f381f0fe2fd4a4a3e19187 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -153,4 +153,5 @@ class CRM_Contact_BAO_GroupOrganization extends CRM_Contact_DAO_GroupOrganizatio
 
     return $results;
   }
+
 }
index c2548b6f104f95787cfba7eb4709024b1b1ee6e2..5e26ae1208ecdac5f77e65218e68a2d79b7ed2de 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -70,4 +70,5 @@ class CRM_Contact_BAO_Household extends CRM_Contact_DAO_Contact {
 
     return CRM_Core_DAO::executeQuery($queryString, $params);
   }
+
 }
index b2750a788ead75e88598d74c8ae60c79ca64fde6..9627e8faa395a43a196299fb88a5bec58383bb66 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -419,4 +419,5 @@ class CRM_Contact_BAO_Individual extends CRM_Contact_DAO_Contact {
 
     return FALSE;
   }
+
 }
index 5bf8209940c2f36ef38d738af21ad39f1e1a75de..021dbadf6cee7bd86ba9458932db113576dfb764 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -391,4 +391,5 @@ ACOS(
       }
     }
   }
+
 }
index 1e7ef740cd2d4f667b4211d433fbc5549c3a4411..63ef0c3a7ee2d1426352fb246e2a461818fbf598 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -5647,4 +5647,5 @@ AND   displayRelType.is_active = 1
 
     return array(CRM_Utils_Array::value($op, $qillOperators, $op), $fieldValue);
   }
+
 }
index 49f43c15917b14bd8e86d04c371b7a2ad9c90474..8d9f26cb6b3fcf26588026e33934717f06faac6c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -163,4 +163,5 @@ class CRM_Contact_BAO_Query_Hook {
       $obj->setAdvancedSearchPaneTemplatePath($paneTemplatePathArray, $type);
     }
   }
+
 }
index 76982e5d38b676e4f0a8364071c0dcf5cc2947af..2b5d8578ef8fce6a9f610405d7d1b0e15c2f49a4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -122,4 +122,5 @@ abstract class CRM_Contact_BAO_Query_Interface {
    */
   public function alterSearchBuilderOptions(&$apiEntities, &$fieldOptions) {
   }
+
 }
index 941f183f356a0146c56b6afc81eaca0e3f8ce616..341d42cac6712356415458666e18bdb23d53e023 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -750,16 +750,16 @@ FROM   civicrm_relationship
 WHERE  relationship_type_id = " . CRM_Utils_Type::escape($type, 'Integer');
 
     /*
-    * CRM-11792 - date fields from API are in ISO format, but this function
-    * supports date arrays BAO has increasingly standardised to ISO format
-    * so I believe this function should support ISO rather than make API
-    * format it - however, need to support array format for now to avoid breakage
-    * @ time of writing this function is called from Relationship::createMultiple (twice)
-    * CRM_BAO_Contact_Utils::clearCurrentEmployer (seemingly without dates)
-    * CRM_Contact_Form_Task_AddToOrganization::postProcess &
-    * CRM_Contact_Form_Task_AddToHousehold::postProcess
-    * (I don't think the last 2 support dates but not sure
-    */
+     * CRM-11792 - date fields from API are in ISO format, but this function
+     * supports date arrays BAO has increasingly standardised to ISO format
+     * so I believe this function should support ISO rather than make API
+     * format it - however, need to support array format for now to avoid breakage
+     * @ time of writing this function is called from Relationship::createMultiple (twice)
+     * CRM_BAO_Contact_Utils::clearCurrentEmployer (seemingly without dates)
+     * CRM_Contact_Form_Task_AddToOrganization::postProcess &
+     * CRM_Contact_Form_Task_AddToHousehold::postProcess
+     * (I don't think the last 2 support dates but not sure
+     */
 
     $dateFields = array('end_date', 'start_date');
     foreach ($dateFields as $dateField) {
index d3327a7685930f144b784cabb3a700eb7c11a363..537f5e176ab361f6123c84f0c0e711a6a5ef27cc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -180,4 +180,5 @@ UPDATE civicrm_membership_type
     $relationshipType->id = $relationshipTypeId;
     return $relationshipType->delete();
   }
+
 }
index fe1f399a78e0b01438775f0d5ce8d5b0fe13a631..a42b1fe4740b33372d527355c46433b7da62ce59 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -307,4 +307,5 @@ LEFT JOIN civicrm_email ON (contact_a.id = civicrm_email.contact_id AND civicrm_
 
     return $savedSearch;
   }
+
 }
index 849277c34c6d18b1a7f70093463f9b7094334ff7..fef2d90aec683f011ba9564d15d839a4a5d961bf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -163,4 +163,5 @@ class CRM_Contact_BAO_SearchCustom {
 
     return array($from, $where);
   }
+
 }
index 302fee892537bc5cc0289625f31e6b57678dd46a..cffdab31533a0cc042081439ab93366b87319c5f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -78,4 +78,5 @@ class CRM_Contact_BAO_SubscriptionHistory extends CRM_Contact_DAO_SubscriptionHi
     $history->contact_id = $id;
     $history->delete();
   }
+
 }
index 728c4d2dca70839aebedc83d622caa3edb4513d0..1d893fe81a10a2199ac7f00a00cfd1a2d6e7b37d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 6186efc27a77af4741f0b4b5736eedd1c5b5f367..eae321ae3906b09f1fcb2cb8d2a463813e34d412 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -433,7 +433,6 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
     //set address block defaults
     CRM_Contact_Form_Edit_Address::setDefaultValues($defaults, $this);
 
-
     if (!empty($defaults['image_URL'])) {
       list($imageWidth, $imageHeight) = getimagesize(CRM_Utils_String::unstupifyUrl($defaults['image_URL']));
       list($imageThumbWidth, $imageThumbHeight) = CRM_Contact_BAO_Contact::getThumbSize($imageWidth, $imageHeight);
@@ -499,11 +498,10 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
         // make we require one primary block, CRM-5505
         if ($updateMode) {
           if (!$hasPrimary) {
-            $hasPrimary =
-              CRM_Utils_Array::value(
-                'is_primary',
-                CRM_Utils_Array::value($instance, $defaults[$name])
-              );
+            $hasPrimary = CRM_Utils_Array::value(
+              'is_primary',
+              CRM_Utils_Array::value($instance, $defaults[$name])
+            );
           }
           continue;
         }
@@ -642,7 +640,7 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
               if (!$primaryID &&
                 in_array($name, array(
                   'email',
-                  'openid'
+                  'openid',
                 )) && !empty($blockValues[$name])
               ) {
                 $primaryID = $blockValues[$name];
@@ -733,14 +731,13 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
     if ($this->_action == CRM_Core_Action::UPDATE) {
       $deleteExtra = ts('Are you sure you want to delete contact image.');
       $deleteURL = array(
-        CRM_Core_Action::DELETE =>
-          array(
-            'name' => ts('Delete Contact Image'),
-            'url' => 'civicrm/contact/image',
-            'qs' => 'reset=1&cid=%%id%%&action=delete',
-            'extra' =>
-              'onclick = "if (confirm( \'' . $deleteExtra . '\' ) ) this.href+=\'&amp;confirmed=1\'; else return false;"',
-          ),
+        CRM_Core_Action::DELETE => array(
+          'name' => ts('Delete Contact Image'),
+          'url' => 'civicrm/contact/image',
+          'qs' => 'reset=1&cid=%%id%%&action=delete',
+          'extra' =>
+          'onclick = "if (confirm( \'' . $deleteExtra . '\' ) ) this.href+=\'&amp;confirmed=1\'; else return false;"',
+        ),
       );
       $deleteURL = CRM_Core_Action::formLink($deleteURL,
         CRM_Core_Action::DELETE,
@@ -1068,7 +1065,7 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
    * @param array $fields
    *   The hierarchical value representation of this location.
    *
-   * @return boolean
+   * @return bool
    *   true if data exists, false otherwise
    */
   public static function blockDataExists(&$fields) {
@@ -1083,7 +1080,7 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
       'provider_id',
       'country_id',
       'website_type_id',
-      'master_id'
+      'master_id',
     );
     foreach ($fields as $name => $value) {
       $skipField = FALSE;
@@ -1138,18 +1135,18 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
         $duplicateContactsLinks = '<div class="matching-contacts-found">';
         $duplicateContactsLinks .= ts('One matching contact was found. ', array(
             'count' => count($contactLinks['rows']),
-            'plural' => '%count matching contacts were found.<br />'
+            'plural' => '%count matching contacts were found.<br />',
           ));
         if ($contactLinks['msg'] == 'view') {
           $duplicateContactsLinks .= ts('You can View the existing contact', array(
               'count' => count($contactLinks['rows']),
-              'plural' => 'You can View the existing contacts'
+              'plural' => 'You can View the existing contacts',
             ));
         }
         else {
           $duplicateContactsLinks .= ts('You can View or Edit the existing contact', array(
               'count' => count($contactLinks['rows']),
-              'plural' => 'You can View or Edit the existing contacts'
+              'plural' => 'You can View or Edit the existing contacts',
             ));
         }
         if ($contactLinks['msg'] == 'merge') {
@@ -1181,7 +1178,6 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
 
         $errors['_qf_default'] = $duplicateContactsLinks;
 
-
         // let smarty know that there are duplicates
         $template = CRM_Core_Smarty::singleton();
         $template->assign('isDuplicate', 1);
@@ -1235,7 +1231,7 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
       foreach (array(
                  'street_number',
                  'street_name',
-                 'street_unit'
+                 'street_unit',
                ) as $fld) {
         if (!empty($address[$fld])) {
           $parseFieldName = 'street_number';
@@ -1268,11 +1264,11 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
                    'street_number',
                    'street_number_suffix',
                    'street_name',
-                   'street_unit'
+                   'street_unit',
                  ) as $fld) {
           if (in_array($fld, array(
             'street_name',
-            'street_unit'
+            'street_unit',
           ))) {
             $streetAddress .= ' ';
           }
@@ -1402,7 +1398,6 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
         $userId = $contactId;
       }
 
-
       // get deceased status id
       $allStatus = CRM_Member_PseudoConstant::membershipStatus();
       $deceasedStatusId = array_search('Deceased', $allStatus);
@@ -1441,7 +1436,6 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
           'max_related' => $dao->max_related,
         );
 
-
         CRM_Member_BAO_MembershipLog::add($membershipLog, CRM_Core_DAO::$_nullArray);
 
         //create activity when membership status is changed
@@ -1474,4 +1468,5 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
 
     return $updateMembershipMsg;
   }
+
 }
index 6334991867709c4ee57fa8e15b9d447f660a8ecd..893c53d2751e3841a6b7663f4545f9392e8318b1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -313,4 +313,5 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form {
     // reset the group contact cache for this group
     CRM_Contact_BAO_GroupContactCache::remove();
   }
+
 }
index a6db634f61440ffcba06609ef4312a920bdbe8c3..d886b03902ccab632a4b509d4b3ad232704c04cf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -104,4 +104,5 @@ class CRM_Contact_Form_DedupeFind extends CRM_Admin_Form {
 
     CRM_Utils_System::redirect($url);
   }
+
 }
index a4b5f23190a8774ee8fd8346ed4978680fd1aa04..ccf9afe5ee2b97a3bd9b4607d366fd9a5caade46 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -290,7 +290,7 @@ UPDATE civicrm_dedupe_rule_group
                 'binary',
                 'varbinary',
                 'text',
-                'blob'
+                'blob',
               ))
           ) {
             $length = NULL;
@@ -317,4 +317,5 @@ UPDATE civicrm_dedupe_rule_group
 
     CRM_Core_Session::setStatus(ts("The rule '%1' has been saved.", array(1 => $rgDao->title)), ts('Saved'), 'success');
   }
+
 }
index d749ee8eaf4e0d2324f3fe7f3012509de98acad4..f05dbb833903807aad818ceb893fe02506cf1226 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -307,4 +307,5 @@ class CRM_Contact_Form_Domain extends CRM_Core_Form {
     $session = CRM_Core_Session::singleton();
     $session->replaceUserContext(CRM_Utils_System::url('civicrm/admin', 'reset=1'));
   }
+
 }
index a064ef281215db4dd41f273e32a34af3a8b75d3b..797e68b3aeebc00c1cfcb74273f15ecfee0ac963 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -468,4 +468,5 @@ class CRM_Contact_Form_Edit_Address {
       $form->_addressRequireOmission = rtrim($requireOmission, ',');
     }
   }
+
 }
index 4991df9072e5df582f3cf7b3a5b16abda0a34c42..3dab9b73ea84ba6188ac52a75b68df99ce3b1be7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -56,7 +56,6 @@ class CRM_Contact_Form_Edit_CommunicationPreferences {
     // since the pcm - preferred comminication method is logically
     // grouped hence we'll use groups of HTML_QuickForm
 
-
     // checkboxes for DO NOT phone, email, mail
     // we take labels from SelectValues
     $privacy = $commPreff = $commPreference = array();
@@ -118,7 +117,7 @@ class CRM_Contact_Form_Edit_CommunicationPreferences {
       if (!empty($greetingTokens)) {
         $form->addElement('select', $fields['field'], $fields['label'],
           array(
-            '' => ts('- select -')
+            '' => ts('- select -'),
           ) + $greetingTokens
         );
         //custom addressee
@@ -187,8 +186,7 @@ class CRM_Contact_Form_Edit_CommunicationPreferences {
     if ($form->_action & CRM_Core_Action::ADD) {
       foreach (CRM_Contact_BAO_Contact::$_greetingTypes as $greeting) {
         if (empty($defaults[$greeting . '_id'])) {
-          if ($defaultGreetingTypeId =
-            CRM_Contact_BAO_Contact_Utils::defaultGreeting($form->_contactType, $greeting)
+          if ($defaultGreetingTypeId = CRM_Contact_BAO_Contact_Utils::defaultGreeting($form->_contactType, $greeting)
           ) {
             $defaults[$greeting . '_id'] = $defaultGreetingTypeId;
           }
@@ -246,4 +244,5 @@ class CRM_Contact_Form_Edit_CommunicationPreferences {
 
     return self::$greetings[$contactType];
   }
+
 }
index 2288f58eed56c43885fe094ef456dabf39e865dd..c7f3ca5bc6c3cca7fef7abda8ab4d8387a137c67 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -112,4 +112,5 @@ class CRM_Contact_Form_Edit_CustomData {
   public static function setDefaultValues(&$form, &$defaults) {
     $defaults += CRM_Custom_Form_CustomData::setDefaultValues($form);
   }
+
 }
index f095eb0f7fa5586a5e858d2821501be4d95e6185..6a421e37954b677a3da647d7ec7e9faaabdc4188 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -76,4 +76,5 @@ class CRM_Contact_Form_Edit_Demographics {
    */
   public static function setDefaultValues(&$form, &$defaults) {
   }
+
 }
index 916f22b041da15935dbb055d15a5a4da76a189aa..96e64087a01c00c4f8f94ec4a6b4ddbc350f6946 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -121,4 +121,5 @@ class CRM_Contact_Form_Edit_Email {
       }
     }
   }
+
 }
index 95071a1b07cf509775eb66415d057d07ac0e8f14..b74fd7e6c0ac62b78949de6628fba16d3229eef8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -104,4 +104,5 @@ class CRM_Contact_Form_Edit_Household {
 
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index 07ba127a869403a6b0f71b0edd9e00a5c885d954..f193d8114c7e07c8805d62484ec54989f6303d65 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -82,4 +82,5 @@ class CRM_Contact_Form_Edit_IM {
 
     $form->addElement('radio', "im[$blockId][is_primary]", '', '', '1', $js);
   }
+
 }
index 8e82a838dfc2aafd25464e20a5728da58d9746a8..fab8fdf970c2eb6428e4ce9f5121c4da9c9c7ddd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -169,4 +169,5 @@ class CRM_Contact_Form_Edit_Individual {
 
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index f7e5d7d27d172adf4c87537d16fe25366abe1dd5..f0da56b06629c5f30d309f08001beec6f7879f97 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -76,4 +76,5 @@ class CRM_Contact_Form_Edit_Lock {
 
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index eb49cecb067d2aadd60b8a13cfb8637cb346b993..4c8dc6134fcaa53a6fac5aea3b74f18d47f3b000 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -44,4 +44,5 @@ class CRM_Contact_Form_Edit_Notes {
     $form->add('text', 'subject', ts('Subject'), array('size' => 60, 'maxlength' => 254));
     $form->add('textarea', 'note', ts('Notes'), array('cols' => '60', 'rows' => '3'));
   }
+
 }
index 9cb99bcbaedc3ed7173bd76461f96e012c49157f..7bf5456245ad14aae105ae67dd0f9b795809780e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -75,4 +75,5 @@ class CRM_Contact_Form_Edit_OpenID {
 
     $form->addElement('radio', "openid[$blockId][is_primary]", '', '', '1', $js);
   }
+
 }
index 5d808b4797fb219d753bc2c9981e9ec41658e8d0..e7ded2348ad28796ee41aa02d2724cbfb5a6c133 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -109,4 +109,5 @@ class CRM_Contact_Form_Edit_Organization {
     // add code to make sure that the uniqueness criteria is satisfied
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index dd50d6c221cdaa896eb67072b2d5e2f1985aac57..aaa9900b65e140c48d647e4bb373078b9e8d32a3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -85,4 +85,5 @@ class CRM_Contact_Form_Edit_Phone {
     // TODO: set this up as a group, we need a valid phone_type_id if we have a  phone number
     // $form->addRule( "location[$locationId][phone][$locationId][phone]", ts('Phone number is not valid.'), 'phone' );
   }
+
 }
index de0b5d3e939d7d4637f0974af7c22c7c4359e1ec..32e98b18b83b9e8326b9d0c78325f9b45e8f842c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -287,4 +287,5 @@ class CRM_Contact_Form_Edit_TagsAndGroups {
       }
     }
   }
+
 }
index 2d8363ce347d7871184fdd15a918f54559fbd400..504723f6f1424d1567606cca73b751aa2d989d77 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -74,4 +74,5 @@ class CRM_Contact_Form_Edit_Website {
 
     $form->addRule("website[$blockId][url]", ts('Enter a valid web location beginning with \'http://\' or \'https://\'. EXAMPLE: http://www.mysite.org/'), 'url');
   }
+
 }
index a03cb9e9aae8a3171bbfe909fddcc02b643565b9..163042be976cabddb661a6ec08aab508c03f711b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -139,4 +139,5 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form {
       CRM_Core_Session::setStatus(ts("Contact has been added to '%1'.", array(1 => $groups[$groupId])), ts('Added to Group'), 'success');
     }
   }
+
 }
index 20db671923e2067458e04bcd00ee96c271060844..7c376ad3ad45be554eb47d83daa1145b3e3f2bc6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -162,4 +162,5 @@ abstract class CRM_Contact_Form_Inline extends CRM_Core_Form {
     );
     // Note: Post hooks will be called by CRM_Core_Form::mainProcess
   }
+
 }
index 97d387f2d67d4720c8f6ecd8417db6fce59d84c0..c2df08244e28164dc41ec14ce099c6247b907060 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -188,4 +188,5 @@ class CRM_Contact_Form_Inline_Address extends CRM_Contact_Form_Inline {
     $this->ajaxResponse['addressId'] = $address[0]->id;
     $this->response();
   }
+
 }
index 2a38e354101e9d7829c2fe0cee6f27736c8a8247..a8912124d56248d2fb2d2c178a11f624959c2b74 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -102,4 +102,5 @@ class CRM_Contact_Form_Inline_CommunicationPreferences extends CRM_Contact_Form_
 
     $this->response();
   }
+
 }
index 0bc5ff71af6b12858875a656f1b27cbe1a285cec..dfcfd8eb4e77e4fe4a565d0d130c5e118c1f428d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -91,4 +91,5 @@ class CRM_Contact_Form_Inline_ContactInfo extends CRM_Contact_Form_Inline {
 
     $this->response();
   }
+
 }
index 7c700877531f64dd381a06c1f201612a39e47b68..1847c866c92db94abb77ea65dfb53f8981868efa 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -71,4 +71,5 @@ class CRM_Contact_Form_Inline_ContactName extends CRM_Contact_Form_Inline {
 
     $this->response();
   }
+
 }
index cbb2dbf84cade21890129c71483df45692965005..8a55e3eecf83d5d4107e4d271614874d32115370 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -107,4 +107,5 @@ class CRM_Contact_Form_Inline_CustomData extends CRM_Contact_Form_Inline {
 
     $this->response();
   }
+
 }
index 017c59b03fab53f64951cc2ebdf90d2ad229fb3f..e17e6876348cf850b8c89d8f56c64807e3085c79 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -73,4 +73,5 @@ class CRM_Contact_Form_Inline_Demographics extends CRM_Contact_Form_Inline {
 
     $this->response();
   }
+
 }
index 00b9fa5ff670c63497f07a6be692856b78be6009..98c3a2a17a73ae04327acaf2b7fc54cea75ebf44 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -119,7 +119,6 @@ class CRM_Contact_Form_Inline_Email extends CRM_Contact_Form_Inline {
         }
       }
 
-
       if (empty($hasPrimary) && !empty($hasData)) {
         $errors["email[1][is_primary]"] = ts('One email should be marked as primary.');
       }
@@ -168,4 +167,5 @@ class CRM_Contact_Form_Inline_Email extends CRM_Contact_Form_Inline {
     $this->log();
     $this->response();
   }
+
 }
index bc058a850985d91d949dc70bd091854768fb9aa1..fc2f18fd6ea834c1ff72c99af1ae572199500456 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -169,4 +169,5 @@ class CRM_Contact_Form_Inline_IM extends CRM_Contact_Form_Inline {
     $this->log();
     $this->response();
   }
+
 }
index 9388ef025b7468705e9f1d0181e1c56677d123fc..280099c68e8578767daa07eadf5dffd540c9d7dd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -100,4 +100,5 @@ class CRM_Contact_Form_Inline_Lock {
     $timestamps = CRM_Contact_BAO_Contact::getTimestamps($contactID);
     return array('oplock_ts' => $timestamps['modified_date']);
   }
+
 }
index c80b3903d6d1283515d007d7ccd0c7c33c045174..06aa2985320d599e94256e4651a98da703a9688e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -169,4 +169,5 @@ class CRM_Contact_Form_Inline_OpenID extends CRM_Contact_Form_Inline {
     $this->log();
     $this->response();
   }
+
 }
index 601d2e2052f6a0206a2c5deedb2e6738b7f971ee..e4ba3f4600cc7cf4354a450a395986efff440e23 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -170,4 +170,5 @@ class CRM_Contact_Form_Inline_Phone extends CRM_Contact_Form_Inline {
     $this->log();
     $this->response();
   }
+
 }
index f01c648a7502d555f6e9c519f944babda0e4f82f..a0f6152793c24ce3b9abf78a71c2dc47dc4bbc4e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -128,4 +128,5 @@ class CRM_Contact_Form_Inline_Website extends CRM_Contact_Form_Inline {
     $this->log();
     $this->response();
   }
+
 }
index 8c2f938740bd1af5b62e08199f44cc8561960386..5126495b23d1392e9fde8cdca0494644b2245941 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -122,4 +122,5 @@ class CRM_Contact_Form_Location {
     $form->assign('generateAjaxRequest', $generateAjaxRequest);
     $form->assign('ajaxRequestBlocks', $ajaxRequestBlocks);
   }
+
 }
index ba367123caef37cadafe0b62fd43f6ec1cb06915..60440827d08e1f1aa356afd83099f9b2a447d79f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -131,7 +131,7 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form {
     $this->prev = $this->next = NULL;
     foreach (array(
                'prev',
-               'next'
+               'next',
              ) as $position) {
       if (!empty($pos[$position])) {
         if ($pos[$position]['id1'] && $pos[$position]['id2']) {
@@ -282,7 +282,7 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form {
       $buttons[] = array(
         'type' => 'done',
         'name' => ts('Merge and View Result'),
-        'icon' => 'circle-check'
+        'icon' => 'circle-check',
       );
     }
 
@@ -378,4 +378,5 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form {
 
     CRM_Utils_System::redirect($url);
   }
+
 }
index d322d192d498e352cdea44e4b0dbf1c2f827b778..14f7004b255a819e284b8cf59ff3281894e9f310 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -154,4 +154,5 @@ class CRM_Contact_Form_ProfileContact {
       }
     }
   }
+
 }
index 33c301d0b66c63bf9c280ba86848557e5064c66d..7c01ebaa37c0da7ec930b8b114708f8e1ea41096 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -187,4 +187,5 @@ class CRM_Contact_Form_RelatedContact extends CRM_Core_Form {
     }
     CRM_Core_Session::setStatus($message, ts('Contact Saved'), 'success');
   }
+
 }
index aea4c30362ab5eca23728a6a79d20a2a479cf9ef..e386bc5752e613bd280aefb147aa0b18a505582e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 3bb065da0b425e907a05883e63cece9c09cc4629..5896630c73cbf2e0b884d16cfbd169b71325e895 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -869,4 +869,5 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search {
   public function getTitle() {
     return ts('Search');
   }
+
 }
index 32cae3ba637e666010c12a962c9ca27d2e93d608..5c18365737d5964a38e099dd7f12b01ebb46b142 100644 (file)
@@ -23,7 +23,7 @@ s | under the terms of the GNU Affero General Public License           |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -247,7 +247,7 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search {
       if (array_key_exists('contribution_amount_low', $this->_formValues)) {
         foreach (array(
                    'contribution_amount_low',
-                   'contribution_amount_high'
+                   'contribution_amount_high',
                  ) as $f) {
           $this->_formValues[$f] = CRM_Utils_Rule::cleanMoney($this->_formValues[$f]);
         }
@@ -271,7 +271,6 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search {
       $this->_formValues['group'] = array($this->_groupID => 1);
     }
 
-
     //search for civicase
     if (is_array($this->_formValues)) {
       $allCases = FALSE;
@@ -283,7 +282,7 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search {
                    'case_type_id',
                    'case_status_id',
                    'case_deleted',
-                   'case_tags'
+                   'case_tags',
                  ) as $caseCriteria) {
           if (!empty($this->_formValues[$caseCriteria])) {
             $allCases = TRUE;
@@ -374,7 +373,7 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search {
       'status_id',
       'activity_subject',
       'participant_status_id',
-      'participant_role_id'
+      'participant_role_id',
     );
     foreach ($specialParams as $element) {
       $value = CRM_Utils_Array::value($element, $this->_formValues);
@@ -407,8 +406,6 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search {
         }
       }
     }
-
-    return;
   }
 
   /**
@@ -434,4 +431,5 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search {
     }
     return $defaults;
   }
+
 }
index 7823d4c21d94936666aa2a207cc21fe5f66e5d4e..e908e6b5b2a002f02060ef9d8b21119b2d0b0af8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -86,7 +86,7 @@ class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search {
           'entity' => 'group_contact',
           'label' => ts('in'),
           'context' => 'search',
-          'placeholder' => ts('- any group -')
+          'placeholder' => ts('- any group -'),
         ));
     }
 
@@ -97,7 +97,7 @@ class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search {
             'entity' => 'entity_tag',
             'label' => ts('with'),
             'context' => 'search',
-            'placeholder' => ts('- any tag -')
+            'placeholder' => ts('- any tag -'),
           ));
       }
     }
@@ -243,7 +243,7 @@ class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search {
       $this->_formValues['tag'][$tag] = 1;
     }
 
-    return;
+    return NULL;
   }
 
   /**
@@ -288,4 +288,5 @@ class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search {
   public function getTitle() {
     return ts('Find Contacts');
   }
+
 }
index 2e74aaea819dd9eb2aa2fef02fe2bd24d7e364c6..c40f15852931a2045ad20e9c5f24f33072c96a65 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -504,4 +504,5 @@ class CRM_Contact_Form_Search_Builder extends CRM_Contact_Form_Search {
     }
     return $val;
   }
+
 }
index bf0f9e74e4151cb7d2ab8dee61e49d24ba82ec0a..8578b763af8fdf6ac3ed44f6978354e7ac21d59d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -557,4 +557,5 @@ class CRM_Contact_Form_Search_Criteria {
     $form->add('hidden', 'hidden_CiviCase', 1);
     CRM_Case_BAO_Query::buildSearchForm($form);
   }
+
 }
index ad8e178bb483f864a232992b6fe0ae3728e94de5..4dbf9e046da2812577e2253f47d9d7924c5ebdb6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -194,4 +194,5 @@ class CRM_Contact_Form_Search_Custom extends CRM_Contact_Form_Search {
     }
     return TRUE;
   }
+
 }
index e21c6479ece0f6b562a7ff8661e3701732976f6f..0a8fd726284956e1754dc36fc26805176b2f6a83 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -410,4 +410,5 @@ ORDER BY contact_a.sort_name';
   public function summary() {
     return NULL;
   }
+
 }
index dd1d45bc3ac4d52a834863245e0d683b0ab51a41..cd1d9806cdc471bffe7d6686eca162c2d7ce6e34 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -229,4 +229,5 @@ class CRM_Contact_Form_Search_Custom_Base {
   public function getQueryObj() {
     return NULL;
   }
+
 }
index e2c7d55d24b280ac3e8f70e27c7f78ec2e14e502..0823a8ba0ee79d3f40be675d83b87bffbfba9521 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -72,7 +72,7 @@ class CRM_Contact_Form_Search_Custom_Basic extends CRM_Contact_Form_Search_Custo
           'city',
           'state_province',
           'postal_code',
-          'country'
+          'country',
         )) && empty($addressOptions[$field])
       ) {
         unset($this->_columns[$name]);
@@ -112,7 +112,7 @@ class CRM_Contact_Form_Search_Custom_Basic extends CRM_Contact_Form_Search_Custo
       $this->_formValues['tag'][$tag] = 1;
     }
 
-    return;
+    return NULL;
   }
 
   /**
@@ -155,7 +155,7 @@ class CRM_Contact_Form_Search_Custom_Basic extends CRM_Contact_Form_Search_Custo
    *
    * @return CRM_Contact_DAO_Contact
    */
-  function all(
+  public function all(
     $offset = 0,
     $rowCount = 0,
     $sort = NULL,
@@ -206,4 +206,5 @@ class CRM_Contact_Form_Search_Custom_Basic extends CRM_Contact_Form_Search_Custo
   public function getQueryObj() {
     return $this->_query;
   }
+
 }
index 79ca97a975561e356182ee94edd62f9ee182c12b..f6ef408762965fae5bb7d5fde0a44f53ebd76273 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -144,7 +144,7 @@ class CRM_Contact_Form_Search_Custom_ContribSYBNT implements CRM_Contact_Form_Se
    *
    * @return string
    */
-  function all(
+  public function all(
     $offset = 0,
     $rowcount = 0,
     $sort = NULL,
@@ -191,7 +191,6 @@ GROUP BY   contact_a.id
 ORDER BY   donation_amount desc
 ";
 
-
     if ($justIDs) {
       CRM_Core_DAO::executeQuery("DROP TEMPORARY TABLE IF EXISTS CustomSearch_SYBNT_temp");
       $query = "CREATE TEMPORARY TABLE CustomSearch_SYBNT_temp AS ({$sql})";
@@ -392,4 +391,5 @@ AND      c.receive_date < {$this->start_date_1}
       CRM_Utils_System::setTitle(ts('Search'));
     }
   }
+
 }
index 244b4c6d8d6aa7cc545898cb26845c01b4076b5c..3eb41d1179c7688df372a0a63d45ca60c12df62b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -115,7 +115,7 @@ class CRM_Contact_Form_Search_Custom_ContributionAggregate implements CRM_Contac
    *
    * @return string
    */
-  function all(
+  public function all(
     $offset = 0, $rowcount = 0, $sort = NULL,
     $includeContactIDs = FALSE, $justIDs = FALSE
   ) {
@@ -304,4 +304,5 @@ civicrm_contact AS contact_a
   public function summary() {
     return NULL;
   }
+
 }
index 14ed83351f4b67395151bbcab129185cd4b935bb..adbfa25a3b1def940769032e1d147655322eef10 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -433,4 +433,5 @@ class CRM_Contact_Form_Search_Custom_DateAdded extends CRM_Contact_Form_Search_C
       CRM_Core_DAO::executeQuery($sql, CRM_Core_DAO::$_nullArray);
     }
   }
+
 }
index bd6f4d73151210dd137055a30e16dfa2f445f71e..5ace6dd3b787442e9c9465b199a52d117b19d932 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -290,4 +290,5 @@ class CRM_Contact_Form_Search_Custom_EmployerListing implements CRM_Contact_Form
   public function summary() {
     return NULL;
   }
+
 }
index 1b6ee7ad2840e3939a9639e127c63aedd947073b..bea5e0b820e2642047c8f40d23e20ab0b8661f91 100644 (file)
@@ -96,7 +96,7 @@ class CRM_Contact_Form_Search_Custom_EventAggregate extends CRM_Contact_Form_Sea
         'end_date',
         'show_payees',
         'event_type_id',
-        'event_id'
+        'event_id',
       ));
   }
 
@@ -110,7 +110,7 @@ class CRM_Contact_Form_Search_Custom_EventAggregate extends CRM_Contact_Form_Sea
   /**
    * Construct the search query
    */
-  function all(
+  public function all(
     $offset = 0, $rowcount = 0, $sort = NULL,
     $includeContactIDs = FALSE, $justIDs = FALSE
   ) {
@@ -345,4 +345,5 @@ class CRM_Contact_Form_Search_Custom_EventAggregate extends CRM_Contact_Form_Sea
       CRM_Utils_System::setTitle(ts('Search'));
     }
   }
+
 }
index d36d8a1a17cde5864de2b98eb0109dd6c157c4d3..cce55ce6e63a1b23b513d8257a8fe088bfc7f2ce 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -546,4 +546,5 @@ FROM   {$this->_tableName} contact_a
     }
     return $result;
   }
+
 }
index 814360b6a3363666f1991a6a6588c0703e688593..9d2ecd4141da6525afeca601cd22406ebf6ca6a8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 8db1fe4b398659a19c65c5c2fcbe39a0c35ba358..f45da6be62d34915c609afff6b7f7c75bd5d763d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index cd56cd389972eeae9375710b40d62fd949afbae7..29dd5f0dc99efa20a4b5a18cab127d1d4f06e3ef 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index c1a77aaca3c0d6c95e0a3f5811cd02f7a2575787..834025faeafbd301ab44c09741524c9b333a8bcb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 7c76bbfebd38bf99e445a523dd27557d9fba5689..df24428b3a966f3b151700b3a12d8a54b7f015ab 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index d677843b0fca02eec4195f6ef5ec98cd6fb37308..fac21b49fc744526431e3912dfa8994bacf9b5da 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 9aa24e5bbcd17ef965205ee85838cb78b8fe217d..f39dcb67900299c3044ee3eedafb809aec84dbea 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 66ea3e178604259fa30c11f52dc79afe3e016d8d..190924082c932a87eb3a8eb89b22f8e3a159c12e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -32,9 +32,7 @@
  * $Id$
  *
  */
-class CRM_Contact_Form_Search_Custom_Group
-  extends CRM_Contact_Form_Search_Custom_Base
-  implements CRM_Contact_Form_Search_Interface {
+class CRM_Contact_Form_Search_Custom_Group extends CRM_Contact_Form_Search_Custom_Base implements CRM_Contact_Form_Search_Interface {
 
   protected $_formValues;
 
@@ -651,4 +649,5 @@ WHERE  gcc.group_id = {$ssGroup->id}
   public function buildACLClause($tableAlias = 'contact') {
     list($this->_aclFrom, $this->_aclWhere) = CRM_Contact_BAO_Contact_Permission::cacheClause($tableAlias);
   }
+
 }
index 9df1ad8b4175626a6afc1177d9b91cbb11a1386e..c15246565a32faa37f0b8979eb8892063df1f99c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -345,4 +345,5 @@ contact_a.sort_name    as sort_name,
   public function setTitle($title) {
     CRM_Utils_System::setTitle($title);
   }
+
 }
index eaad6b2989e6a5c673a9829ea92612066da844e9..3635a85cba1fafe9409db4d39aa476a59f00ca30 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -149,4 +149,5 @@ LEFT JOIN civicrm_state_province state_province ON  state_province.id = address.
   public function templateFile() {
     return 'CRM/Contact/Form/Search/Custom.tpl';
   }
+
 }
index 2830daa662d4fac1397b70a12eef5ae36f4b2010..1c112a00ca2b46c6163f2ec25ae714dd789717b2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,11 +62,11 @@ class CRM_Contact_Form_Search_Custom_PriceSet extends CRM_Contact_Form_Search_Cu
 
   public function __destruct() {
     /*
-        if ( $this->_eventID ) {
-            $sql = "DROP TEMPORARY TABLE {$this->_tableName}";
-            CRM_Core_DAO::executeQuery( $sql );
-        }
-        */
+    if ( $this->_eventID ) {
+    $sql = "DROP TEMPORARY TABLE {$this->_tableName}";
+    CRM_Core_DAO::executeQuery( $sql );
+    }
+     */
   }
 
   public function buildTempTable() {
@@ -355,4 +355,5 @@ INNER JOIN {$this->_tableName} tempTable ON ( tempTable.contact_id = contact_a.i
       CRM_Utils_System::setTitle(ts('Export Price Set Info for an Event'));
     }
   }
+
 }
index 1e2cb42048b6e0de10746239b99874def77eda59..112c61ee129b6cf009fe997300b699ac6e37b03f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -302,4 +302,5 @@ AND cgc.group_id = {$this->_group}
       CRM_Utils_System::setTitle(ts('Search'));
     }
   }
+
 }
index 2ec16741fcf9d9f6274e70b5c5a549e67bf133e9..228f3729e9cb31feb31b20293f47b7c711873f85 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -131,7 +131,7 @@ class CRM_Contact_Form_Search_Custom_RandomSegment extends CRM_Contact_Form_Sear
    *
    * @return string
    */
-  function all(
+  public function all(
     $offset = 0, $rowcount = 0, $sort = NULL,
     $includeContactIDs = FALSE, $justIDs = FALSE
   ) {
@@ -376,6 +376,7 @@ class CRM_Contact_Form_Search_Custom_RandomSegment extends CRM_Contact_Form_Sear
     // the temporary tables are dropped automatically
     // so we don't do it here
     // but let mysql clean up
-    return;
+    return NULL;
   }
+
 }
index 627a74913927df5a8cfe2c5fefd81ad1dc5bdd15..1c9caca8efffeee2a9e3d02397749272606ed1f1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -106,10 +106,7 @@ class CRM_Contact_Form_Search_Custom_Sample extends CRM_Contact_Form_Search_Cust
    *
    * @return string
    */
-  function all(
-    $offset = 0, $rowcount = 0, $sort = NULL,
-    $includeContactIDs = FALSE, $justIDs = FALSE
-  ) {
+  public function all($offset = 0, $rowcount = 0, $sort = NULL, $includeContactIDs = FALSE, $justIDs = FALSE) {
     if ($justIDs) {
       $selectClause = "contact_a.id as contact_id";
       $sort = 'contact_a.id';
@@ -221,4 +218,5 @@ LEFT JOIN civicrm_state_province state_province ON state_province.id = address.s
       CRM_Utils_System::setTitle(ts('Search'));
     }
   }
+
 }
index a88ded69d87c2ad8906950613c1727168e8be0ac..d580312bdf44a79f8dab5b6a057d35197f549f08 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -93,7 +93,7 @@ class CRM_Contact_Form_Search_Custom_TagContributions implements CRM_Contact_For
   /**
    * Construct the search query
    */
-  function all(
+  public function all(
     $offset = 0, $rowcount = 0, $sort = NULL,
     $includeContactIDs = FALSE, $onlyIDs = FALSE
   ) {
@@ -154,9 +154,9 @@ WHERE  $where
   }
 
   /*
-  * WHERE clause is an array built from any required JOINS plus conditional filters based on search criteria field values
-  *
-  */
+   * WHERE clause is an array built from any required JOINS plus conditional filters based on search criteria field values
+   *
+   */
   /**
    * @param bool $includeContactIDs
    *
@@ -258,4 +258,5 @@ WHERE  $where
   public function summary() {
     return NULL;
   }
+
 }
index 24cdfe3169e56f24cc84392ea0a485b44695ea13..debe5277a972e523f3099025b0f94899637a2556 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -188,4 +188,5 @@ LEFT JOIN civicrm_email   email   ON ( email.contact_id = contact_a.id AND
       CRM_Utils_System::setTitle(ts('Search'));
     }
   }
+
 }
index 50e9b041b4f62169cb03858b36b29158d67429d4..27c77bb220c3553188dd95d291f0e9c5776cddec 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -104,4 +104,5 @@ interface CRM_Contact_Form_Search_Interface {
    * Returns an array of column headers and field names and sort options
    */
   public function &columns();
+
 }
index a8070022e3f5020437de1972968c5d40734b5483..1d1228e9f12bf5ab10a6fa431399ebb8b6511d76 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -444,4 +444,5 @@ class CRM_Contact_Form_Task extends CRM_Core_Form {
       $householdsDAO->free();
     }
   }
+
 }
index 1146e0df890e200f934f0da42921541f9d8f9a42..5922d26a7190f639d3a7693483fdf5115780742e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -255,4 +255,5 @@ class CRM_Contact_Form_Task_AddToGroup extends CRM_Contact_Form_Task {
         ->pushUserContext(CRM_Utils_System::url('civicrm/group/search', "reset=1&force=1&context=smog&gid=$groupID"));
     }
   }
+
 }
index f537e23ca0c6d74d65682772f56fdfd69024a1f9..d8c63c0ca89b2f5f4cfd7117c881ef7837c2a8b0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -298,4 +298,5 @@ class CRM_Contact_Form_Task_AddToHousehold extends CRM_Contact_Form_Task {
       $form->set('duplicateRelationship', NULL);
     }
   }
+
 }
index 325031c912747849ea6bb7178c0148f45472ecc2..9cda916ba9cba45ae9b29df83c6e37adb7a2b4f2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 91811916f29ce55b26af3630c855d2c592c7d529..21a7524cc662d0e917d980e2796e182553f53d6b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -148,7 +148,7 @@ class CRM_Contact_Form_Task_AddToTag extends CRM_Contact_Form_Task {
       if ($notAdded) {
         $status[] = ts('%count contact already had this tag', array(
             'count' => $notAdded,
-            'plural' => '%count contacts already had this tag'
+            'plural' => '%count contacts already had this tag',
           ));
       }
       $status = '<ul><li>' . implode('</li><li>', $status) . '</li></ul>';
@@ -156,4 +156,5 @@ class CRM_Contact_Form_Task_AddToTag extends CRM_Contact_Form_Task {
     }
 
   }
+
 }
index f8c4c746b83e69cc6c79dc71a9f5da3e3ac2ac7b..c21c1bf86576d86ac2748663c624aaec42df5344 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -141,4 +141,5 @@ class CRM_Contact_Form_Task_AlterPreferences extends CRM_Contact_Form_Task {
       CRM_Core_Session::setStatus($status, $title, 'success');
     }
   }
+
 }
index c768b4fc6a29f6fb4dd593c0f0997f96155c3691..cded698cd6e25d668f155ddd66c59f1ec5fac91a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -324,4 +324,5 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task {
       $contactValues += $allParseValues;
     }
   }
+
 }
index 0bde6dccdbecbcfc22e73fc662c8687f3f145e64..c16191f622cbebd710399e1d317c23d178746aa0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -305,4 +305,5 @@ class CRM_Contact_Form_Task_Delete extends CRM_Contact_Form_Task {
       $session->replaceUserContext(CRM_Utils_System::url($urlString, $urlParams));
     }
   }
+
 }
index a31bceb0a01863c9e0acc15fd8bc7d607ae07171..411ae69312a5a2b5bb79a84c45efe9aecd36cf22 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -170,4 +170,5 @@ class CRM_Contact_Form_Task_Email extends CRM_Contact_Form_Task {
   public function postProcess() {
     CRM_Contact_Form_Task_EmailCommon::postProcess($this);
   }
+
 }
index 06a8da3243537d38fc4d46cb1133599a3e8fb35e..f8102e3ad7c2a9d2db89fb20b389633387654dbd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -480,7 +480,7 @@ class CRM_Contact_Form_Task_EmailCommon {
       $count_success = count($form->_toContactDetails);
       CRM_Core_Session::setStatus(ts('One message was sent successfully.', array(
             'plural' => '%count messages were sent successfully.',
-            'count' => $count_success
+            'count' => $count_success,
           )), ts('Message Sent', array('plural' => 'Messages Sent', 'count' => $count_success)), 'success');
     }
 
@@ -501,7 +501,7 @@ class CRM_Contact_Form_Task_EmailCommon {
       $status = '(' . ts('because no email address on file or communication preferences specify DO NOT EMAIL or Contact is deceased or Primary email address is On Hold') . ')<ul><li>' . implode('</li><li>', $not_sent) . '</li></ul>';
       CRM_Core_Session::setStatus($status, ts('One Message Not Sent', array(
             'count' => count($emailsNotSent),
-            'plural' => '%count Messages Not Sent'
+            'plural' => '%count Messages Not Sent',
           )), 'info');
     }
 
@@ -519,4 +519,5 @@ class CRM_Contact_Form_Task_EmailCommon {
       }
     }
   }
+
 }
index 0f0763044755988c4e00e9cdabfc55c2fb9bcedd..d743c1e7caa0207ac0023882189314be0cb1a123 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -89,4 +89,5 @@ AND    c.id IN ( $contactIDs )";
    */
   public function postProcess() {
   }
+
 }
index 9240375488d5bdb8dc65ad2007d21c0fb0098d21..039069e3e1cd2c42d06f18103e0f0375e0697b6f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -63,11 +63,10 @@ class CRM_Contact_Form_Task_Label extends CRM_Contact_Form_Task {
 
     $this->add('select', 'label_name', ts('Select Label'), array('' => ts('- select label -')) + $label, TRUE);
 
-
     // add select for Location Type
     $this->addElement('select', 'location_type_id', ts('Select Location'),
       array(
-        '' => ts('Primary')
+        '' => ts('Primary'),
       ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id'), TRUE
     );
 
@@ -93,8 +92,6 @@ class CRM_Contact_Form_Task_Label extends CRM_Contact_Form_Task {
   /**
    * Set default values for the form.
    *
-   * @param null
-   *
    * @return array
    *   array of default values
    */
@@ -291,7 +288,7 @@ class CRM_Contact_Form_Task_Label extends CRM_Contact_Form_Task {
                   'email',
                   'phone',
                   'im',
-                  'openid'
+                  'openid',
                 ))) {
                   if ($k == 'im') {
                     $rows[$value][$k] = $v['1']['name'];
@@ -391,8 +388,6 @@ class CRM_Contact_Form_Task_Label extends CRM_Contact_Form_Task {
    *   Format in which labels needs to be printed.
    * @param string $fileName
    *   The name of the file to save the label in.
-   *
-   * @return null
    */
   public function createLabel(&$contactRows, &$format, $fileName = 'MailingLabels_CiviCRM.pdf') {
     $pdf = new CRM_Utils_PDF_Label($format, 'mm');
@@ -412,5 +407,4 @@ class CRM_Contact_Form_Task_Label extends CRM_Contact_Form_Task {
     $pdf->Output($fileName, 'D');
   }
 
-
 }
index 6fc52e7510519c03a9a81b5ec5124e97f9be8560..6235f07c4230f2424265242ca61a52333fd50d29 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -336,4 +336,5 @@ class CRM_Contact_Form_Task_LabelCommon {
     $rows = array_merge($individuals, $households);
     return $rows;
   }
+
 }
index a5770f55bd0b357023d65f3d6805db8100667658..7ad8ab5d039d2f4c8375e494278b6e630923c212 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -242,4 +242,5 @@ class CRM_Contact_Form_Task_Map extends CRM_Contact_Form_Task {
     $page->assign_by_ref('center', $center);
     $page->assign_by_ref('span', $span);
   }
+
 }
index 87c6faa349613ae0512772fbc3411bb128cb3ca8..799368976a5955c184372b777fe8d1862b4eec87 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -69,4 +69,5 @@ class CRM_Contact_Form_Task_Map_Event extends CRM_Contact_Form_Task_Map {
   public function getTemplateFileName() {
     return 'CRM/Contact/Form/Task/Map.tpl';
   }
+
 }
index c8099dce4da6cb56aef74b33a3c61423af651da1..e117b2dd8a64237e7cdad89a865a35a0ae9814ab 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,8 +62,9 @@ class CRM_Contact_Form_Task_Merge extends CRM_Contact_Form_Task {
       $contact = CRM_Core_DAO::executeQuery($sql);
       while ($contact->fetch()) {
         $contactTypes[$contact->contact_type] = TRUE;
-        if (count($contactTypes) > 1)
+        if (count($contactTypes) > 1) {
           break;
+        }
       }
       if (count($contactTypes) > 1) {
         $statusMsg = ts('Selected records must all be the same contact type (i.e. all Individuals).');
@@ -89,4 +90,5 @@ class CRM_Contact_Form_Task_Merge extends CRM_Contact_Form_Task {
     // redirect to merge page.
     CRM_Utils_System::redirect($url);
   }
+
 }
index 9c00d677f0737097c71e8423b55fbda1bced4e3b..f58042c2b5ad45ecb6a2cc4c13b22c2eb0662e8b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -127,4 +127,5 @@ class CRM_Contact_Form_Task_PDF extends CRM_Contact_Form_Task {
   public function postProcess() {
     CRM_Contact_Form_Task_PDFLetterCommon::postProcess($this);
   }
+
 }
index 439fd17f7484c67d47cafddbc2769ecb5936ccdb..e30edf4440df046b6c27afb53e2b74d51f916bf7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -459,4 +459,5 @@ class CRM_Contact_Form_Task_PDFLetterCommon {
     }
     $message = implode($newLineOperators['p']['oper'], $htmlMsg);
   }
+
 }
index 05c7774450204b237e602b3ff87f47aeec3709ab..48508c0f25cc13af391aaafde46f8cadbd465de2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -166,4 +166,5 @@ class CRM_Contact_Form_Task_PickProfile extends CRM_Contact_Form_Task {
     // also reset the batch page so it gets new values from the db
     $this->controller->resetPage('Batch');
   }
+
 }
index 270e6aaeb6884e28555ce1df85dab7df8f748979..6f3451d25722991e8d42fe490515050e49dee9dd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -142,4 +142,5 @@ class CRM_Contact_Form_Task_Print extends CRM_Contact_Form_Task {
   public function postProcess() {
     // redirect to the main search page after printing is over
   }
+
 }
index 82ba7bb35a5c96c7602be646e4180660f1bac5fa..082e0dacefcb41c7c68b01176f8ef40df47d8c24 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -158,4 +158,5 @@ class CRM_Contact_Form_Task_ProximityCommon extends CRM_Contact_Form_Task {
     $form->setDefaults($defaults);
     return $defaults;
   }
+
 }
index 22b4cd294c0c83090736c4e8add598327457fd5c..cc93717f89a1d1ef253b0ba7470dbfbab545196c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -102,4 +102,5 @@ class CRM_Contact_Form_Task_RemoveFromGroup extends CRM_Contact_Form_Task {
           'count' => $removed,
         )), 'success', array('expires' => 0));
   }
+
 }
index 95a2ec6d4ad37476c3ec7455284bab381fc92949..bb4b5831a42bb9099a4c53f1d7022bc3784b2d8d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -150,4 +150,5 @@ class CRM_Contact_Form_Task_RemoveFromTag extends CRM_Contact_Form_Task {
       CRM_Core_Session::setStatus($status, ts("Removed Tag <em>%1</em>", array(1 => $this->_tags[$key])), 'success', array('expires' => 0));
     }
   }
+
 }
index f8e04f498195ce39171987b1e9b24df7f463f943..223f8d27dabae9aacd8a7af7e8290eadb80d5e2b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -111,4 +111,5 @@ class CRM_Contact_Form_Task_Result extends CRM_Contact_Form_Task {
       )
     );
   }
+
 }
index 290dd4eb7e35bb7f6eb4ae5ba380d0c983bfc0e8..84641c14f602f1a31bf355cacaf1612755e1dcbc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -94,4 +94,5 @@ class CRM_Contact_Form_Task_SMS extends CRM_Contact_Form_Task {
   public function postProcess() {
     CRM_Contact_Form_Task_SMSCommon::postProcess($this);
   }
+
 }
index 75d2c3484ec7e02887745f69a9a90e1905a254ac..526e8541a787b68f1f2893cb3706e4621da07dd8 100644 (file)
@@ -448,4 +448,5 @@ class CRM_Contact_Form_Task_SMSCommon {
       }
     }
   }
+
 }
index 44e435576819f800c6b06ced48dc34c531de7b82..efc3b3b193a1fd1dfcbad621db22a485e70ffa04 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -225,4 +225,5 @@ class CRM_Contact_Form_Task_SaveSearch extends CRM_Contact_Form_Task {
       CRM_Contact_BAO_GroupNestingCache::update();
     }
   }
+
 }
index b33539d1efd36d230897626d04f26f0f0bb2d34b..3b819a2e40233e5ec397a754a8499dad3a5884f9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -74,4 +74,5 @@ class CRM_Contact_Form_Task_SaveSearch_Update extends CRM_Contact_Form_Task_Save
 
     return $defaults;
   }
+
 }
index 70487f4136779360a086235165f1ee026420b655..f0b2b54fb32e996f0683333898784f11a705929d 100644 (file)
@@ -45,4 +45,5 @@ WHERE on_hold = 1 AND hold_date is not null AND contact_id in (" . implode(",",
       CRM_Core_Session::setStatus(ts('Please select one or more contact for this action'), ts('No Contacts Selected'), 'error');
     }
   }
+
 }
index b6a2262e136c0f0fabc4cbbbe78e102c4ca0c993..53ec0361e7c71d7a89066b0596de06865ad3d935 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class generates form components generic to useradd
@@ -144,4 +144,5 @@ class CRM_Contact_Form_Task_Useradd extends CRM_Core_Form {
 
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index b0d350b0fa128fe2f7692b14066bd4739c7bd407..afab3e087855a78a132251375eed03518ca621e6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -54,4 +54,5 @@ class CRM_Contact_Import_Controller extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions($config->uploadDir, array('uploadFile'));
   }
+
 }
index 535e179a4c496785e7c7efae24979fb88a5728ff..cf0050513bac39aeee6aab00363aa2591d036e8a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Contact_Import_Field
@@ -191,4 +191,5 @@ class CRM_Contact_Import_Field {
       return CRM_Utils_Rule::email($this->_value);
     }
   }
+
 }
index 88390f9c23883393ac7161d208dc55ccb3bdfd10..2d669f08b3c1ab07b98c744edb69e4192a4a7582 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -378,8 +378,8 @@ class CRM_Contact_Import_Form_DataSource extends CRM_Core_Form {
    */
   private function _prepareImportTable($db, $importTableName) {
     /* TODO: Add a check for an existing _status field;
-         *  if it exists, create __status instead and return that
-         */
+     *  if it exists, create __status instead and return that
+     */
 
     $statusFieldName = '_status';
     $primaryKeyName = '_id';
@@ -388,12 +388,12 @@ class CRM_Contact_Import_Form_DataSource extends CRM_Core_Form {
     $this->set('statusFieldName', $statusFieldName);
 
     /* Make sure the PK is always last! We rely on this later.
-         * Should probably stop doing that at some point, but it
-         * would require moving to associative arrays rather than
-         * relying on numerical order of the fields. This could in
-         * turn complicate matters for some DataSources, which
-         * would also not be good. Decisions, decisions...
-         */
+     * Should probably stop doing that at some point, but it
+     * would require moving to associative arrays rather than
+     * relying on numerical order of the fields. This could in
+     * turn complicate matters for some DataSources, which
+     * would also not be good. Decisions, decisions...
+     */
 
     $alterQuery = "ALTER TABLE $importTableName
                        ADD COLUMN $statusFieldName VARCHAR(32)
@@ -415,4 +415,5 @@ class CRM_Contact_Import_Form_DataSource extends CRM_Core_Form {
   public function getTitle() {
     return ts('Choose Data Source');
   }
+
 }
index 2f4491e642e3b0b5b216f2bfbfe3edd24956aa32..b5d3a7d8f63a5c009b6d77cea29bc8615bebd5e6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1013,4 +1013,5 @@ class CRM_Contact_Import_Form_MapField extends CRM_Import_Form_MapField {
 
     return $formattedFieldNames;
   }
+
 }
index 38b3f97b7c66439e58b8ea540cd1c1d42054d877..b3f3bf414253e215efa7a626a4de8346bfb4edfb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -603,4 +603,5 @@ class CRM_Contact_Import_Form_Preview extends CRM_Import_Form_Preview {
       $this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
     }
   }
+
 }
index d46087cc38c4d9fafb50c9a8bf7dfe61c96663e5..fd4241d2ec9807b441684266e6fd9c29f40b50c8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 6b3269d7f6505b306febc0abe6f6180d9b502e06..925297f62698e2fb40a7cf6638e17ed855d907be 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -471,4 +471,5 @@ class CRM_Contact_Import_ImportJob {
     }
     return $incompleteImportTables;
   }
+
 }
index f53b6ea6d6e64978ec735f6018a74d42bf5b2cb6..49f7c504281a3d65b5dacdd818d43a69bc9ce2c0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -59,4 +59,5 @@ class CRM_Contact_Import_Importer {
       }
     }
   }
+
 }
index e570934e454bd4da9dabec70427d6ce0abb3ef65..0461fa99c8a4ed8efa244e602bc0f0916f44a5ae 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -59,4 +59,5 @@ class CRM_Contact_Import_Page_AJAX {
     }
     CRM_Utils_System::civiExit();
   }
+
 }
index 81ac494bb58ddfd0fb836b5a8f4598ea3081783f..3d4a05303175f6b3d9c86c6dedfe7ff2322875b8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -298,7 +298,7 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser {
       if ($returnCode & self::DUPLICATE) {
         if ($returnCode & self::MULTIPLE_DUPE) {
           /* TODO: multi-dupes should be counted apart from singles
-                     * on non-skip action */
+           * on non-skip action */
         }
         $this->_duplicateCount++;
         array_unshift($values, $this->_rowCount);
@@ -329,8 +329,8 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser {
 
       // see if we've hit our timeout yet
       /* if ( $the_thing_with_the_stuff ) {
-                do_something( );
-            } */
+      do_something( );
+      } */
     }
 
     if ($mode == self::MODE_PREVIEW || $mode == self::MODE_IMPORT) {
index 72393cfb39f068c14514d232845d595e2ddce5c6..35981dd8e460ebf2a27941abf20a1609bc612c0c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -2123,4 +2123,5 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser {
 
     return $allowToCreate;
   }
+
 }
index 4cd911fb46111a9e17833b4811473234424c3f7c..61151f963f0b3f6a6e3e64857c6eb298c849912b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1131,4 +1131,5 @@ LIMIT {$offset}, {$rowCount}
     echo CRM_Utils_JSON::encodeDataTableSelector($relationships, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
     CRM_Utils_System::civiExit();
   }
+
 }
index ba71aa92059014013d075548b8a0542d23acb090..60a899b1e3f17fc9e5c5f7f5987d66b1dc4aa1a5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -101,4 +101,5 @@ ORDER By  v.weight
     $this->assign('action', $action);
     return $this->browse();
   }
+
 }
index 7c695f8652bb8b8d8decccd592d1b0f4e4b62884..d50fbc173fabb8c3506acd992a1645a8775d55c4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -125,4 +125,5 @@ class CRM_Contact_Page_DashBoard extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 50254938753a6a41024a59811c885d334bc4b5ae..b0f68fa369feb70bdf321a8c352a1dfc573b4802 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -81,4 +81,5 @@ class CRM_Contact_Page_Dashlet extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 649e0ff7a35b4ad476c3a206ebf9c1935c3477fa..b0adf90bc0db5519dc87b530e3547b430893cfbd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -87,4 +87,5 @@ class CRM_Contact_Page_DedupeException extends CRM_Core_Page {
     $this->preProcess();
     return parent::run();
   }
+
 }
index a1a965f6665dfe135df196d6c55ff8af83d20373..22e5100ce2f5c2629e6dcf9346e6aa2a64de015d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -361,4 +361,5 @@ class CRM_Contact_Page_DedupeFind extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/contact/dedupefind';
   }
+
 }
index 3bc58c7fb154abb8ed90198a6fd16ff1ffca81a5..862ba1bdbc67d7bfe6939ea3cebcb031d90493aa 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -155,9 +155,9 @@ class CRM_Contact_Page_DedupeRules extends CRM_Core_Page_Basic {
       $action = array_sum(array_keys($this->links()));
       $links = self::links();
       /* if ($dao->is_default) {
-        unset($links[CRM_Core_Action::MAP]);
-        unset($links[CRM_Core_Action::DELETE]);
-        }*/
+      unset($links[CRM_Core_Action::MAP]);
+      unset($links[CRM_Core_Action::DELETE]);
+      }*/
 
       if ($dao->is_reserved) {
         unset($links[CRM_Core_Action::DELETE]);
@@ -223,4 +223,5 @@ class CRM_Contact_Page_DedupeRules extends CRM_Core_Page_Basic {
     $rgDao->id = $id;
     $rgDao->delete();
   }
+
 }
index af768810da8185818cb51b462bf7f2ef6f1cab9e..9c82b100a46ff6643826c5fabe9d1e53ae34a372 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,4 +62,5 @@ class CRM_Contact_Page_ImageFile extends CRM_Core_Page {
       CRM_Core_Error::fatal('Photo does not exist');
     }
   }
+
 }
index 98d2f7c3ea4e50cd71573e57aa2d53fa4805bf27..a52379e4398567c4228abf24ec45c3c1d575a70a 100644 (file)
@@ -67,4 +67,5 @@ class CRM_Contact_Page_Inline_Actions extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index c31943c4f8beccae50ff9210508adf931db1b228..40bcb17f9b628cd0cefbed1d6677938d7d107a2c 100644 (file)
@@ -116,4 +116,5 @@ class CRM_Contact_Page_Inline_Address extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index 0087351e7cee14ae090295873fcec81894055586..f368dd0380ff2171030785bc9ff9b4ddff6b550f 100644 (file)
@@ -76,4 +76,5 @@ class CRM_Contact_Page_Inline_CommunicationPreferences extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index 767f406b7e23b7c08ad76b613c290f32315990e2..9e561a9d9c4fd8e3672cc33c402baa9ec5cbd64e 100644 (file)
@@ -72,4 +72,5 @@ class CRM_Contact_Page_Inline_ContactInfo extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index 94eaf489037ce3e1f84f565708ec87c55ac69603..e55816347266c63450d740eb97fb87eae0e13028 100644 (file)
@@ -66,4 +66,5 @@ class CRM_Contact_Page_Inline_ContactName extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index 820ccc92700a740b4d4bc5d6b5c90a48d48eae91..a386fb06ed6dd67e60f8b9b1f9ebb20efed85937 100644 (file)
@@ -79,4 +79,5 @@ class CRM_Contact_Page_Inline_CustomData extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index 49119c1f520ceb298a4828a20cc74b05b769384d..0d6d20154053c7dfe9b9b5bbe7783fbaf0867f47 100644 (file)
@@ -72,4 +72,5 @@ class CRM_Contact_Page_Inline_Demographics extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index 16231be561894f2f0b25aff41f28b05008967fdd..a6fc8fb47d41e41928199dd1a7e50687a0cdca83 100644 (file)
@@ -80,4 +80,5 @@ class CRM_Contact_Page_Inline_Email extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index 376e394a48685f4bc0306b0e396ba3c1bcd05a7c..c250ee4ac8535acc2582dbdd7930c14a444a69fb 100644 (file)
@@ -71,4 +71,5 @@ class CRM_Contact_Page_Inline_IM extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index 260d9421d24c9d494cec4ec5e21e1604e4ed69bd..32e771dd1c41660722b57c6727581cb9161e81d3 100644 (file)
@@ -69,4 +69,5 @@ class CRM_Contact_Page_Inline_OpenID extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index 3dd2ba576bd325572d0f714e4c939f013286c74a..57e5f8b51b040adac8716d7cfde053b8a612d6c4 100644 (file)
@@ -82,4 +82,5 @@ class CRM_Contact_Page_Inline_Phone extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index 301d3af81655604d861b2a5ca2f94077c41e20f0..c8aa66328230f13bf3623095adc4954facdb1121 100644 (file)
@@ -69,4 +69,5 @@ class CRM_Contact_Page_Inline_Website extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
+
 }
index b7a104280cedf1820048ea59a4d5609d11aa4e5c..c28de8986dd1f4554e758cb2d97aff83d469b274 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -172,4 +172,5 @@ class CRM_Contact_Page_SavedSearch extends CRM_Core_Page {
     }
     return self::$_links;
   }
+
 }
index 6aa5970c212eb2aae514a21c7e002c1e7139f2ef..70fb69237ad34a983d2f435e435253c719581be3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -51,4 +51,5 @@ class CRM_Contact_Page_Task extends CRM_Core_Page {
   public function getTitle() {
     return "Task Results";
   }
+
 }
index 7c90bf2987af0df20b5260fff89ebe76248245a1..fcd335de8763946b7c87cb02734fb71d70246be8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -180,9 +180,7 @@ class CRM_Contact_Page_View extends CRM_Core_Page {
     // check logged in user permission
     self::checkUserPermission($this);
 
-    list($displayName, $contactImage,
-      $contactType, $contactSubtype, $contactImageUrl
-      ) = self::getContactDetails($this->_contactId);
+    list($displayName, $contactImage, $contactType, $contactSubtype, $contactImageUrl) = self::getContactDetails($this->_contactId);
     $this->assign('displayName', $displayName);
 
     $this->set('contactType', $contactType);
@@ -268,7 +266,7 @@ class CRM_Contact_Page_View extends CRM_Core_Page {
       ) = CRM_Contact_BAO_Contact::getDisplayAndImage($contactId,
       TRUE,
       TRUE
-    );
+      );
   }
 
   /**
@@ -381,4 +379,5 @@ class CRM_Contact_Page_View extends CRM_Core_Page {
       $obj->assign('hookLinks', $hookLinks);
     }
   }
+
 }
index 5d88beabe14d633d02c1714293fcf53f7518c239..518c04cc0abc3f90fd8f9a892010fe8846a463d1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -106,4 +106,5 @@ class CRM_Contact_Page_View_ContactSmartGroup extends CRM_Core_Page {
     $this->browse();
     return parent::run();
   }
+
 }
index d85593a627b0dbd66705f7551103a65e7c5c3346..3e7d8b40fcd36c8ec9a7ab2bea94a0bbfb943355 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -174,4 +174,5 @@ class CRM_Contact_Page_View_CustomData extends CRM_Core_Page {
     }
     return parent::run();
   }
+
 }
index 7df74a3ba9ed8c13d9ca9e5e7038bf9d2a54f5a2..ab8a89ed45edb5bcbffe390b881876908c88861b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -197,4 +197,5 @@ class CRM_Contact_Page_View_GroupContact extends CRM_Core_Page {
 
     CRM_Contact_BAO_GroupContact::removeContactsFromGroup($ids, $groupId, $method, $groupStatus);
   }
+
 }
index 92740f10484f62ea9b8180115f4ed0069b7abec7..7403765adcf8a1d1b56c480d2ec7909700ba874b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -47,7 +47,7 @@ class CRM_Contact_Page_View_Log extends CRM_Core_Page {
       $this->assign('instanceUrl',
         CRM_Utils_System::url("civicrm/report/instance/{$loggingReport}",
           "reset=1&force=1&snippet=4&section=2&altered_contact_id_op=eq&altered_contact_id_value={$this->_contactId}&cid={$this->_contactId}", FALSE, NULL, FALSE));
-      return;
+      return NULL;
     }
 
     $log = new CRM_Core_DAO_Log();
@@ -98,4 +98,5 @@ class CRM_Contact_Page_View_Log extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 760a86a5b20774a54bc7816522d0dda21dcfa93c..5a5deeb94953e737a17c113256d253bdaaf838f3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -81,8 +81,6 @@ class CRM_Contact_Page_View_Note extends CRM_Core_Page {
 
   /**
    * called when action is browse
-   *
-   * @return null
    */
   public function browse() {
     $note = new CRM_Core_DAO_Note();
@@ -160,8 +158,6 @@ class CRM_Contact_Page_View_Note extends CRM_Core_Page {
 
   /**
    * called when action is update or new
-   *
-   * @return null
    */
   public function edit() {
     $controller = new CRM_Core_Controller_Simple('CRM_Note_Form_Note', ts('Contact Notes'), $this->_action);
@@ -315,4 +311,5 @@ class CRM_Contact_Page_View_Note extends CRM_Core_Page {
     }
     return self::$_commentLinks;
   }
+
 }
index eac69366ddae96af8f3ac6b59c2e04176d851824..667d6055e34b6775930076d8121ab590f38acacc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -72,4 +72,5 @@ class CRM_Contact_Page_View_Print extends CRM_Contact_Page_View_Summary {
 
     return parent::view();
   }
+
 }
index 97b8115490b0838969b93c1a190f27e8c84b565a..b5957c337da03cd93dec7679afd57fbd9fd742d9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -313,4 +313,5 @@ class CRM_Contact_Page_View_Relationship extends CRM_Core_Page {
     }
     return self::$_links;
   }
+
 }
index 03d2d270b254c9dedcf029449785d0bafb0b0fad..62f27a32c4455ae1220c275aac6e100c572c5334 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -432,4 +432,5 @@ class CRM_Contact_Page_View_Summary extends CRM_Contact_Page_View {
     }
     return parent::getTemplateFileName();
   }
+
 }
index 9bd21723e94d587e4f1bdfd0fc223ef30ec58d6f..ee7cf5b98ee0be5d2081b07c4e2c92118e4f9e0b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -65,4 +65,5 @@ class CRM_Contact_Page_View_Sunlight extends CRM_Contact_Page_View {
 
     return parent::run();
   }
+
 }
index 7e902626c5debd3701d27046310ed435b3c5b0bf..0fe007bfbde3ddc47433af4384c493e4d3ff859f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -77,4 +77,5 @@ class CRM_Contact_Page_View_Tag extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 71d6756c13aef707eb45ebd5a00eabda183b096f..66dac7302107c3f5a74f0a71f4a3f0e77a93a95f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -257,4 +257,5 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page {
     );
     return self::$_links;
   }
+
 }
index ecedf1601261008f22557c131b0d5147742d792d..ccfc9544bd86537f4b70ae520e1e1b8e3a2eb739 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -136,4 +136,5 @@ class CRM_Contact_Page_View_UserDashBoard_GroupContact extends CRM_Contact_Page_
     $this->edit();
     $this->browse();
   }
+
 }
index 637622500463dbdbe2cb6932992e563a5e3428bd..2909c459ccd66f4d92285b6a5b764f71f9be80f1 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -57,4 +57,5 @@ class CRM_Contact_Page_View_Useradd extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 88e2eaa3f703b797df83bc45e53d0c193fa2b970..e25699af4f5a9e4484b3e1678deaee2cc4ea9a63 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -168,4 +168,5 @@ class CRM_Contact_Page_View_Vcard extends CRM_Contact_Page_View {
     $vcard->send($filename . '.vcf', 'attachment', 'utf-8');
     CRM_Utils_System::civiExit();
   }
+
 }
index df3d489484e6b021e61311fe06a7dda0f4125c76..c67a421566d6b2a3d01ec3b048099b351194151b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1264,4 +1264,5 @@ SELECT DISTINCT 'civicrm_contact', contact_a.id, contact_a.id, '$cacheKey', cont
     }
     return $properties;
   }
+
 }
index 90620c1e3c1734b99f7811b425a35b980998fc90..f1b5d67947fd725154d7cc4f8b8e77f7ffc8967f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -46,4 +46,5 @@ class CRM_Contact_Selector_Controller extends CRM_Core_Selector_Controller {
   public function getQill() {
     return $this->_object->getQILL();
   }
+
 }
index 4a6c9c85a5c56ce42e84d8cd6baffd0411cfb168..10eb7093114a6d471a0248012881bcd7cafafc9c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -465,4 +465,5 @@ class CRM_Contact_Selector_Custom extends CRM_Contact_Selector {
       unset($rValue['action']);
     }
   }
+
 }
index 9dc31c61a8c5b722257df0c6316e2b417dc29ae3..606fd52c0f0c2c2efb10aaa1b987c7ed2a2f8f8d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -135,4 +135,5 @@ class CRM_Contact_StateMachine_Search extends CRM_Core_StateMachine {
   public function shouldReset() {
     return FALSE;
   }
+
 }
index 080daaf7c7ebf420b687e98d28ca55a033a2a95f..4caa253392ff2f58a4bd808218e54907e2deda21 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -383,4 +383,5 @@ class CRM_Contact_Task {
       CRM_Utils_Array::value('result', self::$_tasks[$value]),
     );
   }
+
 }
index 2ca7dae9409a68c2c194243c9089c19d8d0fd92d..2b041d4ce1c05f45358163f05455e4849ba4fa2a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -3630,4 +3630,5 @@ WHERE con.id = {$contributionId}
     }
     return $params;
   }
+
 }
index 75bd26eb26ff3c8dc0e39b9af7e24ca34bd5bcdf..1abae585be55f93073b7a1113baa498b6e5e9054 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -189,7 +189,7 @@ class CRM_Contribute_BAO_Contribution_Utils {
     elseif ($form->_contributeMode == 'express') {
       if ($form->_values['is_monetary'] && $form->_amount > 0.0) {
         // determine if express + recurring and direct accordingly
-        if ($paymentParams['is_recur'] == 1) {
+        if (isset($paymentParams['is_recur']) && $paymentParams['is_recur'] == 1) {
           if (is_object($payment)) {
             $result = $payment->createRecurringPayments($paymentParams);
           }
@@ -909,4 +909,5 @@ LIMIT 1
 
     return $taxAmount;
   }
+
 }
index a025413e528fdafaba8b0d9c6fd176b761260806..c95cb01373866ccfd549fee3ddfb4c716b67497c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -941,4 +941,5 @@ LEFT JOIN  civicrm_premiums            ON ( civicrm_premiums.entity_id = civicrm
     }
     return $membershipBlocks['values'][0]['is_separate_payment'];
   }
+
 }
index 7ee091ff6f8404dbe43808067558806fb2f38788..5f5ca6024c999611f099cc258973e12203c7bdf2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -456,4 +456,5 @@ INNER JOIN civicrm_contribution       con ON ( con.id = mp.contribution_id )
       }
     }
   }
+
 }
index 2e8d49da0ea26e230f7ada0eb91d73af615d265a..4e278040a62d6b1e2761513209c171c082f7ebe6 100644 (file)
@@ -113,7 +113,7 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio
 
     $params = array(
       1 => array($contact_id, 'Integer'),
-      2 => array($isTest, 'Integer')
+      2 => array($isTest, 'Integer'),
     );
 
     $cs = CRM_Core_DAO::executeQuery($query, $params);
@@ -237,8 +237,8 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio
    *
    * @param int $contact_id
    *   Contact id.
-   * @param int $isTest
    * @param string $filter
+   * @param int $isTest
    *   Additional filter criteria, later used in where clause.
    *
    * @return array
@@ -377,4 +377,5 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio
       $form->assign('honorName', $honorName);
     }
   }
+
 }
index a46c380ae8382abe2cb3d3e0a7d4bf297f807423..7a016f536063d6e0be07e42d50edcceb97d6083e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -149,4 +149,5 @@ class CRM_Contribute_BAO_ManagePremiums extends CRM_Contribute_DAO_Product {
     $premium->id = $productID;
     $premium->delete();
   }
+
 }
index e1b2e15976f0834167453ecf20de8ee7a38dc972..75ba837749807498839f155a790c275f117382fb 100644 (file)
@@ -267,4 +267,5 @@ class CRM_Contribute_BAO_Premium extends CRM_Contribute_DAO_Premium {
     }
     return self::$productInfo;
   }
+
 }
index c0d5791315b530c3a5c185846bf984fc7eba3e09..6b915f2453ed69a5670cbbf5bb5323dc16fad74e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1063,4 +1063,5 @@ class CRM_Contribute_BAO_Query {
       'contribution_recur_failure_retry_date' => ts('Failed Recurring Contribution Retry Date'),
     );
   }
+
 }
index b08ed9d2d83dcb822af2ceb4e51b751cd6117390..c5dc7a984ebae0330b0a5e410859d415a138d1f2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -201,4 +201,5 @@ class CRM_Contribute_BAO_Widget extends CRM_Contribute_DAO_Widget {
 
     return $data;
   }
+
 }
index b90b21013f9d568f73e094e68e01e8b884a0f12a..c124247680e1fb6495425f577dcf8b7925ab5dd5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 01c49788144417a22e7f80c1c72b4e2145bbf9c6..6d302d84133de4a49fc33391f10c908eb7af6c2d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index d93223655314a7ffca4d03f50a7c658f9b45f81a..77d267d0d333477615f1828b65b2937444159779 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -59,4 +59,5 @@ class CRM_Contribute_Controller_ContributionPage extends CRM_Core_Controller {
     $this->addPages($this->_stateMachine, $action);
     $this->addActions();
   }
+
 }
index c5db200cebe414c9c51386c58871efc8e0242dd9..9f8b11136ec2ef103fb87aa0d57b796be84bd15e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,4 +62,5 @@ class CRM_Contribute_Controller_Search extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions();
   }
+
 }
index 742d1b0b374a580e1fac7920fb84204313c08d0c..d8e67d621061704c4678fb052a43d5d4fbf305f3 100644 (file)
@@ -18,4 +18,5 @@ class CRM_Contribute_Exception_InactiveContributionPageException extends Excepti
   public function getID() {
     return $this->id;
   }
+
 }
index a3194669f1d2662376a7d952d830342294877ea1..ddc30aa4a99dd523cb83614dba675c072960d58c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 164b49adf2a268a93ab147d6f68e11a80098cac6..b21c6c0afc4575da9c7ecc3850ab39faef706e4a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -617,4 +617,5 @@ LEFT JOIN  civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
       CRM_Core_Error::fatal($e->getMessage());
     }
   }
+
 }
index 6de4ee2693007c8c4f991045d797d98390f7894b..e248660966dbd5aa244a5caeb139ff7e5766ece7 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 806e5062ebd1ed21fd30f2e656f55f9b40ebecb2..61101dac20734bb51bf7f14cd9bb74873285adcc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -182,11 +182,11 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract
     }
 
     if (empty($defaults['trxn_date']) && empty($defaults['trxn_date_time'])) {
-      list($defaults['trxn_date'],
-        $defaults['trxn_date_time']
-        ) = CRM_Utils_Date::setDateDefaults(
-        CRM_Utils_Array::value('register_date', $defaults), 'activityDateTime'
-      );
+      list($defaults['trxn_date'], $defaults['trxn_date_time'])
+        = CRM_Utils_Date::setDateDefaults(
+          CRM_Utils_Array::value('register_date', $defaults),
+          'activityDateTime'
+        );
     }
 
     if ($this->_refund) {
@@ -709,4 +709,5 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract
     list($mailSent, $subject, $message, $html) = CRM_Core_BAO_MessageTemplate::sendTemplate($sendTemplateParams);
     return $mailSent;
   }
+
 }
index 9f06661bd9d72487affb81def17f05dc0399d5c8..a74e6695949c80c93ff6d3825affef09dd0a3896 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -333,4 +333,5 @@ class CRM_Contribute_Form_CancelSubscription extends CRM_Core_Form {
       }
     }
   }
+
 }
index 446e2ad7cb0bad65b90cfc158c0763ead7f8c41f..67300ced8c4dffdcb7a5c1259fd6ade01eb50331 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -448,11 +448,8 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
     $dates = array('receive_date', 'receipt_date', 'cancel_date', 'thankyou_date');
     foreach ($dates as $key) {
       if (!empty($defaults[$key])) {
-        list($defaults[$key],
-          $defaults[$key . '_time']
-          ) = CRM_Utils_Date::setDateDefaults(CRM_Utils_Array::value($key, $defaults),
-          'activityDateTime'
-        );
+        list($defaults[$key], $defaults[$key . '_time'])
+          = CRM_Utils_Date::setDateDefaults(CRM_Utils_Array::value($key, $defaults), 'activityDateTime');
       }
     }
 
@@ -1830,4 +1827,5 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
       CRM_Contribute_BAO_ContributionRecur::deleteRecurContribution($paymentParams['contributionRecurID']);
     }
   }
+
 }
index ec4aa8b28d9e8fdf9aafdc5b4743642c3b7a00dc..de244c49ed70f5d4e9e6d5e10e6e4d8912cd6482 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -89,22 +89,13 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
       'amount_level' => CRM_Utils_Array::value('amount_level', $params),
       'invoice_id' => $params['invoiceID'],
       'currency' => $params['currencyID'],
-      'source' =>
-        (!$online || !empty($params['source'])) ?
-          CRM_Utils_Array::value('source', $params) :
-          CRM_Utils_Array::value('description', $params),
+      'source' => (!$online || !empty($params['source'])) ? CRM_Utils_Array::value('source', $params) : CRM_Utils_Array::value('description', $params),
       'is_pay_later' => CRM_Utils_Array::value('is_pay_later', $params, 0),
       //configure cancel reason, cancel date and thankyou date
       //from 'contribution' type profile if included
       'cancel_reason' => CRM_Utils_Array::value('cancel_reason', $params, 0),
-      'cancel_date' =>
-        isset($params['cancel_date']) ?
-          CRM_Utils_Date::format($params['cancel_date']) :
-          NULL,
-      'thankyou_date' =>
-        isset($params['thankyou_date']) ?
-          CRM_Utils_Date::format($params['thankyou_date']) :
-          NULL,
+      'cancel_date' => isset($params['cancel_date']) ? CRM_Utils_Date::format($params['cancel_date']) : NULL,
+      'thankyou_date' => isset($params['thankyou_date']) ? CRM_Utils_Date::format($params['thankyou_date']) : NULL,
       'campaign_id' => $campaignId,
       'is_test' => $isTest,
       'address_id' => $addressID,
@@ -1229,7 +1220,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
    * @throws Exception
    * @return CRM_Contribute_DAO_Contribution
    */
-  static function processContribution(
+  public static function processContribution(
     &$form,
     $params,
     $result,
@@ -1416,7 +1407,6 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
             'actual_amount' => $scheduledAmount,
           );
 
-
           CRM_Pledge_BAO_PledgePayment::add($pledgePaymentParams);
         }
 
@@ -1505,7 +1495,6 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
       CRM_Core_BAO_Note::add($noteParams, array());
     }
 
-
     if (isset($params['related_contact'])) {
       $contactID = $params['related_contact'];
     }
@@ -2001,4 +1990,5 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
     }
     return $params;
   }
+
 }
index 9741a5e8783dfb22b04b629cea014062aaae4202..243daceabab84b8ecbdd3a7acf558a3fb44f58b6 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1457,4 +1457,5 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
     }
     $form->assign('paymentProcessorID', $form->_paymentProcessorID);
   }
+
 }
index 18d2914fa2a73c60bf4da7ae030e77e1d9f931be..6a0240baa3c15a15a9f5128dda8043c14f6c2e99 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -178,4 +178,5 @@ class CRM_Contribute_Form_Contribution_OnBehalfOf {
     $form->assign('onBehalfOfFields', $profileFields);
     $form->addElement('hidden', 'hidden_onbehalf_profile', 1);
   }
+
 }
index b1dafd2d17e35dabbad2b5f7bd7601ed97d185de..c0a6f0177832161f49f13d1be522f054d4524566 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -156,7 +156,7 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont
                  'pcp_display_in_roll',
                  'pcp_is_anonymous',
                  'pcp_roll_nickname',
-                 'pcp_personal_note'
+                 'pcp_personal_note',
                ) as $val) {
         if (!empty($this->_params[$val])) {
           $this->assign($val, $this->_params[$val]);
@@ -242,7 +242,7 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont
         elseif (in_array($name, array(
               'addressee',
               'email_greeting',
-              'postal_greeting'
+              'postal_greeting',
             )) && !empty($contact[$name . '_custom'])
         ) {
           $defaults[$name . '_custom'] = $contact[$name . '_custom'];
@@ -292,4 +292,5 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont
     // CRM-9491
     $this->controller->reset();
   }
+
 }
index 152e371f6dee00572ea7dc2fcc2308e4cdab3bdb..ef5d36563689eca61e16a71a2ee54be6f5cf4c91 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -738,7 +738,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
               'last_name',
               'suffix_id',
               'organization_name',
-              'household_name'
+              'household_name',
             );
             if ($profileContactType == 'honor' && in_array($field['name'], $honoreeNamefields)) {
               unset($fields[$field['name']]);
@@ -887,7 +887,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
    * When we get the control back from payment gate way
    * lets delete the recurring and related contribution.
    *
-   **/
+   */
   public function cancelRecurring() {
     $isCancel = CRM_Utils_Request::retrieve('cancel', 'Boolean', CRM_Core_DAO::$_nullObject);
     if ($isCancel) {
@@ -903,4 +903,5 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
       }
     }
   }
+
 }
index 156a8b5fb43794a904f5287bdb9a64ba67e43530..7cbd7652769519bad9968a4432a1aa527e8aa587 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -242,4 +242,5 @@ class CRM_Contribute_Form_ContributionCharts extends CRM_Core_Form {
     $this->assign('hasOpenFlashChart', empty($chartData) ? FALSE : TRUE);
     $this->assign('openFlashChartData', json_encode($chartData));
   }
+
 }
index 0172e5c760bf15c167a450475cb29e049a67518d..c8740531342bc0d0166269ca3c87396bd585e29b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -449,4 +449,5 @@ class CRM_Contribute_Form_ContributionPage extends CRM_Core_Form {
       return 'CRM/Contribute/Form/ContributionPage/Tab.tpl';
     }
   }
+
 }
index e628ae7d86039b99a613f5f54a11473e05e83cad..c75b63632e7a4d35ccd84b56e5096820ac344e22 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -291,4 +291,5 @@ class CRM_Contribute_Form_ContributionPage_AddProduct extends CRM_Contribute_For
   public function getTitle() {
     return ts('Add Premium to Contribution Page');
   }
+
 }
index be4ce875002aac317e102ba7255f8bd9be72c080..420ba3f0327a4b00021685dccaa7dbde80bf7cf1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -772,4 +772,5 @@ SELECT id
   public function getTitle() {
     return ts('Amounts');
   }
+
 }
index c561cc308b0526b595167a268e5a6c4cbe961ace..6ea083c0cc93dc16e4e6ea796744a8d8465d447f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -59,7 +59,7 @@ class CRM_Contribute_Form_ContributionPage_Custom extends CRM_Contribute_Form_Co
     $entities[] = array(
       'entity_name' => 'contribution_1',
       'entity_type' => 'ContributionModel',
-      'entity_sub_type' => '*'
+      'entity_sub_type' => '*',
     );
 
     // If applicable, register 'membership_1'
@@ -69,7 +69,7 @@ class CRM_Contribute_Form_ContributionPage_Custom extends CRM_Contribute_Form_Co
       $entities[] = array(
         'entity_name' => 'membership_1',
         'entity_type' => 'MembershipModel',
-        'entity_sub_type' => '*'
+        'entity_sub_type' => '*',
       );
       $allowCoreTypes[] = 'Membership';
       $allowSubTypes['MembershipType'] = explode(',', $member['membership_types']);
@@ -224,4 +224,5 @@ class CRM_Contribute_Form_ContributionPage_Custom extends CRM_Contribute_Form_Co
     }
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index e620ce44d5a80d35ba832d56087ce8ac07048c7b..38fc3420622c41be0e30ac858db84338be011772 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -147,4 +147,5 @@ class CRM_Contribute_Form_ContributionPage_Delete extends CRM_Contribute_Form_Co
 
     CRM_Core_Session::setStatus(ts("The contribution page '%1' has been deleted.", array(1 => $this->_title)), ts('Deleted'), 'success');
   }
+
 }
index 6bd26565cb4e8912ab1ffa7bc3ece4f250c45602..490ecdf7f924caeb293ea530a5904329aab1bec8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -166,4 +166,5 @@ class CRM_Contribute_Form_ContributionPage_Premium extends CRM_Contribute_Form_C
   public function getTitle() {
     return ts('Premiums');
   }
+
 }
index d6c8cf23222b76ba5730070427784e8d8f983321..0cff4b85a008396383071a0d04bef7059ad3230a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -415,4 +415,5 @@ class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_
   public function getTitle() {
     return ts('Title and Settings');
   }
+
 }
index 5f73c80864b2439cdfb83ecf34e17efb14494370..2f4292989a729ab781ff38f94b9ce40fb21e9c1f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -54,7 +54,7 @@ class CRM_Contribute_Form_ContributionPage_TabHeader {
       ->addSetting(array(
         'tabSettings' => array(
           'active' => self::getCurrentTab($tabs),
-        )
+        ),
       ));
     return $tabs;
   }
@@ -171,8 +171,7 @@ class CRM_Contribute_Form_ContributionPage_TabHeader {
           $tabs[$key]['qfKey'] = NULL;
         }
 
-        $tabs[$key]['link'] =
-          CRM_Utils_System::url(
+        $tabs[$key]['link'] = CRM_Utils_System::url(
             "civicrm/admin/contribute/{$key}",
             "{$reset}action=update&id={$contribPageId}{$tabs[$key]['qfKey']}"
           );
@@ -222,4 +221,5 @@ class CRM_Contribute_Form_ContributionPage_TabHeader {
     $current = $current ? $current : 'settings';
     return $current;
   }
+
 }
index 7c85db2c8e8a8557c4905dc4db9a2e1b8f9b8b30..cd5aaec14f9aa6db02a9c2966c82df262c56b031 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -147,4 +147,5 @@ class CRM_Contribute_Form_ContributionPage_ThankYou extends CRM_Contribute_Form_
   public function getTitle() {
     return ts('Thanks and Receipt');
   }
+
 }
index 60410b3aa7889aed1d08afe8d75c5bf8117a4811..2a67a33519679484447a46af8299c1703985a0bd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -283,4 +283,5 @@ class CRM_Contribute_Form_ContributionPage_Widget extends CRM_Contribute_Form_Co
   public function getTitle() {
     return ts('Widget Settings');
   }
+
 }
index bbed6f48918539f7f69b982f5b5de8a6ecd21b53..f6cb0536611ce885333fc15f60d8539a9df3a93c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -215,4 +215,5 @@ class CRM_Contribute_Form_ContributionView extends CRM_Core_Form {
       )
     );
   }
+
 }
index 4b32e02743c20a4d2ad27bc1f2119697959aac50..e11c270868945605f0119cc5790d118ab0e20526 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 9f50f5cccf32693d1fc59545532ac15f607d73d2..70a43a3e5c3456ceb6a740e300928c4fab2859bc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -467,4 +467,5 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search {
   public function getTitle() {
     return ts('Find Contributions');
   }
+
 }
index 3ae25079db745b2744f1488835983988edcf527c..647bf28268a3ee6782dcaa2e90866586d2e513b9 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -80,4 +80,5 @@ class CRM_Contribute_Form_SearchContribution extends CRM_Core_Form {
       }
     }
   }
+
 }
index 31a54b9cdf90f46a769f6ffdffb42bce3128a0a9..dda0cf792f5515e9fb2b991bda4732ea741204c0 100644 (file)
@@ -242,4 +242,5 @@ class CRM_Contribute_Form_SoftCredit {
 
     return $errors;
   }
+
 }
index a46fb96ec69024027b5bd0dba7603126849cc994..d8cb4ccffd9522df816de2e00b90c34502c14d93 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -223,4 +223,5 @@ class CRM_Contribute_Form_Task extends CRM_Core_Form {
       )
     );
   }
+
 }
index a4193d0038652f7ae48f5d64c2678c06cac056c3..c543c03ac5cd3475672947a1296058ac1b3c12ca 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -261,4 +261,5 @@ class CRM_Contribute_Form_Task_Batch extends CRM_Contribute_Form_Task {
       CRM_Core_Session::setStatus(ts("No updates have been saved."), ts('Not Saved'), 'alert');
     }
   }
+
 }
index 0cf8ff2dcb7963111ef61522e9727177e766ac32..b567b6e1acd9718e47e0f88f474274a1391f31ea 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -53,7 +53,7 @@ class CRM_Contribute_Form_Task_Delete extends CRM_Contribute_Form_Task {
    *
    * @return void
    */
-  function preProcess() {
+  public function preProcess() {
     //check for delete
     if (!CRM_Core_Permission::checkActionPermission('CiviContribute', CRM_Core_Action::DELETE)) {
       CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
@@ -86,8 +86,9 @@ class CRM_Contribute_Form_Task_Delete extends CRM_Contribute_Form_Task {
     }
     $status = ts('Deleted Contribution(s): %1 (Total Selected: %2) ', array(
         1 => $deletedContributions,
-        2 => count($this->_contributionIds)
+        2 => count($this->_contributionIds),
       ));
     CRM_Core_Session::setStatus($status, '', 'info');
   }
+
 }
index 4b74ea47ff2485ae23dc9da4174cbf0b10505004..de5bb2846c4cef744a09385c49bb008dbe894026 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -93,4 +93,5 @@ class CRM_Contribute_Form_Task_Email extends CRM_Contribute_Form_Task {
   public function postProcess() {
     CRM_Contact_Form_Task_EmailCommon::postProcess($this);
   }
+
 }
index b95eb6f0312e7b8d4aa9812dce7524ee70f50ad6..86a36d3e0d88987eb5da370bab7e303d9278aa40 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -651,4 +651,5 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task {
     $params = array('output' => 'pdf_invoice');
     CRM_Contribute_Form_Task_Invoice::printPDF($contributionIDs, $params, $contactId, CRM_Core_DAO::$_nullObject);
   }
+
 }
index 75260e9e2ad6d326b3a934303edbf3ca4838636c..582db29cc36590e7767147591118c286eccbfb68 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -53,7 +53,7 @@ class CRM_Contribute_Form_Task_PDF extends CRM_Contribute_Form_Task {
    *
    * @return void
    */
-  function preProcess() {
+  public function preProcess() {
     $id = CRM_Utils_Request::retrieve('id', 'Positive',
       $this, FALSE
     );
@@ -94,7 +94,7 @@ AND    {$this->_componentClause}";
       array(
         'url' => $url,
         'title' => ts('Search Results'),
-      )
+      ),
     );
 
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
@@ -295,4 +295,5 @@ AND    {$this->_componentClause}";
 
     return $pdfElements;
   }
+
 }
index e64ef5ec535040b1a6443efa5e327b3e11b55f01..54187802a24b1bc0dc4f60d28e8570ec6b2b7265 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -169,4 +169,5 @@ class CRM_Contribute_Form_Task_PDFLetter extends CRM_Contribute_Form_Task {
   public function postProcess() {
     CRM_Contribute_Form_Task_PDFLetterCommon::postProcess($this);
   }
+
 }
index d4f6e98d46a2259e42fedbc8fc5624cee56d1e82..f081e32b5f1647f02d6b8544f7cd5b2abbe7df9f 100644 (file)
@@ -144,7 +144,6 @@ class CRM_Contribute_Form_Task_PDFLetterCommon extends CRM_Contact_Form_Task_PDF
       if (isset($tokens[$entity]) && is_array($tokens[$entity])) {
         foreach ($tokens[$entity] as $token) {
           if (!self::isHtmlTokenInTableCell($token, $entity, $html)) {
-            ;
             return FALSE;
           }
         }
@@ -358,4 +357,5 @@ class CRM_Contribute_Form_Task_PDFLetterCommon extends CRM_Contact_Form_Task_PDF
       return FALSE;
     }
   }
+
 }
index 5e263e65d672ccb58eb4c3a4c4878b90976f7cff..e5e320df9773fc3e46641e771c6e524f6c468b78 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -73,7 +73,7 @@ class CRM_Contribute_Form_Task_PickProfile extends CRM_Contribute_Form_Task {
     if (count($this->_contributionIds) > $this->_maxContributions) {
       CRM_Core_Session::setStatus(ts("The maximum number of contributions you can select for Batch Update is %1. You have selected %2. Please select fewer contributions from your search results and try again.", array(
             1 => $this->_maxContributions,
-            2 => count($this->_contributionIds)
+            2 => count($this->_contributionIds),
           )), ts('Batch Update Error'), 'error');
       $validate = TRUE;
     }
@@ -102,7 +102,7 @@ class CRM_Contribute_Form_Task_PickProfile extends CRM_Contribute_Form_Task {
 
     $ufGroupElement = $this->add('select', 'uf_group_id', ts('Select Profile'),
       array(
-        '' => ts('- select profile -')
+        '' => ts('- select profile -'),
       ) + $profiles, TRUE
     );
     $this->addDefaultButtons(ts('Continue'));
@@ -145,4 +145,5 @@ class CRM_Contribute_Form_Task_PickProfile extends CRM_Contribute_Form_Task {
     // also reset the batch page so it gets new values from the db
     $this->controller->resetPage('Batch');
   }
+
 }
index c1f2e1b3a5675e4a165091d1258baa73d5dced7d..df88bddcb7274ddbb55286b8a194c6b84f5c8a37 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -101,4 +101,5 @@ class CRM_Contribute_Form_Task_Print extends CRM_Contribute_Form_Task {
   public function postProcess() {
     // redirect to the main search page after printing is over
   }
+
 }
index 13d8df14cc0976d1f7eb4d27bd01df4819e5d4d7..df2ccd55ed24937c268503f303d41884cfca9150 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -63,4 +63,5 @@ class CRM_Contribute_Form_Task_Result extends CRM_Contribute_Form_Task {
       )
     );
   }
+
 }
index 7d8cc1cbe8dd6caee01f1409397bcb3dc5346e1b..1468fd70bbfd97492991035119eac253af08fe4e 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -88,4 +88,5 @@ INNER JOIN civicrm_contact ct ON ( co.contact_id = ct.id )
       )
     );
   }
+
 }
index 8c2ea27f39d6998917b91613f287b52eff0d5350..b05b4e46a40df3bd5ab483cd9fe04fe9d26def8c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -340,4 +340,5 @@ WHERE     c.id IN ( $contributionIDs )";
     }
     return $rows;
   }
+
 }
index 10a8b7c4d6014f6e00687a99af164861a3526739..aa7070cb086beb7373119a183e8e37a82576a862 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -430,13 +430,16 @@ class CRM_Contribute_Form_UpdateBilling extends CRM_Core_Form {
       $session->setStatus($status, $msgTitle, $msgType);
     }
     elseif (!$userID) {
-      if ($status)
+      if ($status) {
         CRM_Utils_System::setUFMessage($status);
+      }
       $result = (int) ($updateSubscription && isset($ctype));
-      if (isset($tplParams))
+      if (isset($tplParams)) {
         $session->set('resultParams', $tplParams);
+      }
       return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/contribute/subscriptionstatus',
         "reset=1&task=billing&result={$result}"));
     }
   }
+
 }
index 8ba973c2eb0c13234127e648122d22ffd8c07a70..221eae56c8df6b31e1670d2f5c01edd4d05f1fc5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -323,4 +323,5 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
         "reset=1&task=update&result=1"));
     }
   }
+
 }
index cf9164687f73e15e41631d61e9652e8682c6a677..6c33167523f1fa26ac2babe3608b4e75a25b89b4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -54,4 +54,5 @@ class CRM_Contribute_Import_Controller extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions($config->uploadDir, array('uploadFile'));
   }
+
 }
index c55d4e7371ec8816a3b58591910c31904a7903e6..19df9e74aac1313603c07283725bc28f75fc95ac 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -210,4 +210,5 @@ class CRM_Contribute_Import_Field {
 
     return TRUE;
   }
+
 }
index 714ef886ac999141b759ede0ee034212e9724d32..90c5d2009a31be3a465e2d6bdec1695b286646ee 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -198,4 +198,5 @@ class CRM_Contribute_Import_Form_DataSource extends CRM_Core_Form {
   public function getTitle() {
     return ts('Upload Data');
   }
+
 }
index 3ee66a3ae9c0b7097923125866567feef4313096..2f8de8e58c57f4154d95e0cf859526ae984fda1e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -79,7 +79,7 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField {
       foreach (array(
                  'contribution_id',
                  'invoice_id',
-                 'trxn_id'
+                 'trxn_id',
                ) as $key) {
         $this->_mapperFields[$key] .= ' (match to contribution record)';
         $highlightedFields[] = $key;
@@ -92,7 +92,7 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField {
         'email',
         'first_name',
         'last_name',
-        'external_identifier'
+        'external_identifier',
       );
       foreach ($highlightedFieldsArray as $name) {
         $highlightedFields[] = $name;
@@ -590,4 +590,5 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField {
     // add all the necessary variables to the form
     $parser->set($this);
   }
+
 }
index 9276f7fb77c490d4d5beff069740dd2de09b0f5a..3f5ba0b7a4bda1dbb24591d4231c783eb10a372c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -191,4 +191,5 @@ class CRM_Contribute_Import_Form_Preview extends CRM_Import_Form_Preview {
       $this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
     }
   }
+
 }
index 3377c217d6fb847557eb43e4b29c03475b86b036..5640fdc37ef8e2c0663223958df5b2a3abebf2ff 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 13c912e28c8f06a5a77fc500f96cceba62fef6e7..097cc8c3f901195dabf8fab9213da8ef5433e1c7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -305,7 +305,7 @@ abstract class CRM_Contribute_Import_Parser extends CRM_Import_Parser {
       if ($returnCode == self::DUPLICATE) {
         if ($returnCode == self::MULTIPLE_DUPE) {
           /* TODO: multi-dupes should be counted apart from singles
-                     * on non-skip action */
+           * on non-skip action */
         }
         $this->_duplicateCount++;
         $recordNumber = $this->_lineCount;
@@ -666,4 +666,5 @@ abstract class CRM_Contribute_Import_Parser extends CRM_Import_Parser {
 
     return $fileName;
   }
+
 }
index 40ed6325ebc189ea814b2fa0efc2024e98785867..09ab819cdfab4c0f197ac5e29d16bf5547b132b8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -609,4 +609,5 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa
    */
   public function fini() {
   }
+
 }
index 93bf33061250112acb7282caa40184f750151eff..0605f8f1efbb33fc5eb0d1cf0b599d9123e3a1f5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class introduces component to the system and provides all the
@@ -213,4 +213,5 @@ class CRM_Contribute_Info extends CRM_Core_Component_Info {
       $shortCuts = array_merge($shortCuts, $shortCut);
     }
   }
+
 }
index 6ccdf2d34e7b3e6eba320b6ba37cfb301709b1fe..d432da34a8be4d31605f90648904cd78e2560a77 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -705,4 +705,5 @@ ORDER BY LEFT(title, 1)
 
     return $formattedConfLinks;
   }
+
 }
index 2056235b6d5b1ddfa3766bc216abfcc1499a2e3d..322825be0d8d3d3903df568d081c701c5a15c4fa 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -105,4 +105,5 @@ class CRM_Contribute_Page_ContributionRecur extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 559e5275e71839b37c99d2a3908ff549120990c7..73905f4ee1f74864db80d24315f0f32e605e6284 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -132,4 +132,5 @@ class CRM_Contribute_Page_DashBoard extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 17cf09472d67ec7cd1b7e6f4783717ce981bb698..801c634f3b93b420f0338a2bc5b9088cd0e85b3c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -208,4 +208,5 @@ class CRM_Contribute_Page_ManagePremiums extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/contribute/managePremiums';
   }
+
 }
index 288284ac2706fdfd4f332c9068d088649568fc24..15929dd1704420a7df25784bf37dbe1af33a1b88 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -73,4 +73,5 @@ class CRM_Contribute_Page_PaymentInfo extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index abc2c0f87a504d67b39a35dcc5827dc4e473134d..0bf9e5d00aadcbfad7805a579dae883ab7627b2e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -224,4 +224,5 @@ class CRM_Contribute_Page_Premium extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return CRM_Utils_System::currentPath();
   }
+
 }
index 662b3cdce8e9ee04ef77d89b3e159bfdbce5193a..ce232931c6a743c753cb4b3e1dfcde770abfd4b1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -57,4 +57,5 @@ class CRM_Contribute_Page_SubscriptionStatus extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 12a8f68c06d6c65d6116c8a2734b15d996aa5ded..0f899c49bfe8852f18d1a5dc9f020119cd582c13 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -464,4 +464,5 @@ class CRM_Contribute_Page_Tab extends CRM_Core_Page {
     $session = CRM_Core_Session::singleton();
     $session->pushUserContext($url);
   }
+
 }
index 608f2cbff13fd8c1702bd3a11d903ebce1fc9eb0..ece6ccbe977f9471bf70161924b26313297e1966 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -151,4 +151,5 @@ class CRM_Contribute_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBo
     parent::preProcess();
     $this->listContribution();
   }
+
 }
index 8019c3384947b5eab7a90251b64fd0511e07a09a..38d41c0f9571dfc42f312441ad07161eed16a9a0 100644 (file)
@@ -22,8 +22,8 @@
  | at info[AT]civicrm[DOT]org. If you have questions about the        |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
- +------- -------------------------------------------------------------+
-*/
+ +--------------------------------------------------------------------+
+ */
 
 /**
  *
@@ -440,4 +440,5 @@ class CRM_Contribute_PseudoConstant extends CRM_Core_PseudoConstant {
     }
     return self::$batch;
   }
+
 }
index 3da2901603211207ed213d27157726de87725cc0..1bd7aa97cc1da8730b1b7bec6de9e61eb8f197a2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -163,7 +163,7 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C
    *
    * @return \CRM_Contribute_Selector_Search
    */
-  function __construct(
+  public function __construct(
     &$queryParams,
     $action = CRM_Core_Action::NONE,
     $contributionClause = NULL,
@@ -451,8 +451,8 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C
       ),
     );
     if ($this->_includeSoftCredits) {
-      self::$_columnHeaders =
-        array_merge(
+      self::$_columnHeaders
+        array_merge(
           self::$_columnHeaders,
           array(
             array(
@@ -463,8 +463,8 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C
           )
         );
     }
-    self::$_columnHeaders =
-      array_merge(
+    self::$_columnHeaders
+      array_merge(
         self::$_columnHeaders,
         array(
           array(
@@ -511,25 +511,24 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C
       self::$_columnHeaders = array_merge($pre, self::$_columnHeaders);
     }
     if ($this->_includeSoftCredits) {
-      self::$_columnHeaders =
-        array_merge(
-          self::$_columnHeaders,
+      self::$_columnHeaders = array_merge(
+        self::$_columnHeaders,
+        array(
           array(
-            array(
-              'name' => ts('Soft Credit For'),
-              'sort' => 'contribution_soft_credit_name',
-              'direction' => CRM_Utils_Sort::DONTCARE,
-            ),
-            array(
-              'name' => ts('Soft Credit Type'),
-              'sort' => 'contribution_soft_credit_type',
-              'direction' => CRM_Utils_Sort::ASCENDING,
-            ),
-          )
-        );
+            'name' => ts('Soft Credit For'),
+            'sort' => 'contribution_soft_credit_name',
+            'direction' => CRM_Utils_Sort::DONTCARE,
+          ),
+          array(
+            'name' => ts('Soft Credit Type'),
+            'sort' => 'contribution_soft_credit_type',
+            'direction' => CRM_Utils_Sort::ASCENDING,
+          ),
+        )
+      );
     }
-    self::$_columnHeaders =
-      array_merge(
+    self::$_columnHeaders
+      array_merge(
         self::$_columnHeaders, array(
           array('desc' => ts('Actions')),
         )
@@ -570,5 +569,5 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C
   public function getSummary() {
     return $this->_query->summaryContribution($this->_context);
   }
-}
 
+}
index 3572a2d4c2144d79f05efd88ea6c14d7671049cf..44b13c6eca3d417ae569025e6d5e40275a0ad3a9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -58,4 +58,5 @@ class CRM_Contribute_StateMachine_Contribution extends CRM_Core_StateMachine {
 
     $this->addSequentialPages($this->_pages, $action);
   }
+
 }
index 378c2085fbbd657474aeeab3bb8c0a9c6ce64ed7..efff7a0d28cb5eb9ac8d26a2edcc4fe96bd67bc8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -73,4 +73,5 @@ class CRM_Contribute_StateMachine_ContributionPage extends CRM_Core_StateMachine
 
     $this->addSequentialPages($this->_pages, $action);
   }
+
 }
index 84c75a82fdc944f0341bd7092da15180ac4213af..da6a677ec9cbf6be0cbf7632d41d7844b9585554 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -106,4 +106,5 @@ class CRM_Contribute_StateMachine_Search extends CRM_Core_StateMachine {
   public function shouldReset() {
     return FALSE;
   }
+
 }
index 354589fbaff22b362561343032721deae3a8dfde..1826388a93d8a9601e9641624f57795b288185cf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -217,4 +217,5 @@ class CRM_Contribute_Task {
       self::$_tasks[$value]['result'],
     );
   }
+
 }
index e8071a7d73504e142b81d248c799f7f7fd7be8b1..33adb76789779ca5c5b574e110d55dfb7dc8ace6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * The core concept of the system is an action performed on an object. Typically this will be a "data model" object
@@ -344,4 +344,5 @@ class CRM_Core_Action {
 
     return $mask;
   }
+
 }
index a3740e591cdf5188fa8cf27ad2487135fc768f60..ab9888f89d04b3f351a7d9306b5b4227a00749ab 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -72,4 +72,5 @@ class CRM_Core_BAO_ActionLog extends CRM_Core_DAO_ActionLog {
 
     return $actionLog;
   }
+
 }
index d964724840f8760c902df2280255318e435937a6..48096aac1501149377653f98e82b7d2600ff1e8d 100644 (file)
@@ -24,7 +24,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1487,4 +1487,5 @@ WHERE     m.owner_membership_id IS NOT NULL AND
 
     return $options;
   }
+
 }
index 7a0d028221cd993626690bc1a3a3b84e848eda14..342486dc628a250fd771aca215fa772050b01b3e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -49,12 +49,12 @@ class CRM_Core_BAO_Address extends CRM_Core_DAO_Address {
    *
    * @param null $entity
    *
-   * @return array
+   * @return array|NULL
    *   array of created address
    */
   public static function create(&$params, $fixAddress = TRUE, $entity = NULL) {
     if (!isset($params['address']) || !is_array($params['address'])) {
-      return;
+      return NULL;
     }
     CRM_Core_BAO_Block::sortPrimaryFirst($params['address']);
     $addresses = array();
@@ -364,22 +364,21 @@ class CRM_Core_BAO_Address extends CRM_Core_DAO_Address {
       CRM_Utils_Address_USPS::checkAddress($params);
 
       // do street parsing again if enabled, since street address might have changed
-      $parseStreetAddress =
-        CRM_Utils_Array::value(
-          'street_address_parsing',
-          CRM_Core_BAO_Setting::valueOptions(
-            CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
-            'address_options'
-          ),
-          FALSE
-        );
+      $parseStreetAddress = CRM_Utils_Array::value(
+        'street_address_parsing',
+        CRM_Core_BAO_Setting::valueOptions(
+          CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
+          'address_options'
+        ),
+        FALSE
+      );
 
       if ($parseStreetAddress && !empty($params['street_address'])) {
         foreach (array(
                    'street_number',
                    'street_name',
                    'street_unit',
-                   'street_number_suffix'
+                   'street_number_suffix',
                  ) as $fld) {
           unset($params[$fld]);
         }
@@ -405,8 +404,7 @@ class CRM_Core_BAO_Address extends CRM_Core_DAO_Address {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return boolean
-   *
+   * @return bool
    */
   public static function dataExists(&$params) {
     //check if location type is set if not return false
@@ -423,7 +421,7 @@ class CRM_Core_BAO_Address extends CRM_Core_DAO_Address {
         'contact_id',
         'is_billing',
         'display',
-        'master_id'
+        'master_id',
       ))) {
         continue;
       }
@@ -508,7 +506,7 @@ class CRM_Core_BAO_Address extends CRM_Core_DAO_Address {
                    'state',
                    'state_name',
                    'country',
-                   'world_region'
+                   'world_region',
                  ) as $fld) {
           if (isset($address->$fld)) {
             unset($address->$fld);
@@ -712,8 +710,10 @@ ORDER BY civicrm_address.is_primary DESC, civicrm_address.location_type_id DESC,
    * NB: civic street formats for en_CA and fr_CA used by default if those locales are active
    *     otherwise en_US format is default action
    *
-   * @param string Street address including number and apt
-   * @param string Locale - to set locale used to parse address
+   * @param string $streetAddress
+   *   Street address including number and apt.
+   * @param string $locale
+   *   Locale used to parse address.
    *
    * @return array
    *   parsed fields values.
@@ -754,7 +754,7 @@ ORDER BY civicrm_address.is_primary DESC, civicrm_address.location_type_id DESC,
     $matches = array();
     if (in_array($locale, array(
         'en_CA',
-        'fr_CA'
+        'fr_CA',
       )) && preg_match('/^([A-Za-z0-9]+)[ ]*\-[ ]*/', $streetAddress, $matches)
     ) {
       $parseFields['street_unit'] = $matches[1];
@@ -848,7 +848,7 @@ ORDER BY civicrm_address.is_primary DESC, civicrm_address.location_type_id DESC,
     // overwriting $streetUnitFormats for 'en_CA' and 'fr_CA' locale
     if (in_array($locale, array(
       'en_CA',
-      'fr_CA'
+      'fr_CA',
     ))) {
       $streetUnitFormats = array('APT', 'APP', 'SUITE', 'BUREAU', 'UNIT');
     }
@@ -894,11 +894,10 @@ ORDER BY civicrm_address.is_primary DESC, civicrm_address.location_type_id DESC,
   public static function validateAddressOptions($fields) {
     static $addressOptions = NULL;
     if (!$addressOptions) {
-      $addressOptions =
-        CRM_Core_BAO_Setting::valueOptions(
-          CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
-          'address_options'
-        );
+      $addressOptions = CRM_Core_BAO_Setting::valueOptions(
+        CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
+        'address_options'
+      );
     }
 
     if (is_array($fields) && !empty($fields)) {
@@ -1034,8 +1033,11 @@ SELECT is_primary,
     $uniqueAddress = array();
     foreach (array_keys($rows) as $rowID) {
       // load complete address as array key
-      $address =
-        trim($rows[$rowID]['street_address']) . trim($rows[$rowID]['city']) . trim($rows[$rowID]['state_province']) . trim($rows[$rowID]['postal_code']) . trim($rows[$rowID]['country']);
+      $address = trim($rows[$rowID]['street_address'])
+        . trim($rows[$rowID]['city'])
+        . trim($rows[$rowID]['state_province'])
+        . trim($rows[$rowID]['postal_code'])
+        . trim($rows[$rowID]['country']);
       if (isset($rows[$rowID]['last_name'])) {
         $name = $rows[$rowID]['last_name'];
       }
@@ -1247,11 +1249,11 @@ SELECT is_primary,
    *
    * @param string $fieldName
    * @param string $context
-   *   @see CRM_Core_DAO::buildOptionsContext.
+   * @see CRM_Core_DAO::buildOptionsContext
    * @param array $props
    *   whatever is known about this dao object.
    *
-   * @return Array|bool
+   * @return array|bool
    */
   public static function buildOptions($fieldName, $context = NULL, $props = array()) {
     $params = array();
@@ -1293,9 +1295,8 @@ SELECT is_primary,
       // Not a real field in this entity
       case 'world_region':
         return CRM_Core_PseudoConstant::worldRegion();
-
-        break;
     }
     return CRM_Core_PseudoConstant::get(__CLASS__, $fieldName, $params, $context);
   }
+
 }
index dc985d5049c1fb05134cf355dd9b14e39445778a..716394ec4ba293e333a0ef915aab0f31b92fbd33 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -528,4 +528,5 @@ class CRM_Core_BAO_Block {
     }
     return ($l1 < $l2) ? -1 : 1;
   }
+
 }
index 16499f11238f7fc5733c4d4ae962d0778bcdcc59..9e3c124909101f8a62a65d1b6bb0296a25b765e9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -507,4 +507,5 @@ class CRM_Core_BAO_CMSUser {
     $db_uf->query('/*!40101 SET NAMES utf8 */');
     return $db_uf;
   }
+
 }
index 8755afd8b2680938838adfe159dda24622267c75..1d4c293daece406562db7eafe506280a9aa5bdc4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -272,14 +272,14 @@ class CRM_Core_BAO_Cache extends CRM_Core_DAO_Cache {
   }
 
   /* Retrieve the session values from the cache and populate the $_SESSION array
-     *
-     * @param array $names
-     *   Array of session values that should be persisted.
-     *                     This is either a form name + qfKey or just a form name
-     *                     (in the case of profile)
-     *
-     * @return void
-     */
+   *
+   * @param array $names
+   *   Array of session values that should be persisted.
+   *                     This is either a form name + qfKey or just a form name
+   *                     (in the case of profile)
+   *
+   * @return void
+   */
 
   /**
    * @param string $names
@@ -394,4 +394,5 @@ AND         created_date < date_sub( NOW( ), INTERVAL $timeIntervalDays DAY )
       CRM_Core_DAO::executeQuery($sql);
     }
   }
+
 }
index 4b2a5f2709ce03b59434b6e0923deeaabf8c5fd0..30906a7281d9fa4c48d9e383afaecf1a7aa981d7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -749,4 +749,5 @@ WHERE  option_group_id = (
       'checksumTimeout',
     );
   }
+
 }
index 51a86aa7fd22bdb4d772046507c8f963cf7ec6ba..c923c542ac2e567ba1d85f50af457f11af4810d6 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -63,8 +63,6 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
   /**
    * Build and retrieve the list of data types and descriptions
    *
-   * @param NULL
-   *
    * @return array
    *   Data type => Description
    */
@@ -700,8 +698,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
    *   The custom field ID.
    *
    * @return CRM_Core_DAO_CustomField
-   *   $field  the field object
-   * public
+   *   The field object.
    */
   public static function getFieldObject($fieldID) {
     $field = new CRM_Core_DAO_CustomField();
@@ -1083,9 +1080,6 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
    *
    * @param object $field
    *   The field object.
-   *
-   * @return boolean
-   *
    */
   public static function deleteField($field) {
     CRM_Utils_System::flushCache();
@@ -1103,8 +1097,6 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
     $field->delete();
     CRM_Core_BAO_UFField::delUFField($field->id);
     CRM_Utils_Weight::correctDuplicateWeights('CRM_Core_DAO_CustomField');
-
-    return;
   }
 
   /**
@@ -1153,7 +1145,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
    *
    * @return array|mixed|null|string
    */
-  static function getDisplayValueCommon(
+  public static function getDisplayValueCommon(
     $value,
     &$option,
     $html_type,
@@ -1366,7 +1358,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
    *                               just format the given value
    *
    */
-  static function setProfileDefaults(
+  public static function setProfileDefaults(
     $customFieldId,
     $elementName,
     &$defaults,
@@ -1577,10 +1569,10 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
    * @param bool $includeViewOnly
    *   If true, fields marked 'View Only' are included. Required for APIv3.
    *
-   * @return array
+   * @return array|NULL
    *   formatted custom field array
    */
-  static function formatCustomField(
+  public static function formatCustomField(
     $customFieldId, &$customFormatted, $value,
     $customFieldExtend, $customValueId = NULL,
     $entityId = NULL,
@@ -1615,12 +1607,12 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
     );
 
     if (!array_key_exists($customFieldId, $customFields)) {
-      return;
+      return NULL;
     }
 
     // return if field is a 'code' field
     if (!$includeViewOnly && !empty($customFields[$customFieldId]['is_view'])) {
-      return;
+      return NULL;
     }
 
     list($tableName, $columnName, $groupID) = self::getTableColumnGroup($customFieldId);
@@ -1925,8 +1917,8 @@ SELECT $columnName
    * @param int $newGroupID
    *   FK to civicrm_custom_group.
    *
-   * @return array(
-   * string) or TRUE
+   * @return array
+   *   array(string) or TRUE
    */
   public static function _moveFieldValidate($fieldID, $newGroupID) {
     $errors = array();
@@ -2238,7 +2230,7 @@ ORDER BY html_type";
    *
    * @return array
    */
-  static function postProcess(
+  public static function postProcess(
     &$params,
     &$customFields,
     $entityID,
@@ -2536,4 +2528,5 @@ WHERE cf.id = %1 AND cg.is_multiple = 1";
     // FIXME: Currently the only way to know if data is serialized is by looking at the html_type. It would be cleaner to decouple this.
     return ($field['html_type'] == 'CheckBox' || strpos($field['html_type'], 'Multi') !== FALSE);
   }
+
 }
index f6114148e196e3bb78e7ceb943f8fca88e11ebb1..98aa0b6321bea67b3182cf983d2d8fa45338f679 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -80,8 +80,7 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
       $params['extends'][0] == 'ParticipantEventName' ||
       $params['extends'][0] == 'ParticipantEventType'
     ) {
-      $group->extends_entity_column_id =
-        CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $params['extends'][0], 'value', 'name');
+      $group->extends_entity_column_id = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $params['extends'][0], 'value', 'name');
     }
 
     //this is format when form get submit.
@@ -241,7 +240,7 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
    *
    * @param int $id
    *   Id of the database record.
-   * @param bool $is_activeValue we want to set the is_active field.
+   * @param bool $is_active
    *   Value we want to set the is_active field.
    *
    * @return Object
@@ -274,9 +273,7 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
     $dao = new CRM_Core_DAO_CustomGroup();
     $dao->extends = $extends;
     $dao->extends_entity_column_id = $columnId;
-    $escapedValue =
-      CRM_Core_DAO::VALUE_SEPARATOR . CRM_Core_DAO::escapeString($columnValue) .
-      CRM_Core_DAO::VALUE_SEPARATOR;
+    $escapedValue = CRM_Core_DAO::VALUE_SEPARATOR . CRM_Core_DAO::escapeString($columnValue) . CRM_Core_DAO::VALUE_SEPARATOR;
     $dao->whereAdd("extends_entity_column_value LIKE \"%$escapedValue%\"");
     //$dao->extends_entity_column_value = $columnValue;
     return $dao->find() ? TRUE : FALSE;
@@ -517,8 +514,7 @@ ORDER BY civicrm_custom_group.weight,
     }
 
     $cacheKey = "CRM_Core_DAO_CustomGroup_Query " . md5($cacheString);
-    $multipleFieldGroupCacheKey =
-      "CRM_Core_DAO_CustomGroup_QueryMultipleFields " . md5($cacheString);
+    $multipleFieldGroupCacheKey = "CRM_Core_DAO_CustomGroup_QueryMultipleFields " . md5($cacheString);
     $cache = CRM_Utils_Cache::singleton();
     $tablesWithEntityData = array();
     if ($fromCache) {
@@ -651,7 +647,7 @@ ORDER BY civicrm_custom_group.weight,
    *
    * @param bool $getCount
    *
-   * @return boolean
+   * @return bool
    *   does this entity have data in this custom table
    */
   static public function customGroupDataExistsForEntity($entityID, $table, $getCount = FALSE) {
@@ -796,8 +792,8 @@ ORDER BY civicrm_custom_group.weight,
               'name' => ts('Delete Attached File'),
               'url' => 'civicrm/file',
               'qs' => 'reset=1&id=%%id%%&eid=%%eid%%&fid=%%fid%%&action=delete',
-              'extra' => 'onclick = "if (confirm( \'' . $deleteExtra .
-                '\' ) ) this.href+=\'&amp;confirmed=1\'; else return false;"',
+              'extra' => 'onclick = "if (confirm( \'' . $deleteExtra
+              . '\' ) ) this.href+=\'&amp;confirmed=1\'; else return false;"',
             ),
           );
           $customValue['deleteURL'] = CRM_Core_Action::formLink($deleteURL,
@@ -827,12 +823,9 @@ ORDER BY civicrm_custom_group.weight,
               'entity_id',
               'file_id'
             );
-            $customValue['imageURL'] =
-              str_replace('persist/contribute', 'custom', $config->imageUploadURL) .
+            $customValue['imageURL'] = str_replace('persist/contribute', 'custom', $config->imageUploadURL) .
               $fileDAO->uri;
-            list($path) = CRM_Core_BAO_File::path($fileDAO->id, $entityId,
-              NULL, NULL
-            );
+            list($path) = CRM_Core_BAO_File::path($fileDAO->id, $entityId, NULL, NULL);
             if ($path && file_exists($path)) {
               list($imageWidth, $imageHeight) = getimagesize($path);
               list($imageThumbWidth, $imageThumbHeight) = CRM_Contact_BAO_Contact::getThumbSize($imageWidth, $imageHeight);
@@ -1169,11 +1162,11 @@ ORDER BY civicrm_custom_group.weight,
    * Add the whereAdd clause for the DAO depending on the type of entity
    * the custom group is extending.
    *
-   * @param $customGroupDAO
+   * @param object $customGroupDAO
    * @param string $entityType
    *   What entity are we extending here ?.
    *
-   * @param object CRM_Core_DAO_CustomGroup (reference) - Custom Group DAO.
+   * @param int $entityID
    * @param bool $allSubtypes
    *
    * @return void
@@ -1242,9 +1235,8 @@ ORDER BY civicrm_custom_group.weight,
    * @param bool $force
    *   whether to force the deletion, even if there are custom fields.
    *
-   * @return boolean
+   * @return bool
    *   false if field exists for this group, true if group gets deleted.
-   *
    */
   public static function deleteGroup($group, $force = FALSE) {
 
@@ -1462,10 +1454,9 @@ ORDER BY civicrm_custom_group.weight,
           case 'CheckBox':
             if (!empty($v)) {
               $customValue = array_keys($v);
-              $groupTree[$groupID]['fields'][$fieldId]['customValue']['data'] =
-                CRM_Core_DAO::VALUE_SEPARATOR .
-                implode(CRM_Core_DAO::VALUE_SEPARATOR, $customValue) .
-                CRM_Core_DAO::VALUE_SEPARATOR;
+              $groupTree[$groupID]['fields'][$fieldId]['customValue']['data'] = CRM_Core_DAO::VALUE_SEPARATOR
+                . implode(CRM_Core_DAO::VALUE_SEPARATOR, $customValue)
+                . CRM_Core_DAO::VALUE_SEPARATOR;
             }
             else {
               $groupTree[$groupID]['fields'][$fieldId]['customValue']['data'] = NULL;
@@ -1478,10 +1469,9 @@ ORDER BY civicrm_custom_group.weight,
             //added for Multi-Select
           case 'Multi-Select':
             if (!empty($v)) {
-              $groupTree[$groupID]['fields'][$fieldId]['customValue']['data'] =
-                CRM_Core_DAO::VALUE_SEPARATOR .
-                implode(CRM_Core_DAO::VALUE_SEPARATOR, $v) .
-                CRM_Core_DAO::VALUE_SEPARATOR;
+              $groupTree[$groupID]['fields'][$fieldId]['customValue']['data'] = CRM_Core_DAO::VALUE_SEPARATOR
+                . implode(CRM_Core_DAO::VALUE_SEPARATOR, $v)
+                . CRM_Core_DAO::VALUE_SEPARATOR;
             }
             else {
               $groupTree[$groupID]['fields'][$fieldId]['customValue']['data'] = NULL;
@@ -1695,8 +1685,7 @@ ORDER BY civicrm_custom_group.weight,
    * @param array $removeCustomFieldTypes
    *   Remove custom fields of a type eg: array("Individual") ;.
    *
-   *
-   * @return boolean
+   * @return bool
    *   false if it matches else true
    */
   public static function checkCustomField($customFieldId, &$removeCustomFieldTypes) {
@@ -1804,7 +1793,7 @@ SELECT IF( EXISTS(SELECT name FROM civicrm_contact_type WHERE name like %1), 1,
    * @param array $groupTree
    * @param int $groupCount
    *   Group count by default 1, but can varry for multiple value custom data.
-   * @param object form object
+   * @param object $form
    *
    * @return array
    */
@@ -1977,7 +1966,7 @@ SELECT IF( EXISTS(SELECT name FROM civicrm_contact_type WHERE name like %1), 1,
 
     //changed isset CRM-4601
     if (CRM_Utils_System::isNull($value)) {
-      return;
+      return NULL;
     }
 
     $htmlType = CRM_Utils_Array::value('html_type', $field);
@@ -2070,8 +2059,8 @@ SELECT IF( EXISTS(SELECT name FROM civicrm_contact_type WHERE name like %1), 1,
           $retValue = $value;
           break;
         }
-      // note that if its not text / textarea, the code falls thru and executes
-      // the below case also
+        // note that if its not text / textarea, the code falls thru and executes
+        // the below case also
       case 'StateProvince':
       case 'Country':
         $options = array();
@@ -2203,12 +2192,12 @@ SELECT IF( EXISTS(SELECT name FROM civicrm_contact_type WHERE name like %1), 1,
    * @param array $fieldIds
    *   Array of custom field ids.
    *
-   * @return array
+   * @return array|NULL
    *   array consisting of groups and fields labels with ids.
    */
   public static function getGroupTitles($fieldIds) {
     if (!is_array($fieldIds) && empty($fieldIds)) {
-      return;
+      return NULL;
     }
 
     $groupLabels = array();
@@ -2250,12 +2239,12 @@ SELECT  civicrm_custom_group.id as groupID, civicrm_custom_group.title as groupT
    * @param int $gID
    *   Custom group id.
    *
-   * @return boolean
+   * @return bool|NULL
    *   true if empty otherwise false.
    */
   public static function isGroupEmpty($gID) {
     if (!$gID) {
-      return;
+      return NULL;
     }
 
     $tableName = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup',
@@ -2361,4 +2350,5 @@ SELECT  civicrm_custom_group.id as groupID, civicrm_custom_group.title as groupT
     }
     return $multipleGroup;
   }
+
 }
index a8a000495fa34c4311d2fd61184e6e529d81dda6..e872746c843ba13ec6343e77b86c1b773c2c327e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -307,4 +307,5 @@ SET    {$dao->columnName} = REPLACE( {$dao->columnName}, %1, %2 )";
 
     return $options;
   }
+
 }
index 77633ff315f927f925d20923b309721b27642d8b..9c475f826a790bdaf20569c91bcfb9b48d12201a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -617,4 +617,5 @@ SELECT label, value
       $this->_qill[$grouping][] = $label . ' - ' . implode(' ' . ts('and') . ' ', $qill);
     }
   }
+
 }
index 156b96220359b2627d6337300e932c423ce6e851..8f45597b9d609a521896a99d8a748a41c6180920 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -47,7 +47,7 @@ class CRM_Core_BAO_CustomValue extends CRM_Core_DAO {
    * @param string $value
    *   The data to be validated.
    *
-   * @return boolean
+   * @return bool
    *   True if the value is of the specified type
    */
   public static function typecheck($type, $value) {
@@ -215,4 +215,5 @@ class CRM_Core_BAO_CustomValue extends CRM_Core_DAO {
       $customValueID
     );
   }
+
 }
index f22fd2b201663993b9ccd4678e32e87bd630ef03..219f1a64a625ceaadc90910c786996c1c7711b81 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -715,4 +715,5 @@ AND    cf.id IN ( $fieldIDList )
       return $result;
     }
   }
+
 }
index d25c8fe457143f5631c9480b3948bae72c01339c..c17a297d582cd013f317c80feeb2b141423e2a2b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -573,4 +573,5 @@ class CRM_Core_BAO_Dashboard extends CRM_Core_DAO_Dashboard {
     $dashlet->delete();
     return TRUE;
   }
+
 }
index 447af20e1c61a2abd4ec0fa5f3eceec74a38b5ce..325dabb7f104d90dbfc94f383d13eb1f45d1943a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -47,7 +47,7 @@ class CRM_Core_BAO_Discount extends CRM_Core_DAO_Discount {
    * @param int $entityId
    * @param string $entityTable
    *
-   * @return boolean
+   * @return bool
    */
   public static function del($entityId, $entityTable) {
     // delete all discount records with the selected discounted id
@@ -83,7 +83,7 @@ class CRM_Core_BAO_Discount extends CRM_Core_DAO_Discount {
    * Determine whether the given table/id
    * has discount associated with it
    *
-   * @param int $entityIdEntity id to be searched.
+   * @param int $entityId
    *   Entity id to be searched.
    * @param string $entityTable
    *   Entity table to be searched.
index 27709bdd6574773a29385e0a8f5a5c191439ca7d..9bb96de5dbf095dd99d20725e15d4401ff9c6445 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -331,4 +331,5 @@ class CRM_Core_BAO_Domain extends CRM_Core_DAO_Domain {
     }
     return $siteContacts;
   }
+
 }
index 87649e5d9fbc599ed9c8db72ee214f81ab024b38..fcd3f82671c5d2f8d7111d7e52f40be01b497755 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -79,11 +79,11 @@ class CRM_Core_BAO_Email extends CRM_Core_DAO_Email {
     $email->email = $strtolower($email->email);
 
     /*
-    * since we're setting bulkmail for 1 of this contact's emails, first reset all their other emails to is_bulkmail false
-    *  We shouldn't not set the current email to false even though we
-    *  are about to reset it to avoid contaminating the changelog if logging is enabled
-    * (only 1 email address can have is_bulkmail = true)
-    */
+     * since we're setting bulkmail for 1 of this contact's emails, first reset all their other emails to is_bulkmail false
+     *  We shouldn't not set the current email to false even though we
+     *  are about to reset it to avoid contaminating the changelog if logging is enabled
+     * (only 1 email address can have is_bulkmail = true)
+     */
     if ($email->is_bulkmail != 'null' && $params['contact_id'] && !self::isMultipleBulkMail()) {
       $sql = "
 UPDATE civicrm_email
@@ -331,4 +331,5 @@ AND    reset_date IS NULL
   public static function del($id) {
     return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('Email', $id);
   }
+
 }
index c0ef14f1f3c51f547e1dbc46c9aa665a0e686e08..f4a8c16928213bbfeb3523dd87c88d2b16c06202 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class contains functions for managing Tag(tag) for a contact
@@ -45,8 +45,8 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag {
    * @param string $entityTable
    *   Name of the entity table usually 'civicrm_contact'.
    *
-   * @return array(
-   * ) reference $tag array of category id's the contact belongs to.
+   * @return array
+   *   reference $tag array of category id's the contact belongs to.
    *
    */
   public static function &getTag($entityID, $entityTable = 'civicrm_contact') {
@@ -103,7 +103,7 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag {
    * @param array $params
    *   An assoc array of name/value pairs.
    *
-   * @return boolean
+   * @return bool
    */
   public static function dataExists($params) {
     return !($params['tag_id'] == 0);
@@ -114,8 +114,6 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag {
    *
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
-   *
-   * @return CRM_Core_BAO_EntityTag
    */
   public static function del(&$params) {
     $entityTag = new CRM_Core_BAO_EntityTag();
@@ -390,15 +388,17 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag {
 
   /**
    * Get options for a given field.
+   *
    * @see CRM_Core_DAO::buildOptions
+   * @see CRM_Core_DAO::buildOptionsContext
    *
    * @param string $fieldName
    * @param string $context
-   *   @see CRM_Core_DAO::buildOptionsContext.
+   *   As per CRM_Core_DAO::buildOptionsContext.
    * @param array $props
    *   whatever is known about this dao object.
    *
-   * @return Array|bool
+   * @return array|bool
    */
   public static function buildOptions($fieldName, $context = NULL, $props = array()) {
     $params = array();
@@ -413,4 +413,5 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag {
 
     return $options;
   }
+
 }
index 035952f78be559331cdf7af1aeaccf1a81bf5dae..f8296f4c6ff60f8fb24d5dd7cb14c007ff92436c 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 0834b4a7286324ad52a4a7f2ad452f3a3e0f85ed..064fa7b263c8f4da40328adc5af04ad70663990e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -716,4 +716,5 @@ AND       CEF.entity_id    = %2";
     }
     return NULL;
   }
+
 }
index 314a8dac40f0359aa0c9b6576da44cd87e098fc4..869a633c5d1abef50233a969be34853660ac4990 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -483,4 +483,5 @@ WHERE pp.participant_id = {$entityId} AND ft.to_financial_account_id != {$toFina
     }
     return $value;
   }
+
 }
index 2371436d10a0fa87100e19831406ef8d834327a2..a66907ad6a264773be80908c245943acf06ce3b3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -169,4 +169,5 @@ ORDER BY cim.is_primary DESC, im_id ASC ";
   public static function del($id) {
     return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('IM', $id);
   }
+
 }
index fcc1e2365aa9b42d4d2d98775eb4892a922c9f7f..af1b843c4302b1eaf269fb5c1e51ef5df2fe4beb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 089a23a2cf7dbc587446be87bd24948a57408d54..d50fc673aa707ca2d52ab762bb9d7fc75692a2d2 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -552,4 +552,5 @@ class CRM_Core_BAO_LabelFormat extends CRM_Core_DAO_OptionValue {
     }
     CRM_Core_Error::fatal(ts('Invalid value passed to delete function.'));
   }
+
 }
index 33f234af3be4507bfd30fdc7c0da0d189325c573..5fa6dade98c288c796a119b24d0a98bd5a27b7d0 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -440,4 +440,5 @@ WHERE e.id = %1";
     }
     return $elements;
   }
+
 }
index 7dc1fe5d9c37129df1c42a97f0550570b818a5ad..9d48804e3dae01c1d673408c8ae2c798f5674414 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -167,4 +167,5 @@ class CRM_Core_BAO_LocationType extends CRM_Core_DAO_LocationType {
     $locationType->id = $locationTypeId;
     $locationType->delete();
   }
+
 }
index 12859cfd4abd08425799c6fe9885c7cf4463da22..cc15a2190c021f1605a22b317f0c69901411187b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -197,4 +197,5 @@ UPDATE civicrm_log
 
     return FALSE;
   }
+
 }
index f3bf998eacfd2f3dfe06981f6e43421e13dd897d..b8ed404c0bf1199fa4f02d147721983b86c60188 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -209,4 +209,5 @@ class CRM_Core_BAO_MailSettings extends CRM_Core_DAO_MailSettings {
 
     return $results;
   }
+
 }
index 52b29f049c2386bba8c0b615430cd6781fb2e7d6..c77d80d8c33ce1144c07d69c3f82e5219bcaf2e8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1260,4 +1260,5 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping {
       }
     }
   }
+
 }
index 591fcd3320e76513635b7fd3ff577c251f14bcfb..088886d7ee42f11504badb94a1dea63c9388b857 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -535,4 +535,5 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
 
     return array($sent, $subject, $text, $html);
   }
+
 }
index b12eb19051f9130c4483a92ff956af38db20ab42..5d86859ff3a7dc606dd42b5d2caf5df86a99c916 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -852,4 +852,5 @@ ORDER BY parent_id, weight";
     }
     return $key;
   }
+
 }
index 59307f1108e6971c97f6b6b4e8f4503366431dde..08ad15333bac4d8b33d699cb576c3b987323350d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -580,4 +580,5 @@ WHERE participant.contact_id = %1 AND  note.entity_table = 'civicrm_participant'
       self::del($contactNoteId->id, FALSE);
     }
   }
+
 }
index 73eca2856c616ec2911f911b4a5b875f630a10d5..e4feb453391ab95714221ab91c50f53068c1ccff 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -78,7 +78,7 @@ class CRM_Core_BAO_OpenID extends CRM_Core_DAO_OpenID {
    * @param string $identity_url
    *   The OpenID to check.
    *
-   * @return boolean
+   * @return bool
    */
   public static function isAllowedToLogin($identity_url) {
     $openId = new CRM_Core_DAO_OpenID();
@@ -147,4 +147,5 @@ ORDER BY
   public static function del($id) {
     return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('OpenID', $id);
   }
+
 }
index 88bbcba9783721ea1a8be282385275dd429df402..883828e743a2ed3eda83d3c2a16cffd26276466e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -140,4 +140,5 @@ class CRM_Core_BAO_OptionGroup extends CRM_Core_DAO_OptionGroup {
     $optionGroup->find(TRUE);
     return $optionGroup->name;
   }
+
 }
index 3a1659451e2958a066c82ca6c52e17c5971b468c..f0ce92cbfccaac8b67a306082005ccdff2289716 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -231,7 +231,7 @@ class CRM_Core_BAO_OptionValue extends CRM_Core_DAO_OptionValue {
    *
    * @param int $optionValueId
    *
-   * @return boolean
+   * @return bool
    *
    */
   public static function del($optionValueId) {
index 2608314c1965e9053903fa8fe124ab7cba0e5f8b..e39ac264c80d4bbadecff99873b16c1efd8b4a9c 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -344,4 +344,5 @@ class CRM_Core_BAO_PaperSize extends CRM_Core_DAO_OptionValue {
     }
     CRM_Core_Error::fatal(ts('Invalid value passed to delete function.'));
   }
+
 }
index c13df3de6ec107400da6b5a2194486bf598c6c54..2de33a58bcbed8697f1b01bb025d29c8d5defbc8 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -399,4 +399,5 @@ class CRM_Core_BAO_PdfFormat extends CRM_Core_DAO_OptionValue {
     }
     CRM_Core_Error::fatal(ts('Invalid value passed to delete function.'));
   }
+
 }
index 998e29aac43a277ced91e4fd782a41ab11f2c20d..467dca9958d00a56cfc3ba2747bab94ff658b16d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -107,4 +107,5 @@ class CRM_Core_BAO_Persistent extends CRM_Core_DAO_Persistent {
       return CRM_Utils_Array::value($name, $contextNameData[$context]);
     }
   }
+
 }
index b83e8ff917045bb25c377414d5b959f96e35b2c3..14cd04f52c142e113551712f0e8d1535a3d16398 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -90,7 +90,7 @@ class CRM_Core_BAO_Phone extends CRM_Core_DAO_Phone {
    * Given the list of params in the params array, fetch the object
    * and store the values in the values array
    *
-   * @param array entityBlock input parameters to find object
+   * @param array $entityBlock
    *
    * @return array
    *   array of phone objects
@@ -142,7 +142,6 @@ LEFT JOIN civicrm_location_type ON ( civicrm_phone.location_type_id = civicrm_lo
 WHERE     civicrm_contact.id = %1 $cond
 ORDER BY civicrm_phone.is_primary DESC,  phone_id ASC ";
 
-
     $params = array(
       1 => array(
         $id,
@@ -271,4 +270,5 @@ ORDER BY ph.is_primary DESC, phone_id ASC ";
     CRM_Core_DAO::checkSqlFunctionsExist();
     return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('Phone', $id);
   }
+
 }
index c2bb7e1fab3e7181355b8c7f1321a6a374d14587..a7020ea7ce6bdd35ee411a2fc2f9c784cda96cd7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -148,4 +148,5 @@ AND    v.is_active = 1
       }
     }
   }
+
 }
index 8c7d3a6b099d2dc308ec6a27e08a56800f8a8d79..daf9d8275b3351bdd1832b94c0b18dd0341d08d6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -92,4 +92,5 @@ class CRM_Core_BAO_PreferencesDate extends CRM_Core_DAO_PreferencesDate {
   public static function del($id) {
     CRM_Core_Error::fatal();
   }
+
 }
index 4c2ba15d98d6deffb8f7d34ea7e6e7384a236ad8..cb5bcef2e9a94abdf50ad34052e4e24beab22b02 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -497,4 +497,5 @@ WHERE  cacheKey LIKE %1
     $params['rowCount1'] = $rowCount;
     return $params;
   }
+
 }
index aef586d931adf6c2bc876b340aa8a87c8d577ba7..f214e164eed49e8b311a91399d526a9a33068eb2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1135,4 +1135,5 @@ class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity {
     }
     return $result;
   }
+
 }
index 5e0e52eea2bbcc6807bd3694d37c24b394591440..8b71cd13cfc65b140ca90bae7df57eacd2405760 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -79,7 +79,7 @@ class CRM_Core_BAO_SchemaHandler {
     $config = CRM_Core_Config::singleton();
     if ($config->logging) {
       // logging support
-      $logging = new CRM_Logging_Schema;
+      $logging = new CRM_Logging_Schema();
       $logging->fixSchemaDifferencesFor($params['name'], NULL, FALSE);
     }
 
@@ -348,7 +348,7 @@ ALTER TABLE {$tableName}
     if ($config->logging) {
       // logging support: if we’re adding a column (but only then!) make sure the potential relevant log table gets a column as well
       if ($params['operation'] == 'add') {
-        $logging = new CRM_Logging_Schema;
+        $logging = new CRM_Logging_Schema();
         $logging->fixSchemaDifferencesFor($params['table_name'], array('ADD' => array($params['name'])), FALSE);
       }
     }
@@ -361,14 +361,10 @@ ALTER TABLE {$tableName}
   }
 
   /**
-   * Delete a civiCRM-table
+   * Delete a CiviCRM-table
    *
    * @param string $tableName
    *   Name of the table to be created.
-   *
-   * @return bool
-   *   TRUE if successfully deleted, FALSE otherwise.
-   *
    */
   public static function dropTable($tableName) {
     $sql = "DROP TABLE $tableName";
@@ -410,7 +406,7 @@ ADD UNIQUE INDEX `unique_entity_id` ( `entity_id` )";
   public static function createIndexes(&$tables, $createIndexPrefix = 'index', $substrLenghts = array()) {
     $queries = array();
     require_once 'CRM/Core/DAO/Domain.php';
-    $domain = new CRM_Core_DAO_Domain;
+    $domain = new CRM_Core_DAO_Domain();
     $domain->find(TRUE);
     $locales = explode(CRM_Core_DAO::VALUE_SEPARATOR, $domain->locales);
 
@@ -440,7 +436,7 @@ ADD UNIQUE INDEX `unique_entity_id` ( `entity_id` )";
           "index_{$field}{$lengthName}",
           "FK_{$table}_{$field}{$lengthName}",
           "UI_{$field}{$lengthName}",
-          "{$createIndexPrefix}_{$field}{$lengthName}"
+          "{$createIndexPrefix}_{$field}{$lengthName}",
         );
 
         // skip to the next $field if one of the above $names exists; handle multilingual for CRM-4126
@@ -465,7 +461,7 @@ ADD UNIQUE INDEX `unique_entity_id` ( `entity_id` )";
     }
 
     // run the queries without i18n-rewriting
-    $dao = new CRM_Core_DAO;
+    $dao = new CRM_Core_DAO();
     foreach ($queries as $query) {
       $dao->query($query, FALSE);
     }
@@ -527,4 +523,5 @@ MODIFY      {$columnName} varchar( $length )
       ));
     }
   }
+
 }
index aca2dbbf1f89863df3622c1040b1872a4beeb994..f42e66c6f98d669ea54e30e687285f4204205970 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -79,10 +79,10 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
    * @param int $domainID
    * @param bool $force
    *
-   * @return boolean
+   * @return bool
    *   true if item is already in cache
    */
-  static function inCache(
+  public static function inCache(
     $group,
     $name,
     $componentID = NULL,
@@ -133,7 +133,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
    *
    * @return string
    */
-  static function setCache(
+  public static function setCache(
     $values,
     $group,
     $componentID = NULL,
@@ -163,7 +163,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
    *
    * @return CRM_Core_DAO_Domain|CRM_Core_DAO_Setting
    */
-  static function dao(
+  public static function dao(
     $group,
     $name = NULL,
     $componentID = NULL,
@@ -219,7 +219,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
    * @return mixed
    *   The data if present in the setting table, else null
    */
-  static function getItem(
+  public static function getItem(
     $group,
     $name = NULL,
     $componentID = NULL,
@@ -304,15 +304,14 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
           }
         }
         else {
-          $setting =
-            CRM_Core_BAO_Setting::getItem(
-              $fields['values'][$name]['group_name'],
-              $name,
-              CRM_Utils_Array::value('component_id', $params),
-              NULL,
-              CRM_Utils_Array::value('contact_id', $params),
-              $domainID
-            );
+          $setting = CRM_Core_BAO_Setting::getItem(
+            $fields['values'][$name]['group_name'],
+            $name,
+            CRM_Utils_Array::value('component_id', $params),
+            NULL,
+            CRM_Utils_Array::value('contact_id', $params),
+            $domainID
+          );
         }
         if (!is_null($setting)) {
           // we won't return if not set - helps in return all scenario - otherwise we can't indentify the missing ones
@@ -346,7 +345,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
    *
    * @return void
    */
-  static function setItem(
+  public static function setItem(
     $value,
     $group,
     $name,
@@ -380,7 +379,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
    * @param int $createdID
    * @param int $domainID
    */
-  static function _setItem(
+  public static function _setItem(
     $metadata,
     $value,
     $group,
@@ -637,16 +636,16 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
    *
    * @return array
    *   the following information as appropriate for each setting
-   * - name
-   * - type
-   * - default
-   * - add (CiviCRM version added)
-   * - is_domain
-   * - is_contact
-   * - description
-   * - help_text
+   *   - name
+   *   - type
+   *   - default
+   *   - add (CiviCRM version added)
+   *   - is_domain
+   *   - is_contact
+   *   - description
+   *   - help_text
    */
-  static function getSettingSpecification(
+  public static function getSettingSpecification(
     $componentID = NULL,
     $filters = array(),
     $domainID = NULL,
@@ -832,7 +831,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
    *
    * @return array
    */
-  static function valueOptions(
+  public static function valueOptions(
     $group,
     $name,
     $system = TRUE,
@@ -891,7 +890,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
    * @param int $userID
    * @param string $keyField
    */
-  static function setValueOption(
+  public static function setValueOption(
     $group,
     $name,
     $value,
@@ -1111,7 +1110,7 @@ AND domain_id = %3
   /**
    * Civicrm_setting didn't exist before 4.1.alpha1 and this function helps taking decisions during upgrade
    *
-   * @return boolean
+   * @return bool
    */
   public static function isUpgradeFromPreFourOneAlpha1() {
     if (CRM_Core_Config::isUpgradeMode()) {
@@ -1122,4 +1121,5 @@ AND domain_id = %3
     }
     return FALSE;
   }
+
 }
index 7dabeda2d20e7dc86b157352d9a14502a741697a..730fd8d3afb9e6b0f200557667855aed06540e31 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -126,12 +126,11 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag {
    *
    * @return array
    */
-  public static function getTagsUsedFor($usedFor = array(
-      'civicrm_contact'
-    ),
-                                        $buildSelect = TRUE,
-                                        $all = FALSE,
-                                        $parentId = NULL
+  public static function getTagsUsedFor(
+    $usedFor = array('civicrm_contact'),
+    $buildSelect = TRUE,
+    $all = FALSE,
+    $parentId = NULL
   ) {
     $tags = array();
 
@@ -198,7 +197,7 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag {
    *
    * @return array
    */
-  static function getTags(
+  public static function getTags(
     $usedFor = 'civicrm_contact',
     &$tags = array(),
     $parentId = NULL,
@@ -320,7 +319,7 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag {
    * @param int $id
    *   Tag id.
    *
-   * @return boolean
+   * @return bool
    */
   public static function del($id) {
     // since this is a destructive operation, lets make sure
@@ -409,7 +408,7 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return boolean
+   * @return bool
    */
   public static function dataExists(&$params) {
     // Disallow empty values except for the number zero.
@@ -437,8 +436,8 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag {
     $dao = CRM_Core_DAO::executeQuery($query, array(
         1 => array(
           '%' . $entityTable . '%',
-          'String'
-        )
+          'String',
+        ),
       ), TRUE, NULL, FALSE, FALSE);
     while ($dao->fetch()) {
       $tagSets[$dao->id] = $dao->name;
@@ -476,4 +475,5 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag {
 
     return $tags;
   }
+
 }
index 6abb7e34c6160bcdce07bcc582aff05bea0425f8..af17c1be5e2a016917df0d29bdaaa79a77fea2a2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1151,4 +1151,5 @@ SELECT  id
     }
     return self::$_memberBatchEntryFields;
   }
+
 }
index a798da1bf155af1b252111513f1b17a8c0a3bfe3..8b5e16df8fae6f2adb280ca8050d384ceaeed51f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -3718,4 +3718,5 @@ SELECT  group_id
       }
     }
   }
+
 }
index f69b263c4031816256111bd3d7d91d03cf8e09f5..f118b578ad2ff12fcc80e91161dcbfd3aa35e9ee 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -179,4 +179,5 @@ class CRM_Core_BAO_UFJoin extends CRM_Core_DAO_UFJoin {
     }
     return array($first, $second, $firstActive, $secondActive);
   }
+
 }
index 6df82a970707606e045a7e68440775d76d4a10f2..f4f0716ce2417d86300412a951768fd8162f14aa 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -643,4 +643,5 @@ AND    domain_id    = %4
     }
     return $ufValues[$ufID];
   }
+
 }
index 28a93932e4c97d046cfa87d5944ff0f4f0208317..bf62448f666a3d247b2ff930cc6adc0e58fc0e1f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -191,4 +191,5 @@ SELECT  id, website_type_id
     }
     return $websites;
   }
+
 }
index eee35c7b5d81a9969b5c19f0cd49a0804a184df3..5cd85e83dd9da3e5b1667da4556d255984dd7b35 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -282,4 +282,5 @@ WHERE  domain_id = %1
     ));
     CRM_Core_BAO_WordReplacement::rebuild();
   }
+
 }
index 5d95e807ec2ed9dd8079739eb1c9e4c6c21065b3..f351cb1fa7c16fa8e468bded5086cd2f8d048904 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * The Base class of the CRM hierarchy. Currently does not provide
@@ -48,4 +48,5 @@ class CRM_Core_Base {
    */
   public function __construct() {
   }
+
 }
index 2b6366ab09beb0c78a910bbdd3ff92eb42e9da2f..8200fc7c357cb3db2ffa5c741a2e210390d10aaa 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -676,4 +676,5 @@ class CRM_Core_Block {
 
     return $template->fetch('CRM/Block/' . $fileName);
   }
+
 }
index a85c973e2c55454a23d965987eee21b979c9d530..e92bf888dc90ea5ee9261c69a4834c6ea865bb32 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 88ac1f469d4c26e8fe09c2eab77d08250c3f0e9c..6a4a006e0809152e1841672b7207f28943b2f68d 100644 (file)
@@ -21,4 +21,5 @@ abstract class CRM_Core_CodeGen_BaseTask implements CRM_Core_CodeGen_ITask {
     $this->config = $config;
     $this->tables = $this->config->tables;
   }
+
 }
index 2f0627a195decd3f3cfe140c92d73b6735305770..ab8f8663729a3b846fdb4d356032d3da0206e3f6 100644 (file)
@@ -18,9 +18,8 @@ class CRM_Core_CodeGen_Config extends CRM_Core_CodeGen_BaseTask {
     if (!in_array($this->config->cms, array(
       'drupal',
       'joomla',
-      'wordpress'
-    ))
-    ) {
+      'wordpress',
+    ))) {
       echo "Config file for '{$this->config->cms}' not known.";
       exit();
     }
@@ -70,4 +69,5 @@ class CRM_Core_CodeGen_Config extends CRM_Core_CodeGen_BaseTask {
     }
     return NULL;
   }
+
 }
index 156a7e911887993d400953850185667beb182fb0..58318ed83ce54fb3bb892f7d2e4f229ff1d853aa 100644 (file)
@@ -53,4 +53,5 @@ class CRM_Core_CodeGen_I18n extends CRM_Core_CodeGen_BaseTask {
 
     $template->run('schema_structure.tpl', $this->config->phpCodePath . "/CRM/Core/I18n/SchemaStructure.php");
   }
+
 }
index fac04e9c6b8c34afaf515ee8fd80d8e35d25183d..f5f4561401c496e0601cce57382ecfd7ff0d0419 100644 (file)
@@ -16,4 +16,5 @@ interface CRM_Core_CodeGen_ITask {
    * Perform the task.
    */
   public function run();
+
 }
index 530a28adbd1251b9fb7ea3bd3ccf5a926bb100b1..79f92c5259574b069059ed591b40126b9c0c56e2 100644 (file)
@@ -192,4 +192,5 @@ Alternatively you can get a version of CiviCRM that matches your PHP version
     }
     return TRUE;
   }
+
 }
index d5902d1747df07472bece8705c3bb429624889d4..78d83b76b825b3c2e4408d0ded9c3ad8fec5f52f 100644 (file)
@@ -14,4 +14,5 @@ class CRM_Core_CodeGen_Reflection extends CRM_Core_CodeGen_BaseTask {
 
     $template->run('listAll.tpl', $this->config->CoreDAOCodePath . "AllCoreTables.php");
   }
+
 }
index e973204c32c23bda571a06686bacce2749f2078f..c2c2f19de5965a76907e6a5643ac6463c7084cf5 100644 (file)
@@ -131,4 +131,5 @@ class CRM_Core_CodeGen_Schema extends CRM_Core_CodeGen_BaseTask {
 
     return $locales;
   }
+
 }
index c1b528cc780a0e9f9f4aec0ddd76e65479f34aea..65be47db886bbf9c7742a5a088513796ce5d8e14 100644 (file)
@@ -670,4 +670,5 @@ class CRM_Core_CodeGen_Specification {
     }
     return 'CRM_Utils_Type::HUGE';
   }
+
 }
index ef123597fd148313acdc3f9ee0d56868d751c982..e87e6539a797ca6343de2b6ac52f52179ddf4109 100644 (file)
@@ -24,4 +24,5 @@ class CRM_Core_CodeGen_Test extends CRM_Core_CodeGen_BaseTask {
     file_put_contents($this->config->sqlCodePath . "../tests/phpunit/CiviTest/truncate.xml", $truncate);
     unset($truncate);
   }
+
 }
index 7dd0b0c6482a33fd404770467f73896638520863..278454bdb135e92d1e52571dba70f8695fd28aaa 100644 (file)
@@ -92,4 +92,5 @@ class CRM_Core_CodeGen_Util_File {
     }
     return $files;
   }
+
 }
index 2b2baacbbfa36f0a06e207a5216203400b060046..fe627988bab1866f9a7899d0544d6c72998c0dfd 100644 (file)
@@ -54,4 +54,5 @@ class CRM_Core_CodeGen_Util_Smarty {
     }
     return $this->smarty;
   }
+
 }
index 36d7db36dd41d0f9a462fbddcbe8f6d693197935..76042b2a7d9ce5c8cd79d6f6b9d10ec89ae30678 100644 (file)
@@ -90,4 +90,5 @@ class CRM_Core_CodeGen_Util_Template {
     $this->smarty->clear_all_assign();
     $this->smarty->clear_all_cache();
   }
+
 }
index 16ba47034823859e96e9bb7c18f31d8e6ab945c9..4711fdc472a24c79faa8d59b8392d8ace7dbe8f2 100644 (file)
@@ -17,4 +17,5 @@ class CRM_Core_CodeGen_Util_Xml {
     $xml = simplexml_import_dom($dom);
     return $xml;
   }
+
 }
index a9b7a0648da0919c4738134506fd86642260096b..3db82150985c3c7f48c2dab0bb60a21130697d19 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Manage the download, validation, and rendering of community messages
@@ -224,10 +224,10 @@ class CRM_Core_CommunityMessages {
    * @return bool
    */
   public function validateDocument($document) {
-    if (!isset($document['ttl']) || !is_integer($document['ttl'])) {
+    if (!isset($document['ttl']) || !is_int($document['ttl'])) {
       return FALSE;
     }
-    if (!isset($document['retry']) || !is_integer($document['retry'])) {
+    if (!isset($document['retry']) || !is_int($document['retry'])) {
       return FALSE;
     }
     if (!isset($document['messages']) || !is_array($document['messages'])) {
index 149b1f13d007de05ee1d92ab9df575cf584c83b2..85c69308675466cdbdfeec609a8ae5ea497de122 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Component stores all the static and dynamic information of the various
@@ -461,4 +461,5 @@ class CRM_Core_Component {
 
     return $components;
   }
+
 }
index 0e599999353392f73ff9071159fad7966c1b7658..82282b24286ccf2b054bc6a70616e7902f1133ce 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This abstract class provides the framework for component configuration
@@ -60,4 +60,5 @@ abstract class CRM_Core_Component_Config {
       }
     }
   }
+
 }
index 6100cedd0b4fa24fba51cb1a16840efed637bca5..882502ddb80154fe8c8fc11cd4ec29ff6ddfc501 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This interface defines methods that need to be implemented
@@ -229,7 +229,7 @@ abstract class CRM_Core_Component_Info {
    * Provides information whether given component is currently
    * marked as enabled in configuration.
    *
-   * @return boolean
+   * @return bool
    *   true if component is enabled, false if not
    */
   public function isEnabled() {
@@ -322,7 +322,7 @@ abstract class CRM_Core_Component_Info {
   /**
    * Provides information whether given component uses system wide search.
    *
-   * @return boolean
+   * @return bool
    *   true if component needs search integration
    */
   public function usesSearch() {
@@ -376,4 +376,5 @@ abstract class CRM_Core_Component_Info {
     require_once str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
     return new $className();
   }
+
 }
index 984d4dbd3f2acb05bacdaf94ce15a6fa5fd7713e..b53adaef3cd45d665f20ec49e53fe67dbaba229e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Config handles all the run time configuration changes that the system needs to deal with.
@@ -211,7 +211,7 @@ class CRM_Core_Config extends CRM_Core_Config_Variables {
       self::$_singleton = $cache->get('CRM_Core_Config' . CRM_Core_Config::domainID());
       // if not in cache, fire off config construction
       if (!self::$_singleton) {
-        self::$_singleton = new CRM_Core_Config;
+        self::$_singleton = new CRM_Core_Config();
         self::$_singleton->_initialize($loadFromDB);
 
         //initialize variables. for gencode we cannot load from the
@@ -358,8 +358,8 @@ class CRM_Core_Config extends CRM_Core_Config_Variables {
 
       // also make sure we create the config directory within this directory
       // the below statement will create both the templates directory and the config and log directory
-      $this->configAndLogDir =
-        CRM_Utils_File::baseFilePath($this->templateCompileDir) .
+      $this->configAndLogDir
+        CRM_Utils_File::baseFilePath($this->templateCompileDir) .
         'ConfigAndLog' . DIRECTORY_SEPARATOR;
       CRM_Utils_File::createDir($this->configAndLogDir);
       CRM_Utils_File::restrictAccess($this->configAndLogDir);
@@ -658,7 +658,7 @@ class CRM_Core_Config extends CRM_Core_Config_Variables {
                $this->templateCompileDir,
                $this->uploadDir,
                $this->configAndLogDir,
-               $this->customFileUploadDir
+               $this->customFileUploadDir,
              ) as $dir) {
       if ($dir && is_dir($dir)) {
         CRM_Utils_File::restrictAccess($dir);
@@ -669,10 +669,10 @@ class CRM_Core_Config extends CRM_Core_Config_Variables {
   /**
    * Verify that the needed parameters are not null in the config
    *
-   * @param CRM_Core_Config (reference ) the system config object
-   * @param array (reference ) the parameters that need a value
+   * @param CRM_Core_Config $config (reference) the system config object
+   * @param array $required (reference) the parameters that need a value
    *
-   * @return boolean
+   * @return bool
    */
   public static function check(&$config, &$required) {
     foreach ($required as $name) {
@@ -876,4 +876,5 @@ AND
   public static function isEnabledBackOfficeCreditCardPayments() {
     return CRM_Financial_BAO_PaymentProcessor::hasPaymentProcessorSupporting(array('BackOffice'));
   }
+
 }
index 81a74eb99f0105fc76335758684b2f6badea5b62..c593c4f8cdb2273c051ac6cddbd525ab5556432b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -248,4 +248,5 @@ class CRM_Core_Config_Defaults {
       }
     }
   }
+
 }
index cae11fbefa2ae25f98ff39efe244c9e1507725f0..9e50bf0c69a343e2674c021070b5c1ee861be55f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Variables class contains definitions of all the core config settings that are allowed on
@@ -609,5 +609,6 @@ class CRM_Core_Config_Variables extends CRM_Core_Config_Defaults {
     }
     return $cachedProvinceLimit;
   }
+
 }
 // end CRM_Core_Config
index 34c3cf39c11f24e4060acde19e509bc0cc77c074..db8a6ed443deffe0727328c449fb4c71112a9220 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class acts as our base controller class and adds additional
index 40c489d1fa6bb604d859106e2af1c1ebcc7b4abc..a3d75edc7f10583750ea33fed26351f2698c5b63 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * We use QFC for both single page and multi page wizards. We want to make
@@ -139,4 +139,5 @@ class CRM_Core_Controller_Simple extends CRM_Core_Controller {
     CRM_Utils_Hook::alterTemplateFile(get_class($this), $this, 'page', $pageTemplateFile);
     return $pageTemplateFile;
   }
+
 }
index 4ce8d00a1177e18fc70bea1f538f9d70426a8462..22f44500342915da69a8b176d2424abade865e65 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Decide what permissions to check for an api call
index ae0bab6e0de08849c2e03af470dda277e46d5ad7..42c614e8f48e0c4c079ec43ffa225108a39f6c61 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Start of the Error framework. We should check out and inherit from
@@ -64,6 +64,7 @@ class CRM_Exception extends PEAR_Exception {
   public function __construct($message = NULL, $code = 0, Exception $previous = NULL) {
     parent::__construct($message, $code, $previous);
   }
+
 }
 
 /**
@@ -967,6 +968,7 @@ class CRM_Core_Error extends PEAR_ErrorStack {
     }
     return FALSE;
   }
+
 }
 
 $e = new PEAR_ErrorStack('CRM');
index 77bedb8d2136b7fec67db60adecd6b3051860aeb..13f4e2d19124a762e0cfc23d8ffda70b4da68d36 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Base class for exceptions generated by CiviCRM.
@@ -80,4 +80,5 @@ class CRM_Core_Exception extends PEAR_Exception {
   public function getErrorData() {
     return $this->errorData;
   }
+
 }
index 3e793a5c37a5de583e9bc9649f4cb74b73946028..da37d7c0567e944ef6292bf2e31238d7d246e47e 100644 (file)
@@ -23,4 +23,5 @@ interface CRM_Core_FileSearchInterface {
    *   - xparent_id: int - business-entity to which file is attached (directly or indirectly)
    */
   public function search($query, $limit = self::DEFAULT_SEARCH_LIMIT, $offset = self::DEFAULT_SEARCH_OFFSET);
+
 }
index 1877210f4ccfcf7be599790fa4f6ed75f471e34c..6556eeecf769364a6330001f74965ca269e272fe 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This is our base form. It is part of the Form/Controller/StateMachine
@@ -167,7 +167,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    *
    * @return \CRM_Core_Form
    */
-  function __construct(
+  public function __construct(
     $state = NULL,
     $action = CRM_Core_Action::NONE,
     $method = 'post',
@@ -267,7 +267,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    *
    * @return HTML_QuickForm_Element could be an error object
    */
-  function &add(
+  public function &add(
     $type, $name, $label = '',
     $attributes = '', $required = FALSE, $extra = NULL
   ) {
@@ -348,7 +348,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
     // Respond with JSON if in AJAX context (also support legacy value '6')
     if ($allowAjax && !empty($_REQUEST['snippet']) && in_array($_REQUEST['snippet'], array(
           CRM_Core_Smarty::PRINT_JSON,
-          6
+          6,
         ))
     ) {
       $this->ajaxResponse['buttonName'] = str_replace('_qf_' . $this->getAttribute('id') . '_', '', $this->controller->getButtonName());
@@ -388,10 +388,11 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    *
    * access        public
    *
-   * @return array
+   * @return array|NULL
    *   reference to the array of default values
    */
   public function setDefaultValues() {
+    return NULL;
   }
 
   /**
@@ -408,7 +409,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   /**
    * Performs the server side validation
    * @since     1.0
-   * @return boolean
+   * @return bool
    *   true if no error found
    * @throws    HTML_QuickForm_Error
    */
@@ -501,10 +502,11 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   /**
    * Add default Next / Back buttons
    *
-   * @param array array of associative arrays in the order in which the buttons should be
-   *                displayed. The associate array has 3 fields: 'type', 'name' and 'isDefault'
-   *                The base form class will define a bunch of static arrays for commonly used
-   *                formats
+   * @param array $params
+   *   Array of associative arrays in the order in which the buttons should be
+   *   displayed. The associate array has 3 fields: 'type', 'name' and 'isDefault'
+   *   The base form class will define a bunch of static arrays for commonly used
+   *   formats.
    *
    * @return void
    */
@@ -623,7 +625,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   /**
    * Setter function for options
    *
-   * @param mixed
+   * @param mixed $options
    *
    * @return void
    */
@@ -646,7 +648,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   /**
    * Boolean function to determine if this is a one form page
    *
-   * @return boolean
+   * @return bool
    */
   public function isSimpleForm() {
     return $this->_state->getType() & (CRM_Core_State::START | CRM_Core_State::FINISH);
@@ -664,7 +666,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   /**
    * Setter function for Form Action
    *
-   * @param string
+   * @param string $action
    *
    * @return void
    */
@@ -766,9 +768,10 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   /**
    * Store the variable with the value in the form scope
    *
-   * @param string name : name of the variable
-   * @param mixed value : value of the variable
-   *
+   * @param string $name
+   *   Name of the variable.
+   * @param mixed $value
+   *   Value of the variable.
    *
    * @return void
    */
@@ -779,8 +782,8 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   /**
    * Get the variable from the form scope
    *
-   * @param string name : name of the variable
-   *
+   * @param string $name
+   *   Name of the variable
    *
    * @return mixed
    */
@@ -922,7 +925,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    * @param string $separator
    * @param bool $flipValues
    */
-  function addCheckBox(
+  public function addCheckBox(
     $id, $title, $values, $other = NULL,
     $attributes = NULL, $required = NULL,
     $javascriptMethod = NULL,
@@ -1177,7 +1180,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   public function addCountry($id, $title, $required = NULL, $extra = NULL) {
     $this->addElement('select', $id, $title,
       array(
-        '' => ts('- select -')
+        '' => ts('- select -'),
       ) + CRM_Core_PseudoConstant::country(), $extra
     );
     if ($required) {
@@ -1280,20 +1283,23 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
 
   /**
    * Add date
-   * @param string $name
-   *   Name of the element.
-   * @param string $label
-   *   Label of the element.
-   * @param array $attributes
-   *   Key / value pair.
    *
+   * @code
    * // if you need time
    * $attributes = array(
    *   'addTime' => true,
    *   'formatType' => 'relative' or 'birth' etc check advanced date settings
    * );
+   * @endcode
+   *
+   * @param string $name
+   *   Name of the element.
+   * @param string $label
+   *   Label of the element.
    * @param bool $required
    *   True if required.
+   * @param array $attributes
+   *   Key / value pair.
    */
   public function addDate($name, $label, $required = FALSE, $attributes = NULL) {
     if (!empty($attributes['formatType'])) {
@@ -1391,7 +1397,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   /**
    * Add a currency and money element to the form
    */
-  function addMoney(
+  public function addMoney(
     $name,
     $label,
     $required = FALSE,
@@ -1414,7 +1420,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   /**
    * Add currency element to the form
    */
-  function addCurrency(
+  public function addCurrency(
     $name = 'currency',
     $label = NULL,
     $required = TRUE,
@@ -1570,7 +1576,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    *   - cid from the url if the caller has ACL permission to view
    *   - fallback is logged in user (or ? NULL if no logged in user) (@todo wouldn't 0 be more intuitive?)
    *
-   * @return NULL|integer
+   * @return NULL|int
    */
   public function getContactID() {
     $tempID = CRM_Utils_Request::retrieve('cid', 'Positive', $this);
@@ -1659,7 +1665,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
       $this->assign('selectable', $autoCompleteField['id_field']);
       $this->addEntityRef($autoCompleteField['id_field'], NULL, array(
           'placeholder' => $autoCompleteField['placeholder'],
-          'api' => $autoCompleteField['api']
+          'api' => $autoCompleteField['api'],
         ));
 
       CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'js/AlternateContactSelector.js', 1, 'html-header')
@@ -1784,7 +1790,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
           'country',
           'Country',
           'state_province',
-          'StateProvince'
+          'StateProvince',
         ), $elementName),
       'data-callback' => strpos($elementName, 'rovince') ? 'civicrm/ajax/jqState' : 'civicrm/ajax/jqCounty',
       'label' => strpos($elementName, 'rovince') ? ts('State/Province') : ts('County'),
@@ -1877,4 +1883,5 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
       }
     }
   }
+
 }
index 5ddb2a6592bf68ccc4c4b2a921af112b01918702..726ced533bed50eea4a6187d5d7fc0b1ab815e69 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -86,17 +86,15 @@ class CRM_Core_Form_Date {
    * @param string $dateFormat
    * @param bool|string $displayTime
    *
-   *
    */
-
-  static function buildDateRange(
+  public static function buildDateRange(
     &$form, $fieldName, $count = 1,
     $from = '_from', $to = '_to', $fromLabel = 'From:',
     $required = FALSE, $operators = array(),
     $dateFormat = 'searchDate', $displayTime = FALSE
   ) {
-    $selector =
-      CRM_Core_Form_Date::returnDateRangeSelector(
+    $selector
+      CRM_Core_Form_Date::returnDateRangeSelector(
         $form, $fieldName, $count,
         $from, $to, $fromLabel,
         $required, $operators,
@@ -128,77 +126,75 @@ class CRM_Core_Form_Date {
    * @return array
    *   Values for Selector
    */
-  static function returnDateRangeSelector(
+  public static function returnDateRangeSelector(
     &$form, $fieldName, $count = 1,
     $from = '_from', $to = '_to', $fromLabel = 'From:',
     $required = FALSE, $operators = array(),
     $dateFormat = 'searchDate', $displayTime = FALSE
   ) {
-    $selector =
-      array(
-        '' => ts('- any -'),
-        0 => ts('Choose Date Range'),
-        'previous_2.year' => ts('Previous 2 Years'),
-        'previous_2.quarter' => ts('Previous 2 Quarters'),
-        'previous_2.month' => ts('Previous 2 Months'),
-        'previous_2.week' => ts('Previous 2 Weeks'),
-        'previous_2.day' => ts('Previous 2 Days'),
-        'previous_before.year' => ts('Prior to Previous Year'),
-        'previous_before.quarter' => ts('Prior to Previous Quarter'),
-        'previous_before.month' => ts('Prior to Previous Month'),
-        'previous_before.week' => ts('Prior to Previous Week'),
-        'previous_before.day' => ts('Prior to Previous Day'),
-        'previous.year' => ts('Previous Year'),
-        'previous.fiscal_year' => ts('Previous Fiscal Year'),
-        'previous.quarter' => ts('Previous Quarter'),
-        'previous.month' => ts('Previous Month'),
-        'previous.week' => ts('Previous Week'),
-        'earlier.year' => ts('To End of Previous Year'),
-        'earlier.quarter' => ts('To End of Previous Quarter'),
-        'earlier.month' => ts('To End of Previous Month'),
-        'earlier.week' => ts('To End of Previous Week'),
-        'earlier.day' => ts('To End of Previous Day'),
-        'greater_previous.year' => ts('From End of Previous Year'),
-        'greater_previous.quarter' => ts('From End of Previous Quarter'),
-        'greater_previous.month' => ts('From End of Previous Month'),
-        'greater_previous.week' => ts('From End of Previous Week'),
-        'greater.year' => ts('From Start of Current Year'),
-        'greater.quarter' => ts('From Start of Current Quarter'),
-        'greater.month' => ts('From Start of Current Month'),
-        'greater.week' => ts('From Start of Current Week'),
-        'greater.day' => ts('From Start of Current Day'),
-        'current.year' => ts('Current Year to-date'),
-        'current.quarter' => ts('Current Quarter to-date'),
-        'current.month' => ts('Current Month to-date'),
-        'current.week' => ts('Current Week to-date'),
-        'ending_3.year' => ts('Last 3 Years'),
-        'ending_2.year' => ts('Last 2 Years'),
-        'ending.year' => ts('Last 12 Months'),
-        'ending.quarter' => ts('Last 3 Months'),
-        'ending.month' => ts('Last Month'),
-        'ending.week' => ts('Last 7 days'),
-        'previous.day' => ts('Yesterday'),
-        'this.year' => ts('This Year'),
-        'this.fiscal_year' => ts('This Fiscal Year'),
-        'this.quarter' => ts('This Quarter'),
-        'this.month' => ts('This Month'),
-        'this.week' => ts('This Week'),
-        'this.day' => ts('Today'),
-        'starting.day' => ts('Tomorrow'),
-        'starting.week' => ts('Upcoming 7 days'),
-        'starting.month' => ts('Upcoming Month'),
-        'starting.year' => ts('Upcoming 12 Months'),
-        'less.year' => ts('To End of Current Year'),
-        'less.quarter' => ts('To End of Current Quarter'),
-        'less.month' => ts('To End of Current Month'),
-        'less.week' => ts('To End of Current Week'),
-        'next.week' => ts('Next Week'),
-        'next.month' => ts('Next Month'),
-        'next.quarter' => ts('Next Quarter'),
-        'next.fiscal_year' => ts('Next Fiscal Year'),
-        'next.year' => ts('Next Year'),
-
-      );
+    $selector = array(
+      '' => ts('- any -'),
+      0 => ts('Choose Date Range'),
+      'previous_2.year' => ts('Previous 2 Years'),
+      'previous_2.quarter' => ts('Previous 2 Quarters'),
+      'previous_2.month' => ts('Previous 2 Months'),
+      'previous_2.week' => ts('Previous 2 Weeks'),
+      'previous_2.day' => ts('Previous 2 Days'),
+      'previous_before.year' => ts('Prior to Previous Year'),
+      'previous_before.quarter' => ts('Prior to Previous Quarter'),
+      'previous_before.month' => ts('Prior to Previous Month'),
+      'previous_before.week' => ts('Prior to Previous Week'),
+      'previous_before.day' => ts('Prior to Previous Day'),
+      'previous.year' => ts('Previous Year'),
+      'previous.fiscal_year' => ts('Previous Fiscal Year'),
+      'previous.quarter' => ts('Previous Quarter'),
+      'previous.month' => ts('Previous Month'),
+      'previous.week' => ts('Previous Week'),
+      'earlier.year' => ts('To End of Previous Year'),
+      'earlier.quarter' => ts('To End of Previous Quarter'),
+      'earlier.month' => ts('To End of Previous Month'),
+      'earlier.week' => ts('To End of Previous Week'),
+      'earlier.day' => ts('To End of Previous Day'),
+      'greater_previous.year' => ts('From End of Previous Year'),
+      'greater_previous.quarter' => ts('From End of Previous Quarter'),
+      'greater_previous.month' => ts('From End of Previous Month'),
+      'greater_previous.week' => ts('From End of Previous Week'),
+      'greater.year' => ts('From Start of Current Year'),
+      'greater.quarter' => ts('From Start of Current Quarter'),
+      'greater.month' => ts('From Start of Current Month'),
+      'greater.week' => ts('From Start of Current Week'),
+      'greater.day' => ts('From Start of Current Day'),
+      'current.year' => ts('Current Year to-date'),
+      'current.quarter' => ts('Current Quarter to-date'),
+      'current.month' => ts('Current Month to-date'),
+      'current.week' => ts('Current Week to-date'),
+      'ending_3.year' => ts('Last 3 Years'),
+      'ending_2.year' => ts('Last 2 Years'),
+      'ending.year' => ts('Last 12 Months'),
+      'ending.quarter' => ts('Last 3 Months'),
+      'ending.month' => ts('Last Month'),
+      'ending.week' => ts('Last 7 days'),
+      'previous.day' => ts('Yesterday'),
+      'this.year' => ts('This Year'),
+      'this.fiscal_year' => ts('This Fiscal Year'),
+      'this.quarter' => ts('This Quarter'),
+      'this.month' => ts('This Month'),
+      'this.week' => ts('This Week'),
+      'this.day' => ts('Today'),
+      'starting.day' => ts('Tomorrow'),
+      'starting.week' => ts('Upcoming 7 days'),
+      'starting.month' => ts('Upcoming Month'),
+      'starting.year' => ts('Upcoming 12 Months'),
+      'less.year' => ts('To End of Current Year'),
+      'less.quarter' => ts('To End of Current Quarter'),
+      'less.month' => ts('To End of Current Month'),
+      'less.week' => ts('To End of Current Week'),
+      'next.week' => ts('Next Week'),
+      'next.month' => ts('Next Month'),
+      'next.quarter' => ts('Next Quarter'),
+      'next.fiscal_year' => ts('Next Fiscal Year'),
+      'next.year' => ts('Next Year'),
+    );
 
     if (is_array($operators)) {
       $selector = array_merge($selector, $operators);
@@ -229,8 +225,6 @@ class CRM_Core_Form_Date {
    * @param bool $required
    * @param string $dateFormat
    * @param bool $displayTime
-   *
-   * @return null
    */
   public static function addDateRangeToForm(&$form, $fieldName, $selector, $from = '_from', $to = '_to', $fromLabel = 'From:', $required = FALSE, $dateFormat = 'searchDate', $displayTime = FALSE) {
     $form->add('select',
index 9e1d5ee733700afe046931097610932c001a5de9..40f96a5b46babb65792d42ffc9205f4d9ce3f7e3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -211,7 +211,7 @@ class CRM_Core_Form_RecurringEntity {
     $form->addDate('exclude_date', ts('Exclude Date(s)'), FALSE);
     $select = $form->add('select', 'exclude_date_list', ts(''), self::$_excludeDateInfo, FALSE, array(
         'style' => 'width:150px;',
-        'size' => 4
+        'size' => 4,
       ));
     $select->setMultiple(TRUE);
     $form->addElement('button', 'add_to_exclude_list', '>>', 'onClick="addToExcludeList(document.getElementById(\'exclude_date\').value);"');
@@ -235,8 +235,8 @@ class CRM_Core_Form_RecurringEntity {
   /**
    * Global validation rules for the form
    *
-   * @param array $fields
-   *   Posted values of the form .
+   * @param array $values
+   *   Posted values of the form.
    *
    * @return array
    *   list of errors to be posted back to the form
@@ -369,28 +369,26 @@ class CRM_Core_Form_RecurringEntity {
           if ($optionGroupIdExists) {
             CRM_Core_BAO_OptionGroup::del($optionGroupIdExists);
           }
-          $optionGroupParams =
-            array(
-              'name' => $type . '_repeat_exclude_dates_' . $actionScheduleObj->entity_value,
-              'title' => $type . ' recursion',
-              'is_reserved' => 0,
-              'is_active' => 1,
-            );
+          $optionGroupParams = array(
+            'name' => $type . '_repeat_exclude_dates_' . $actionScheduleObj->entity_value,
+            'title' => $type . ' recursion',
+            'is_reserved' => 0,
+            'is_active' => 1,
+          );
           $opGroup = CRM_Core_BAO_OptionGroup::add($optionGroupParams);
           if ($opGroup->id) {
             $oldWeight = 0;
             $fieldValues = array('option_group_id' => $opGroup->id);
             foreach ($excludeDates as $val) {
-              $optionGroupValue =
-                array(
-                  'option_group_id' => $opGroup->id,
-                  'label' => CRM_Utils_Date::processDate($val),
-                  'value' => CRM_Utils_Date::processDate($val),
-                  'name' => $opGroup->name,
-                  'description' => 'Used for recurring ' . $type,
-                  'weight' => CRM_Utils_Weight::updateOtherWeights('CRM_Core_DAO_OptionValue', $oldWeight, CRM_Utils_Array::value('weight', $params), $fieldValues),
-                  'is_active' => 1,
-                );
+              $optionGroupValue = array(
+                'option_group_id' => $opGroup->id,
+                'label' => CRM_Utils_Date::processDate($val),
+                'value' => CRM_Utils_Date::processDate($val),
+                'name' => $opGroup->name,
+                'description' => 'Used for recurring ' . $type,
+                'weight' => CRM_Utils_Weight::updateOtherWeights('CRM_Core_DAO_OptionValue', $oldWeight, CRM_Utils_Array::value('weight', $params), $fieldValues),
+                'is_active' => 1,
+              );
               $excludeDateList[] = $optionGroupValue['value'];
               CRM_Core_BAO_OptionValue::add($optionGroupValue);
             }
@@ -411,7 +409,7 @@ class CRM_Core_Form_RecurringEntity {
           ) {
             call_user_func(array(
                 CRM_Core_BAO_RecurringEntity::$_recurringEntityHelper[$params['entity_table']]['helper_class'],
-                call_user_func_array(CRM_Core_BAO_RecurringEntity::$_recurringEntityHelper[$params['entity_table']]['pre_delete_func'], array($params['entity_id']))
+                call_user_func_array(CRM_Core_BAO_RecurringEntity::$_recurringEntityHelper[$params['entity_table']]['pre_delete_func'], array($params['entity_id'])),
               )
             );
           }
index 1b4d6f86fb271f17617c635f05e80aad7da64e4c..d10e2a1e74272a237a207d7c9ceb49dd36cf5166 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -319,4 +319,5 @@ class CRM_Core_Form_Renderer extends HTML_QuickForm_Renderer_ArraySmarty {
     $display = $field->getValue() !== NULL ? '' : ' style="visibility:hidden;"';
     $el['html'] .= ' <a href="#" class="crm-hover-button crm-clear-link"' . $display . ' title="' . ts('Clear') . '"><span class="icon ui-icon-close"></span></a>';
   }
+
 }
index cd650775fa541bc56cbc31f61ad6bc82abdad951..e3c4907faa3716d55ecba46250347d3aea3e6713 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Base class for most search forms
@@ -122,4 +122,5 @@ class CRM_Core_Form_Search extends CRM_Core_Form {
       $this->assign('ts_all_id', $allRowsRadio->_attributes['id']);
     }
   }
+
 }
index 2a004296768fc1bca705dc4333f15efd88b24fd3..4ddd9d9ab14d9b415ea66476bc5fa330974e8894 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -194,4 +194,5 @@ class CRM_Core_Form_Tag {
       }
     }
   }
+
 }
index 5731ab6a73665ae26dab4be41c7ff06d94af7de7..470ceb3dd1452edee021f98f4cf5977f12a43466 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Core_HTMLInputCoder
index 9a22988ae02d5d2cbef0de4695e65d3d04246e42..55df9d3169d08bec8ec03b228c3302e5df676bbf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -497,6 +497,7 @@ class CRM_Core_I18n {
 
     return $locales[$tsLocale];
   }
+
 }
 
 /**
index 43dc06485d956ca74f88bef34c8c079de5608c86..e5262981a2a635b04f38deab0f6942b3b666e9ef 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -114,4 +114,5 @@ class CRM_Core_I18n_Form extends CRM_Core_Form {
     $query = CRM_Core_DAO::composeQuery($query, $params, TRUE);
     $dao->query($query, FALSE);
   }
+
 }
index 0762ce9c986a1d6861ad879a4f972f53be904177..0f721512ae0f3e5dd69f879aa14169ef40139977 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -68,4 +68,5 @@ class CRM_Core_I18n_NativeGettext {
   public function ngettext($text, $plural, $count) {
     return ngettext($text, $plural, $count);
   }
+
 }
index cb573e2dd05c4bf8f75c64e831089878f19d4351..f1ac1ec6f1fbd1e56ec57bd5ad179c00ac06c2c9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -77,4 +77,5 @@ class CRM_Core_I18n_PseudoConstant {
   public static function shortForLong($long) {
     return substr($long, 0, 2);
   }
+
 }
index f8fb5ed044914ef1fa27382d88e7001a155f1646..d13b06fae6b2f9a46766aca522794e777a83db6e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -613,4 +613,5 @@ class CRM_Core_I18n_Schema {
       );
     }
   }
+
 }
index ea05322b81079f0d4712ee414989ac44475c6924..92dca226ac6ccef5a85947bf05ca64d71ecde5b6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -65,4 +65,5 @@ class CRM_Core_I18n_SchemaStructure_2_2_0 {
     }
     return $result;
   }
+
 }
index cb8796712641fe007f221cd58a409936ef197e99..42f7c424ae06dc2c4644c87aa2510f3732fce29c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -247,4 +247,5 @@ class CRM_Core_I18n_SchemaStructure_3_0_alpha1 {
     }
     return $result;
   }
+
 }
index 23f8f1473c0281884f5f9d3ec7495ca22d2a4963..1e8961ae03723d259ada5a8b50f0a105c1b568a0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -263,4 +263,5 @@ class CRM_Core_I18n_SchemaStructure_3_0_beta1 {
     }
     return $result;
   }
+
 }
index c3c461ba38a34a8f31ee5708adb848faac2797d4..c5a2e12e93222e184cb6d2dc7b395e2f93f566e9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -276,4 +276,5 @@ class CRM_Core_I18n_SchemaStructure_3_0_beta4 {
     }
     return $result;
   }
+
 }
index 3ac06772d4d3a7f9d68bbb2fea1f1b1712d33254..d9aa26a9cd2c5bce5a215cc1794dc81a3c789681 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -280,4 +280,5 @@ class CRM_Core_I18n_SchemaStructure_3_1_alpha1 {
     }
     return $result;
   }
+
 }
index 80491ff32c7d730335a4e3fb515f8d59e2fac11d..e51ca82c0bbac04e8cbc5ff5cfd41b82c4f3a084 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -283,4 +283,5 @@ class CRM_Core_I18n_SchemaStructure_3_1_beta2 {
     }
     return $result;
   }
+
 }
index 521957808fc0e2b834f56f96faa330293f69ccdd..1e8f8d89a1bb0b3500e899a02025e3101a5ebbb9 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -284,4 +284,5 @@ class CRM_Core_I18n_SchemaStructure_3_2_beta4 {
     }
     return $result;
   }
+
 }
index 02b88a9b20af8fe4b1a5a3748e2ea48814dae60f..f5406dfbd656ae91794a9901f2e3dc9fd9c52b09 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -292,4 +292,5 @@ class CRM_Core_I18n_SchemaStructure_3_3_beta1 {
     }
     return $result;
   }
+
 }
index d3a6c0a1c0b37a1c82358e57628295eba39d4897..eea773ebe6be505887f5672ecee9a90c8ac0120e 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -219,4 +219,5 @@ class CRM_Core_I18n_SchemaStructure_3_4_0 {
     }
     return $result;
   }
+
 }
index becada7b46f6f6351dc778c5182c82a6149f9674..46f235b232b39ff5f948d5dfaadd2d4af7747674 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -292,4 +292,5 @@ class CRM_Core_I18n_SchemaStructure_3_4_beta2 {
     }
     return $result;
   }
+
 }
index 2271d79be862b73c923b927e9e42429ea55d7363..743a1f1c68d7a297fa83332c7b2a8c4cbf262ca5 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -219,4 +219,5 @@ class CRM_Core_I18n_SchemaStructure_3_4_beta3 {
     }
     return $result;
   }
+
 }
index 6cc6eba061c485a768871ad9314772adb64c3559..1281d56a7970680ebb65676b342edca2cc6845db 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -225,4 +225,5 @@ class CRM_Core_I18n_SchemaStructure_4_1_0 {
     }
     return $result;
   }
+
 }
index 08654052c3abeddfadc5357ca85659f632b68d19..726a9a6791a2b76e2df7919fad1316aafbd42bce 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -222,4 +222,5 @@ class CRM_Core_I18n_SchemaStructure_4_1_alpha1 {
     }
     return $result;
   }
+
 }
index ce3981009827c0df4f6296c4f28658e8426f9395..449db2f3082c11d43bd54f5cd8c915fc821dc8c9 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -232,4 +232,5 @@ class CRM_Core_I18n_SchemaStructure_4_2_alpha1 {
     }
     return $result;
   }
+
 }
index 0587fa208526036ae52a73f290830768d3ff7b64..f56ea6222cf6af0ba4c4cc5baa74d634199258e6 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -237,4 +237,5 @@ class CRM_Core_I18n_SchemaStructure_4_3_1 {
     }
     return $result;
   }
+
 }
index 7eaeaad7d2400168d3303131864c462d845384d8..0ce4ff2976176cdf064ae60f4119aa64abb53e14 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -238,4 +238,5 @@ class CRM_Core_I18n_SchemaStructure_4_5_alpha1 {
     }
     return $result;
   }
+
 }
index fcba447e5ce4bf1b0190f799f894d47f94efc727..50aab894e6e5fe29ed8fac3962073a63c4b50d49 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -233,4 +233,5 @@ class CRM_Core_I18n_SchemaStructure_4_5_beta2 {
     }
     return $result;
   }
+
 }
index 5b5bb44b694c19545f7e8a6bddefc44bded31bdb..a66d6843f3cd0f6717f259274b95b40dc834b534 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -215,7 +215,7 @@ class CRM_Core_IDS {
     $ip = (isset($_SERVER['SERVER_ADDR']) &&
       $_SERVER['SERVER_ADDR'] != '127.0.0.1') ? $_SERVER['SERVER_ADDR'] : (
       isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : '127.0.0.1'
-    );
+      );
 
     $data = array();
     $session = CRM_Core_Session::singleton();
@@ -272,4 +272,5 @@ class CRM_Core_IDS {
     }
     CRM_Core_Error::fatal($msg);
   }
+
 }
index eb5f60a02aa5843ea2699d6649105e446292dd71..5b0dafa38178a47eccfcd540a65395c7de988914 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * The InnoDB indexer is responsible for creating and destroying
@@ -278,4 +278,5 @@ class CRM_Core_InnoDBIndexer {
   public function getActive() {
     return $this->isActive;
   }
+
 }
index b1da8497d374c0120c4639feaa98c9fbb178b765..1054c9493196bb7ed1de1b7cd80f5a606cfd0c9f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -397,4 +397,5 @@ class CRM_Core_Invoke {
     CRM_Core_DAO_AllCoreTables::reinitializeCache(TRUE);
     CRM_Core_ManagedEntities::singleton(TRUE)->reconcile();
   }
+
 }
index 6a95b94c5f23d1eeb7377285e42925b5a85e4c28..5d77cc3df92920edfc471cdc4ca5d78b9b47b622 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This interface defines methods that need to be implemented
@@ -255,6 +255,7 @@ class CRM_Core_JobManager {
     $message = $apiResult['is_error'] ? ', Error message: ' . $msg : " (" . $vals . ")";
     return $status . $message;
   }
+
 }
 
 /**
index f8a0d50c768bb293b3d7cecf575b7b94fdb103f6..a4bd717b4df7039fb49ca5e07cc2451460951299 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -71,4 +71,5 @@ class CRM_Core_Joomla {
     $sidebarLeft = $template->fetch('CRM/Block/blocks.tpl');
     $template->assign_by_ref('sidebarLeft', $sidebarLeft);
   }
+
 }
index 0076431be7570549853e612fe3aebbdb1c6901cb..5978833ca7bf9f67df5eb0bfbd972319f76c57d0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -153,4 +153,5 @@ class CRM_Core_Key {
     // ensure that hash is a 32 digit hex number
     return preg_match('#[0-9a-f]{32}#i', $hash) ? TRUE : FALSE;
   }
+
 }
index 2bde33175231a8e8f16fa3f056b27b454f0219a3..215d39490a7f0b4203d99c8f031c01756c9d78ae 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -160,4 +160,5 @@ class CRM_Core_Lock {
     $this->_hasLock = TRUE;
     return TRUE;
   }
+
 }
index b19c280016b9b03750765181101e5daa0463ba0c..67e31b332ce4e646b8c5f64d64faa0714b42e43c 100644 (file)
@@ -414,4 +414,5 @@ class CRM_Core_ManagedEntities {
     ));
     throw new Exception('API error: ' . $result['error_message']);
   }
+
 }
index 93288ee3ca6b08ecd7e9288abd5dc72964a40901..59359e353fbe18e2edffe8ac8044f68bf6acd3f6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This file contains the various menus of the CiviCRM module
@@ -745,4 +745,5 @@ UNION (
     }
     return $arr;
   }
+
 }
index 18806ed9ee521d57fe86515fe7bef5bc0171302a..ca379d1751073aa4651878c6e624757fac61e5c6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * A module is any software package that participates in the hook
@@ -72,4 +72,5 @@ class CRM_Core_Module {
     }
     return $result;
   }
+
 }
index 596450b398456d742896ed6f1e3ec062f351590b..b43c2fe6a2dabdbf3f343a200319da1fa742b8ca 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -54,7 +54,7 @@ class CRM_Core_OptionGroup {
    *
    * @return array
    */
-  static function &valuesCommon(
+  public static function &valuesCommon(
     $dao, $flip = FALSE, $grouping = FALSE,
     $localize = FALSE, $valueColumnName = 'label'
   ) {
@@ -115,7 +115,7 @@ class CRM_Core_OptionGroup {
    *   the values as specified by the above params
    * @void
    */
-  static function &values(
+  public static function &values(
     $name, $flip = FALSE, $grouping = FALSE,
     $localize = FALSE, $condition = NULL,
     $labelColumnName = 'label', $onlyActive = TRUE, $fresh = FALSE, $keyColumnName = 'value'
@@ -374,7 +374,7 @@ WHERE  v.option_group_id = g.id
    *
    * @return null
    */
-  static function getValue(
+  public static function getValue(
     $groupName,
     $label,
     $labelField = 'label',
@@ -594,7 +594,7 @@ SELECT v.label
    *
    * @return array
    */
-  static function getRowValues(
+  public static function getRowValues(
     $groupName, $fieldValue, $field = 'name',
     $fieldType = 'String', $active = TRUE
   ) {
@@ -626,7 +626,7 @@ WHERE  v.option_group_id = g.id
                  'value',
                  'label',
                  'weight',
-                 'description'
+                 'description',
                ) as $fld) {
         $row[$fld] = $dao->$fld;
       }
@@ -683,4 +683,5 @@ WHERE  v.option_group_id = g.id
     self::$_cache = array();
     CRM_Utils_Cache::singleton()->flush();
   }
+
 }
index e8627b24184a90b50e9ef4109d1023bab2c76a17..c7d695510cdf2995ada0c4ec7544d4c06be45c9c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -60,10 +60,10 @@ class CRM_Core_OptionValue {
    *
    * @param array $groupParams
    *   Array containing group fields whose option-values is to retrieved.
-   * @param string $orderBy
-   *   For orderBy clause.
    * @param array $links
    *   Has links like edit, delete, disable ..etc.
+   * @param string $orderBy
+   *   For orderBy clause.
    *
    * @return array
    *   Array of option-values
@@ -176,7 +176,7 @@ class CRM_Core_OptionValue {
    * @param array $groupParams
    *   Array containing group fields whose option-values is to retrieved/saved.
    * @param $action
-   * @param int $optionValueIDHas the id of the optionValue being edited, disabled ..etc.
+   * @param int $optionValueID Has the id of the optionValue being edited, disabled ..etc.
    *   Has the id of the optionValue being edited, disabled ..etc.
    *
    * @return CRM_Core_DAO_OptionValue
@@ -214,7 +214,7 @@ class CRM_Core_OptionValue {
       $fieldValues = array('option_group_id' => $optionGroupID);
       // use the next available value
       /* CONVERT(value, DECIMAL) is used to convert varchar
-               field 'value' to decimal->integer                    */
+      field 'value' to decimal->integer                    */
 
       $params['value'] = (int) CRM_Utils_Weight::getDefaultWeight('CRM_Core_DAO_OptionValue',
         $fieldValues,
@@ -250,7 +250,7 @@ class CRM_Core_OptionValue {
    * @param string $fieldName
    *   The name of the field in the DAO.
    *
-   * @return boolean
+   * @return bool
    *   true if object exists
    */
   public static function optionExists($value, $daoName, $daoID, $optionGroupID, $fieldName = 'name') {
@@ -272,7 +272,7 @@ class CRM_Core_OptionValue {
    * @param string $mode
    * @param string $contactType
    *
-   * @return boolean
+   * @return bool
    *   true if object exists
    */
   public static function getFields($mode = '', $contactType = 'Individual') {
@@ -303,7 +303,7 @@ class CRM_Core_OptionValue {
           'Individual',
           'Household',
           'Organization',
-          'All'
+          'All',
         ))) {
           $nameTitle = array(
             'addressee' => array(
@@ -381,8 +381,7 @@ class CRM_Core_OptionValue {
    * @param string $orderBy
    *   For orderBy clause.
    *
-   * @param bool $isActiveDo you want only active option values?.
-   *   Do you want only active option values?.
+   * @param bool $isActive Do you want only active option values?
    *
    * @return array
    *   Array of option-values
@@ -455,4 +454,5 @@ FROM
       );
     }
   }
+
 }
index d35d792434ad44e9e3ba1aa40432a038bd2068a5..0274cacb182ba3594822fe8587fdcdb757333e9b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -162,12 +162,15 @@ class CRM_Core_Page {
 
   /**
    * This function takes care of all the things common to all
-   * pages. This typically involves assigning the appropriate
-   * smarty variable :)
+   * pages. This typically involves assigning the appropriate smarty
+   * variable :)
+   *
+   * @return void|string
+   *   The content generated by running this page
    */
   public function run() {
     if ($this->_embedded) {
-      return;
+      return NULL;
     }
 
     self::$_template->assign('mode', $this->_mode);
@@ -183,7 +186,7 @@ class CRM_Core_Page {
         CRM_Core_Smarty::PRINT_SNIPPET,
         CRM_Core_Smarty::PRINT_PDF,
         CRM_Core_Smarty::PRINT_NOFORM,
-        CRM_Core_Smarty::PRINT_JSON
+        CRM_Core_Smarty::PRINT_JSON,
       ))) {
         $content = self::$_template->fetch('CRM/common/snippet.tpl');
       }
@@ -258,8 +261,7 @@ class CRM_Core_Page {
   /**
    * Get the variable from the form scope
    *
-   * @param string name : name of the variable
-   *
+   * @param string $name name of the variable
    *
    * @return mixed
    */
@@ -372,7 +374,7 @@ class CRM_Core_Page {
   /**
    * Getter for embedded
    *
-   * @return boolean
+   * @return bool
    *   return the embedded value
    */
   public function getEmbedded() {
@@ -393,7 +395,7 @@ class CRM_Core_Page {
   /**
    * Getter for print
    *
-   * @return boolean
+   * @return bool
    *   return the print value
    */
   public function getPrint() {
@@ -423,4 +425,5 @@ class CRM_Core_Page {
   public function setVar($name, $value) {
     $this->$name = $value;
   }
+
 }
index af7ae6613a403866019baf89d540ae0ae45fa45d..b344808e36171fb644f744a075325f1c09a19b1e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -233,4 +233,5 @@ class CRM_Core_Page_AJAX {
     }
     CRM_Utils_System::civiExit();
   }
+
 }
index 158d7b67d825930fbe066a3e7b68ca1d7aac1959..23adab39c8fcc1fa5f5d1f53de93301d86d41722 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * CRM_Core_Page_AJAX_Attachment defines an end-point for AJAX operations which upload file-attachments.
@@ -177,4 +177,5 @@ class CRM_Core_Page_AJAX_Attachment {
       'ts' => $ts,
     ));
   }
+
 }
index 6dba0c1470148930d31638d294840951536151e2..00de0e1938aa200676edf8dd07f9b217ef7422e8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -229,13 +229,13 @@ class CRM_Core_Page_AJAX_Location {
     foreach ($addressOptions as $element => $isSet) {
       if ($isSet && (!in_array($element, array(
           'im',
-          'openid'
+          'openid',
         )))
       ) {
         if (in_array($element, array(
           'country',
           'state_province',
-          'county'
+          'county',
         ))) {
           $element .= '_id';
         }
@@ -248,7 +248,7 @@ class CRM_Core_Page_AJAX_Location {
         $result[str_replace(array(
           '][',
           '[',
-          "]"
+          "]",
         ), array('_', '_', ''), $fld)] = $value;
       }
     }
@@ -256,7 +256,7 @@ class CRM_Core_Page_AJAX_Location {
     foreach (array(
                'email',
                'phone_type_id',
-               'phone'
+               'phone',
              ) as $element) {
       $block = ($element == 'phone_type_id') ? 'phone' : $element;
       for ($i = 1; $i < 3; $i++) {
@@ -266,7 +266,7 @@ class CRM_Core_Page_AJAX_Location {
         $result[str_replace(array(
           '][',
           '[',
-          "]"
+          "]",
         ), array('_', '_', ''), $fld)] = $value;
       }
     }
@@ -276,4 +276,5 @@ class CRM_Core_Page_AJAX_Location {
 
     CRM_Utils_JSON::output($result);
   }
+
 }
index b3547c317823668cf9522d86d483d2d182ce4917..f4fb03dfc926652ef21d0cd11b6760cd98d5c154 100644 (file)
@@ -113,4 +113,5 @@ class CRM_Core_Page_AJAX_RecurringEntity {
     echo json_encode($result);
     CRM_Utils_System::civiExit();
   }
+
 }
index 62fea0f40c2bc1fcbe1dbfecb2e6c700a6cf2fc9..a9a633a56b03357e78050890f5124a765d6119d7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -394,4 +394,5 @@ abstract class CRM_Core_Page_Basic extends CRM_Core_Page {
     $controller->process();
     $controller->run();
   }
+
 }
index 3803a611238bdad6fd04a9453478a164d1a2f259..98ed8e3a8a50934291d8af138ba4a56df7ee3db2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -69,4 +69,5 @@ class CRM_Core_Page_File extends CRM_Core_Page {
       );
     }
   }
+
 }
index 4bab317910f12b25903fd1c1d277739f1663df7b..14e9eabcdd4ea34b692e7fdad3b6e72de5634c48 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @package CRM
@@ -59,4 +59,5 @@ class CRM_Core_Page_Inline_Help {
       exit($smarty->fetch($file) . $extraoutput);
     }
   }
+
 }
index 5b2ba6b60efa90e36e0ea7309c57730204543998..f58aae5444251619c13fc3a80dbd89c343743152 100644 (file)
@@ -68,4 +68,5 @@ class CRM_Core_Page_QUnit extends CRM_Core_Page {
       return array(NULL, NULL);
     }
   }
+
 }
index 9883bfcd8504d10c623c4710b1a8a56434796c6b..f5f484e708ec0cd1b5ef78c6da3ff2c2cf8362bf 100644 (file)
@@ -56,4 +56,5 @@ class CRM_Core_Page_Redirect extends CRM_Core_Page {
 
     return $url;
   }
+
 }
index 97f9417ae3d9fbc9c1b4829584808541f6c94a95..187f1c67eaf28d8d026647935b93c35f77f16a3d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 use Civi\Payment\System;
 
@@ -671,4 +671,5 @@ INNER JOIN civicrm_contribution con ON ( con.contribution_recur_id = rec.id )
     // Else default
     return $this->_paymentProcessor['url_recur'];
   }
+
 }
index da729de70aa9181feed267aeae18709bd3b34b3e..efbaa0d1491878f517f0c658a6b953a772700d40 100644 (file)
@@ -795,4 +795,5 @@ class CRM_Core_Payment_AuthorizeNet extends CRM_Core_Payment {
     }
     return TRUE;
   }
+
 }
index 5e3012bfbfc3cccb79180d26dbebd3f1ef5c1a29..b794d2f66ed2c4b0114498fcd734369f4b413ce6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -346,4 +346,5 @@ INNER JOIN civicrm_membership_payment mp ON m.id = mp.membership_id AND mp.contr
     }
     return TRUE;
   }
+
 }
index c3e89e9fda5acc24d1d41a25018f847cf6133f4f..f461bf693b3f130c2a03486eb61c80b4a45f999e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -86,7 +86,7 @@ class CRM_Core_Payment_BaseIPN {
    *   Boolean Return FALSE if the relevant objects don't exist.
    * @param int $paymentProcessorID
    *   Id of the payment processor ID in use.
-   * @return boolean
+   * @return bool
    */
   public function validateData(&$input, &$ids, &$objects, $required = TRUE, $paymentProcessorID = NULL) {
 
@@ -135,7 +135,7 @@ class CRM_Core_Payment_BaseIPN {
    * @param int $paymentProcessorID
    * @param array $error_handling
    *
-   * @return boolean
+   * @return bool
    */
   public function loadObjects(&$input, &$ids, &$objects, $required, $paymentProcessorID, $error_handling = NULL) {
     if (empty($error_handling)) {
@@ -167,7 +167,7 @@ class CRM_Core_Payment_BaseIPN {
         CRM_Core_Error::debug_log_message($e->getMessage());
       }
       if (!empty($error_handling['echo_error'])) {
-        echo($e->getMessage());
+        echo $e->getMessage();
       }
       if (!empty($error_handling['return_error'])) {
         return array(
@@ -185,7 +185,7 @@ class CRM_Core_Payment_BaseIPN {
    * @param array $objects
    * @param object $transaction
    * @param array $input
-   * @return boolean
+   * @return bool
    */
   public function failed(&$objects, &$transaction, $input = array()) {
     $contribution = &$objects['contribution'];
@@ -206,7 +206,7 @@ class CRM_Core_Payment_BaseIPN {
     //CRM-15546
     $contributionStatuses = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution', 'contribution_status_id', array(
         'labelColumn' => 'name',
-        'flip' => 1
+        'flip' => 1,
       ));
     $contribution->receive_date = CRM_Utils_Date::isoToMysql($contribution->receive_date);
     $contribution->receipt_date = CRM_Utils_Date::isoToMysql($contribution->receipt_date);
@@ -231,7 +231,7 @@ class CRM_Core_Payment_BaseIPN {
         // if transaction is failed then set "Cancelled" as membership status
         $membershipStatuses = CRM_Core_PseudoConstant::get('CRM_Member_DAO_Membership', 'status_id', array(
             'labelColumn' => 'name',
-            'flip' => 1
+            'flip' => 1,
           ));
         foreach ($memberships as $membership) {
           if ($membership) {
@@ -248,7 +248,7 @@ class CRM_Core_Payment_BaseIPN {
       if ($participant) {
         $participantStatuses = CRM_Core_PseudoConstant::get('CRM_Event_DAO_Participant', 'status_id', array(
             'labelColumn' => 'name',
-            'flip' => 1
+            'flip' => 1,
           ));
         $participant->status_id = $participantStatuses['Cancelled'];
         $participant->save();
@@ -265,7 +265,7 @@ class CRM_Core_Payment_BaseIPN {
    * Handled pending contribution status
    * @param array $objects
    * @param object $transaction
-   * @return boolean
+   * @return bool
    */
   public function pending(&$objects, &$transaction) {
     $transaction->commit();
@@ -295,7 +295,7 @@ class CRM_Core_Payment_BaseIPN {
     }
     $contributionStatuses = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution', 'contribution_status_id', array(
         'labelColumn' => 'name',
-        'flip' => 1
+        'flip' => 1,
       ));
     $contribution->contribution_status_id = $contributionStatuses['Cancelled'];
     $contribution->cancel_date = self::$_now;
@@ -321,7 +321,7 @@ class CRM_Core_Payment_BaseIPN {
       if (!empty($memberships)) {
         $membershipStatuses = CRM_Core_PseudoConstant::get('CRM_Member_DAO_Membership', 'status_id', array(
             'labelColumn' => 'name',
-            'flip' => 1
+            'flip' => 1,
           ));
         foreach ($memberships as $membership) {
           if ($membership) {
@@ -338,7 +338,7 @@ class CRM_Core_Payment_BaseIPN {
       if ($participant) {
         $participantStatuses = CRM_Core_PseudoConstant::get('CRM_Event_DAO_Participant', 'status_id', array(
             'labelColumn' => 'name',
-            'flip' => 1
+            'flip' => 1,
           ));
         $participant->status_id = $participantStatuses['Cancelled'];
         $participant->save();
@@ -429,7 +429,7 @@ FROM      civicrm_membership_log
 WHERE     membership_id=$membership->id
 ORDER BY  id DESC
 LIMIT 1;";
-            $dao = new CRM_Core_DAO;
+            $dao = new CRM_Core_DAO();
             $dao->query($sql);
             if ($dao->fetch()) {
               if (!empty($dao->membership_type_id)) {
@@ -558,7 +558,7 @@ LIMIT 1;";
       if (empty($input['skipComponentSync'])) {
         $participantStatuses = CRM_Core_PseudoConstant::get('CRM_Event_DAO_Participant', 'status_id', array(
             'labelColumn' => 'name',
-            'flip' => 1
+            'flip' => 1,
           ));
         $participant->status_id = $participantStatuses['Registered'];
       }
@@ -576,7 +576,7 @@ LIMIT 1;";
     }
     $contributionStatuses = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution', 'contribution_status_id', array(
         'labelColumn' => 'name',
-        'flip' => 1
+        'flip' => 1,
       ));
     $contribution->contribution_status_id = $contributionStatuses['Completed'];
     $contribution->is_test = $input['is_test'];
@@ -642,7 +642,7 @@ LIMIT 1;";
     if ($contribution->id) {
       $contributionStatuses = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution', 'contribution_status_id', array(
           'labelColumn' => 'name',
-          'flip' => 1
+          'flip' => 1,
         ));
       if ((empty($input['prevContribution']) && $paymentProcessorId) || (!$input['prevContribution']->is_pay_later && $input['prevContribution']->contribution_status_id == $contributionStatuses['Pending'])) {
         $input['payment_processor'] = $paymentProcessorId;
@@ -792,7 +792,7 @@ LIMIT 1;";
    * it is unclear whether it is a function on the way in or on the way out
    *
    * @param array $params
-   * @return void|int
+   * @return void|NULL|int
    */
   public function updateContributionStatus(&$params) {
     // get minimum required values.
@@ -802,7 +802,7 @@ LIMIT 1;";
     $contributionId = CRM_Utils_Array::value('contribution_id', $params);
 
     if (!$contributionId || !$componentId || !$componentName || !$statusId) {
-      return;
+      return NULL;
     }
 
     $input = $ids = $objects = array();
@@ -852,7 +852,7 @@ LIMIT 1;";
 
     $contributionStatuses = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution', 'contribution_status_id', array(
         'labelColumn' => 'name',
-        'flip' => 1
+        'flip' => 1,
       ));
     $input['skipComponentSync'] = CRM_Utils_Array::value('skipComponentSync', $params);
     if ($statusId == $contributionStatuses['Cancelled']) {
@@ -876,7 +876,7 @@ LIMIT 1;";
     foreach (array(
                'fee_amount',
                'check_number',
-               'payment_instrument_id'
+               'payment_instrument_id',
              ) as $field) {
       if (!$input[$field] = CRM_Utils_Array::value($field, $params)) {
         $input[$field] = $contribution->$field;
@@ -1000,7 +1000,7 @@ LIMIT 1;";
           try {
             civicrm_api3('membership_payment', 'create', array(
                 'membership_id' => $value['entity_id'],
-                'contribution_id' => $contribution->id
+                'contribution_id' => $contribution->id,
               ));
           }
           catch (CiviCRM_API3_Exception $e) {
@@ -1080,4 +1080,5 @@ LIMIT 1;";
       $soft_contribution->save();
     }
   }
+
 }
index 7d7b10a65bb481d6b48dc04140ed7cd1bd36869c..90fb06e5347be3034cd1b642bc0f72504d241c9e 100644 (file)
@@ -140,4 +140,5 @@ class CRM_Core_Payment_Dummy extends CRM_Core_Payment {
   public function checkConfig() {
     return NULL;
   }
+
 }
index 0587c681d6a6530fed4e257870a273d8c81ccf2b..493bfec62c5b5a60049b4f4475695e9464fdf0ae 100644 (file)
@@ -7,7 +7,7 @@
  |                                                                            |
  | Written & Contributed by Eileen McNaughton - Nov March 2008                |
  +----------------------------------------------------------------------------+
-*/
+ */
 
 /**
  * -----------------------------------------------------------------------------------------------
@@ -441,4 +441,5 @@ class CRM_Core_Payment_Elavon extends CRM_Core_Payment {
 
     return $processorResponse;
   }
+
 }
index 089838d49e7cea29ad90b0fdf5b83f68a797ad67..7ca813f6c47fc9e3044e638ac3e4dd788322fd9d 100644 (file)
@@ -12,7 +12,7 @@
  |                                                                    |
  |                                                                    |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Note that in order to use FirstData / LinkPoint you need a certificate (.pem) file issued by them
@@ -87,7 +87,7 @@ class CRM_Core_Payment_FirstData extends CRM_Core_Payment {
    */
   public function mapProcessorFieldstoParams($params) {
     /*concatenate full customer name first  - code from EWAY gateway
-         */
+     */
 
     $credit_card_name = $params['first_name'] . " ";
     if (strlen($params['middle_name']) > 0) {
@@ -187,9 +187,9 @@ class CRM_Core_Payment_FirstData extends CRM_Core_Payment {
     $requestxml = lphp::buildXML($requestFields);
 
     /*----------------------------------------------------------------------------------------------------
-         // Send to the payment information using cURL
-         /----------------------------------------------------------------------------------------------------
-        */
+    // Send to the payment information using cURL
+    /----------------------------------------------------------------------------------------------------
+     */
 
     $ch = curl_init($host);
     if (!$ch) {
@@ -369,5 +369,6 @@ class CRM_Core_Payment_FirstData extends CRM_Core_Payment {
       return NULL;
     }
   }
+
 }
 // end class CRM_Core_Payment_FirstData
index 6b7b5c4e3900eb04d297bb36ae634a422338f35b..78d5413742972070d3780047ae6f33a235c4deea 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -426,4 +426,5 @@ class CRM_Core_Payment_Form {
   public static function getCreditCardExpirationYear($src) {
     return CRM_Utils_Array::value('Y', $src['credit_card_exp_date']);
   }
+
 }
index b06247a73775097ec5bd5d7c4d26e34559380f1b..61d3e3863a4e5677aacef15e41a309ce4bdf9de9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -436,4 +436,5 @@ class CRM_Core_Payment_Google extends CRM_Core_Payment {
     }
     return TRUE;
   }
+
 }
index 16c5d6633cf5e3eafb738dec24a35ddf4dd1b29b..61ae8c1671a23ebabf10a04cb5b3990cba1ce5f3 100644 (file)
@@ -224,8 +224,8 @@ class CRM_Core_Payment_GoogleIPN extends CRM_Core_Payment_BaseIPN {
     }
     else {
       /* Since trxn_id hasn't got any use here,
-             * lets make use of it by passing the eventID/membershipTypeID to next level.
-             * And change trxn_id to google-order-number before finishing db update */
+       * lets make use of it by passing the eventID/membershipTypeID to next level.
+       * And change trxn_id to google-order-number before finishing db update */
 
       if (!empty($ids['event'])) {
         $contribution->trxn_id = $ids['event'] . CRM_Core_DAO::VALUE_SEPARATOR . $ids['participant'];
@@ -700,4 +700,5 @@ WHERE  contribution_recur_id = {$ids['contributionRecur']}
     }
     return $vars;
   }
+
 }
index 3336c2035cba3e7f89179f2a2608f09b64c2998e..f71d842c14a67a0debd142be157145a59e9a7a79 100644 (file)
@@ -23,7 +23,7 @@
  | Affero General Public License or the licensing  of CiviCRM,        |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -345,4 +345,5 @@ class CRM_Core_Payment_IATS extends CRM_Core_Payment {
       return NULL;
     }
   }
+
 }
index ff00ca429a6c991442515832aecf2f550ec0652e..91913752a63d32063787cc54695629d80518a6ed 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -98,11 +98,11 @@ class CRM_Core_Payment_Moneris extends CRM_Core_Payment {
       return self::error('Invalid currency selection, must be $CAD');
     }
     /* unused params: cvv not yet implemented, payment action ingored (should test for 'Sale' value?)
-        [cvv2] => 000
-        [ip_address] => 192.168.0.103
-        [payment_action] => Sale
-        [contact_type] => Individual
-        [geo_coord_id] => 1 */
+    [cvv2] => 000
+    [ip_address] => 192.168.0.103
+    [payment_action] => Sale
+    [contact_type] => Individual
+    [geo_coord_id] => 1 */
 
     //this code based on Moneris example code #
     //create an mpgCustInfo object
@@ -333,4 +333,5 @@ class CRM_Core_Payment_Moneris extends CRM_Core_Payment {
       return NULL;
     }
   }
+
 }
index 3b8423a28e94cde3e284e57520dc0016e072f372..8771a1d8f6a8b22dcf9aab82a79bc25f780beaa5 100644 (file)
@@ -283,5 +283,6 @@ class CRM_Core_Payment_PayJunction extends CRM_Core_Payment {
       return NULL;
     }
   }
+
 }
 // end class CRM_Core_Payment_PayJunction
index 635adf86299b9c92a8f4b1e09ed02b9cd9be5a8b..d8c26ec843cca460ac5be599d976234ee933edb0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -226,7 +226,7 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
    * @param bool $recur
    * @param bool $first
    */
-  function single(
+  public function single(
     &$input, &$ids, &$objects,
     $recur = FALSE,
     $first = FALSE
@@ -374,4 +374,5 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
     $input['net_amount'] = self::retrieve('settle_amount', 'Money', 'POST', FALSE);
     $input['trxn_id'] = self::retrieve('txn_id', 'String', 'POST', FALSE);
   }
+
 }
index 978bc514edf02178bf44ec4a660328480a1c4df4..4a3be6df748f5a97f7715518d80d2a55f8a99ab1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -248,8 +248,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
     //$args['desc']           = 'Recurring Contribution';
     $args['totalbillingcycles'] = $params['installments'];
     $args['version'] = '56.0';
-    $args['profilereference'] =
-      "i={$params['invoiceID']}" .
+    $args['profilereference'] = "i={$params['invoiceID']}" .
       "&m=$component" .
       "&c={$params['contactID']}" .
       "&r={$params['contributionRecurID']}" .
@@ -335,7 +334,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
       $args['billingfrequency'] = $params['frequency_interval'];
       $args['method'] = "CreateRecurringPaymentsProfile";
       $args['profilestartdate'] = $start_date;
-      $args['desc'] =
+      $args['desc'] = "" .
         $params['description'] . ": " .
         $params['amount'] . " Per " .
         $params['frequency_interval'] . " " .
@@ -343,7 +342,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
       $args['amt'] = $params['amount'];
       $args['totalbillingcycles'] = $params['installments'];
       $args['version'] = 56.0;
-      $args['PROFILEREFERENCE'] =
+      $args['PROFILEREFERENCE'] = "" .
         "i=" . $params['invoiceID'] . "&m=" . $component .
         "&c=" . $params['contactID'] . "&r=" . $params['contributionRecurID'] .
         "&b=" . $params['contributionID'] . "&p=" . $params['contributionPageID'];
@@ -426,7 +425,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
    * @param string $method
    *   Method to check for.
    *
-   * @return boolean
+   * @return bool
    */
   public function isSupported($method = 'cancelSubscription') {
     if ($this->_paymentProcessor['payment_processor_type'] != 'PayPal') {
@@ -774,7 +773,8 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
     return $result;
   }
 
-  /** This function will take NVPString and convert it to an Associative Array and it will decode the response.
+  /**
+   * This function will take NVPString and convert it to an Associative Array and it will decode the response.
    * It is usefull to search for a particular key and displaying arrays.
    * @nvpstr is NVPString.
    * @nvpArray is Associative Array.
@@ -801,4 +801,5 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
 
     return $result;
   }
+
 }
index b00c4fbe5d12d1068f65a001a3f53d37d7ba640b..2e433b95f0c37afb2391a881d9d08441b5eaaf6d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -206,17 +206,17 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN {
     $subscriptionPaymentStatus = NULL;
     //List of Transaction Type
     /*
-         recurring_payment_profile_created          RP Profile Created
-         recurring_payment           RP Sucessful Payment
-         recurring_payment_failed                               RP Failed Payment
-         recurring_payment_profile_cancel           RP Profile Cancelled
-         recurring_payment_expired         RP Profile Expired
-         recurring_payment_skipped        RP Profile Skipped
-         recurring_payment_outstanding_payment      RP Sucessful Outstanding Payment
-         recurring_payment_outstanding_payment_failed          RP Failed Outstanding Payment
-         recurring_payment_suspended        RP Profile Suspended
-         recurring_payment_suspended_due_to_max_failed_payment  RP Profile Suspended due to Max Failed Payment
-        */
+    recurring_payment_profile_created          RP Profile Created
+    recurring_payment           RP Sucessful Payment
+    recurring_payment_failed                               RP Failed Payment
+    recurring_payment_profile_cancel           RP Profile Cancelled
+    recurring_payment_expired         RP Profile Expired
+    recurring_payment_skipped        RP Profile Skipped
+    recurring_payment_outstanding_payment      RP Sucessful Outstanding Payment
+    recurring_payment_outstanding_payment_failed          RP Failed Outstanding Payment
+    recurring_payment_suspended        RP Profile Suspended
+    recurring_payment_suspended_due_to_max_failed_payment  RP Profile Suspended due to Max Failed Payment
+     */
 
     //set transaction type
     $txnType = $this->retrieve('txn_type', 'String');
@@ -589,4 +589,5 @@ INNER JOIN civicrm_membership_payment mp ON m.id = mp.membership_id AND mp.contr
       return TRUE;
     }
   }
+
 }
index b0e8ec19bb15bb7f99bf2e87312d53e43c8c5ab3..245caacce6c90dc5d153eadb645e2cc8cd596e77 100644 (file)
@@ -288,16 +288,16 @@ class CRM_Core_Payment_PayflowPro extends CRM_Core_Payment {
     // get the result code to validate.
     $result_code = $nvpArray['RESULT'];
     /*debug
-      echo "<p>Params array</p><br>";
-      print_r($params);
-      echo "<p></p><br>";
-      echo "<p>Values to Payment Processor</p><br>";
-      print_r($payflow_query_array);
-      echo "<p></p><br>";
-      echo "<p>Results from Payment Processor</p><br>";
-      print_r($nvpArray);
-      echo "<p></p><br>";
-    */
+    echo "<p>Params array</p><br>";
+    print_r($params);
+    echo "<p></p><br>";
+    echo "<p>Values to Payment Processor</p><br>";
+    print_r($payflow_query_array);
+    echo "<p></p><br>";
+    echo "<p>Results from Payment Processor</p><br>";
+    print_r($nvpArray);
+    echo "<p></p><br>";
+     */
 
     switch ($result_code) {
       case 0:
@@ -684,4 +684,5 @@ class CRM_Core_Payment_PayflowPro extends CRM_Core_Payment {
     //RESPMSG=Invalid Profile ID: Invalid recurring profile ID
     //RT0000000001
   }
+
 }
index 7b181db47f369d0324cd3cee623c095fb717763d..0aba51b29e4777db47bb73386d5aea5a4ec622b0 100644 (file)
@@ -21,7 +21,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
@@ -128,10 +128,6 @@ class CRM_Core_Payment_PaymentExpress extends CRM_Core_Payment {
    *
    * @param array $params
    *   Assoc array of input parameters for this transaction.
-   *
-   * @return array
-   *   the result in an nice formatted array (or an error object)
-   * @abstract
    */
   public function doDirectPayment(&$params) {
     CRM_Core_Error::fatal(ts('This function is not implemented'));
@@ -274,4 +270,5 @@ class CRM_Core_Payment_PaymentExpress extends CRM_Core_Payment {
       CRM_Utils_System::redirect($request_string);
     }
   }
+
 }
index b4d069393ac8c0d3cccd3047142255ec7bc375bf..3b87f7997081e3e1ac3b7c50db762dc0dfe51364 100644 (file)
@@ -21,7 +21,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
@@ -172,8 +172,8 @@ class CRM_Core_Payment_PaymentExpressIPN extends CRM_Core_Payment_BaseIPN {
     }
     else {
       /* Since trxn_id hasn't got any use here,
-             * lets make use of it by passing the eventID/membershipTypeID to next level.
-             * And change trxn_id to the payment processor reference before finishing db update */
+       * lets make use of it by passing the eventID/membershipTypeID to next level.
+       * And change trxn_id to the payment processor reference before finishing db update */
 
       if ($ids['event']) {
         $contribution->trxn_id = $ids['event'] . CRM_Core_DAO::VALUE_SEPARATOR . $ids['participant'];
@@ -427,4 +427,5 @@ class CRM_Core_Payment_PaymentExpressIPN extends CRM_Core_Payment_BaseIPN {
     }
     return $vars;
   }
+
 }
index b19011c1afab4019a1c3862ff5a712d91db65035..a93db469b8a52aad10648b4e1c8aefeb82bcd0d6 100644 (file)
@@ -21,7 +21,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
index 1d5a08a5dae116ccb8611a16469938a4a89f354d..0a8f0d44efc68d661b6cb4c696a37a368799e7de 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -113,4 +113,5 @@ class CRM_Core_Payment_ProcessorForm {
     }
     CRM_Core_Payment_Form::buildPaymentForm($form, $form->_paymentProcessor, empty($form->_isBillingAddressRequiredForPayLater));
   }
+
 }
index c47a9fc6cac1a2e30c2c0e458060ab3fc22d3fce..f19f5571981a30b235ae9ba173ee535ec78d178a 100644 (file)
@@ -21,7 +21,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
@@ -536,4 +536,5 @@ class CRM_Core_Payment_Realex extends CRM_Core_Payment {
       return NULL;
     }
   }
+
 }
index 39bf81aa2719c7f9101b2ff1ae5d6046c8de53e3..9bb50281ebab40600758c80b9a49028a1eb5e2e9 100644 (file)
@@ -21,7 +21,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
@@ -54,7 +54,7 @@
  |       different CustomerID is used per currency.                   |
  |                                                                    |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * -----------------------------------------------------------------------------------------------
@@ -160,13 +160,13 @@ class CRM_Core_Payment_eWAY extends CRM_Core_Payment {
     }
 
     /*
-        //-------------------------------------------------------------
-        // NOTE: eWAY Doesn't use the following at the moment:
-        //-------------------------------------------------------------
-       $creditCardType = $params['credit_card_type'];
-       $currentcyID    = $params['currencyID'];
-       $country        = $params['country'];
-       */
+    //-------------------------------------------------------------
+    // NOTE: eWAY Doesn't use the following at the moment:
+    //-------------------------------------------------------------
+    $creditCardType = $params['credit_card_type'];
+    $currentcyID    = $params['currencyID'];
+    $country        = $params['country'];
+     */
 
     //-------------------------------------------------------------
     // Prepare some composite data from _paymentProcessor fields
@@ -374,24 +374,24 @@ class CRM_Core_Payment_eWAY extends CRM_Core_Payment {
     }
 
     /*
-        //----------------------------------------------------------------------------------------------------
-        // Test mode always returns trxn_id = 0 - so we fix that here
-        //
-        // NOTE: This code was taken from the AuthorizeNet payment processor, however it now appears
-        //       unecessary for the eWAY gateway - Left here in case it proves useful
-        //----------------------------------------------------------------------------------------------------
-       if ( $this->_mode == 'test' ) {
-           $query             = "SELECT MAX(trxn_id) FROM civicrm_contribution WHERE trxn_id LIKE 'test%'";
-           $p                 = array( );
-           $trxn_id           = strval( CRM_Core_Dao::singleValueQuery( $query, $p ) );
-           $trxn_id           = str_replace( 'test', '', $trxn_id );
-           $trxn_id           = intval($trxn_id) + 1;
-           $params['trxn_id'] = sprintf('test%08d', $trxn_id);
-       }
-       else {
-           $params['trxn_id'] = $eWAYResponse->TransactionNumber();
-       }
-       */
+    //----------------------------------------------------------------------------------------------------
+    // Test mode always returns trxn_id = 0 - so we fix that here
+    //
+    // NOTE: This code was taken from the AuthorizeNet payment processor, however it now appears
+    //       unecessary for the eWAY gateway - Left here in case it proves useful
+    //----------------------------------------------------------------------------------------------------
+    if ( $this->_mode == 'test' ) {
+    $query             = "SELECT MAX(trxn_id) FROM civicrm_contribution WHERE trxn_id LIKE 'test%'";
+    $p                 = array( );
+    $trxn_id           = strval( CRM_Core_Dao::singleValueQuery( $query, $p ) );
+    $trxn_id           = str_replace( 'test', '', $trxn_id );
+    $trxn_id           = intval($trxn_id) + 1;
+    $params['trxn_id'] = sprintf('test%08d', $trxn_id);
+    }
+    else {
+    $params['trxn_id'] = $eWAYResponse->TransactionNumber();
+    }
+     */
 
     //=============
     // Success !
@@ -555,5 +555,6 @@ The CiviCRM eWAY Payment Processor Module
 
     CRM_Utils_Mail::send($params);
   }
+
 }
 // end class CRM_Core_Payment_eWAY
index 23969c6ca5a89e6e52240fd6d66c887557855a35..f2ae983844fe72da8e7660c8b9c11bbfc6111e67 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -779,4 +779,5 @@ class CRM_Core_Permission {
       'is_enabled'
     ) ? TRUE : FALSE;
   }
+
 }
index be049664f2482ddc3d0055a4e176630e73445c8e..2d9aa9d7e02da83dd4efb2fb826e210e64aaa799 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -259,4 +259,5 @@ class CRM_Core_Permission_Base {
     CRM_Utils_Hook::permission($permissions);
     return $permissions;
   }
+
 }
index 39adcfa71ef17f51af95053909a0a0817769aa0f..18f8e5ecef7d98f9db254e69c79b3f8a2ec67b54 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -168,4 +168,5 @@ class CRM_Core_Permission_Drupal extends CRM_Core_Permission_DrupalBase {
     $_cache[$permissionName] = self::getContactEmails($uids);
     return $_cache[$permissionName];
   }
+
 }
index 6e8760f04b8461351ff20314c0d29c534a602a65..dd59e137e2efd732f9f6801cc801d1a2a87650c7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -214,4 +214,5 @@ class CRM_Core_Permission_Drupal6 extends CRM_Core_Permission_DrupalBase {
     }
     return $return_permissions;
   }
+
 }
index a4bba0d6afd0b59fd679bb5de060b57fe36209a8..d093dccf966c5cd182c5c9ad40b617dd33cc50cc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -58,4 +58,5 @@ class CRM_Core_Permission_Drupal8 extends CRM_Core_Permission_DrupalBase {
     }
     return \Drupal::currentUser()->hasPermission($str);
   }
+
 }
index a63815eb820ffc6a1383d78cf86e656a70c03bf5..8bd540c6b953ebce067c428da53133ac882b070f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -331,4 +331,5 @@ class CRM_Core_Permission_DrupalBase extends CRM_Core_Permission_Base {
       ->condition('permission', array_keys($permissions), 'NOT IN');
     $query->execute();
   }
+
 }
index 9ae05208dc41d1aad5829770fb34367326398fe9..2e3570475080d1d106045711260d671b66ae41c9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -110,4 +110,5 @@ class CRM_Core_Permission_Joomla extends CRM_Core_Permission_Base {
   public function checkGroupRole($array) {
     return FALSE;
   }
+
 }
index b28ed9c19fb945692f188a13b3f26149577a5664..f852c45863316094309e4c45dc000254b0d5fa2d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -50,4 +50,5 @@ class CRM_Core_Permission_Soap extends CRM_Core_Permission_Base {
   public function check($str) {
     return TRUE;
   }
+
 }
index 2e5043f1e3c59aab6808a218edd2911506d0b3e9..d96c268e29871d8b971750dab073e86b50f6f080 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -78,4 +78,5 @@ class CRM_Core_Permission_UnitTests extends CRM_Core_Permission_Base {
   public function whereClause($type, &$tables, &$whereTables) {
     return '( 1 )';
   }
+
 }
index da8dbd75fc1b44a56b15a4360bb353aa27dffaf3..fd93f5f9eab38749718b5f9e8366bbdfd9c015b9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -43,7 +43,7 @@ class CRM_Core_Permission_WordPress extends CRM_Core_Permission_Base {
    * @param string $str
    *   The permission to check.
    *
-   * @return boolean
+   * @return bool
    *   true if yes, else false
    */
   public function check($str) {
@@ -102,6 +102,6 @@ class CRM_Core_Permission_WordPress extends CRM_Core_Permission_Base {
    * @inheritDoc
    */
   public function upgradePermissions($permissions) {
-    return;
   }
+
 }
index 7a5665f4525aabf039b2e8babd31a120071f8816..aa6dec652ff5c21fe2c5808e2cb90b3d29175621 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -208,7 +208,7 @@ class CRM_Core_PseudoConstant {
    * - fresh      boolean ignore cache entries and go back to DB
    * @param string $context : Context string
    *
-   * @return Array|bool
+   * @return array|bool
    *   array on success, FALSE on error.
    *
    */
@@ -261,7 +261,7 @@ class CRM_Core_PseudoConstant {
     }
 
     // Core field: load schema
-    $dao = new $daoName;
+    $dao = new $daoName();
     $fieldSpec = $dao->getFieldSpec($fieldName);
     $dao->free();
     // If neither worked then this field doesn't exist. Return false.
@@ -323,7 +323,7 @@ class CRM_Core_PseudoConstant {
             return FALSE;
           }
           // Get list of fields for the option table
-          $dao = new $daoName;
+          $dao = new $daoName();
           $availableFields = array_keys($dao->fieldKeys());
           $dao->free();
 
@@ -467,7 +467,7 @@ class CRM_Core_PseudoConstant {
    * @param string $fieldName
    * @param string|Int $value
    *
-   * @return bool|null|string|number
+   * @return bool|null|string|int
    *   FALSE if the given field has no associated option list
    *   NULL if the given key has no corresponding option
    *   String|Number if key is found
@@ -553,7 +553,7 @@ class CRM_Core_PseudoConstant {
       return $var;
     }
 
-    $object = new $name ();
+    $object = new $name();
 
     $object->selectAdd();
     $object->selectAdd("$key, $retrieve");
@@ -1735,7 +1735,7 @@ WHERE  id = %1
       $defaultGreetings = array();
       $contactTypes = self::get('CRM_Contact_DAO_Contact', 'contact_type', array(
           'keyColumn' => 'id',
-          'labelColumn' => 'name'
+          'labelColumn' => 'name',
         ));
 
       foreach ($contactTypes as $filter => $contactType) {
@@ -1852,4 +1852,5 @@ WHERE  id = %1
 
     return self::$taxRates;
   }
+
 }
index 094a30106b11dc1969f5af609469ed36d05aa920..8d3d26588292a897f265383227eacbf8099cc49b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This is the base Action class for all actions which we redefine. This is
@@ -86,4 +86,5 @@ class CRM_Core_QuickForm_Action extends HTML_QuickForm_Action {
       CRM_Utils_System::redirect($destination);
     }
   }
+
 }
index c2683361239dcbf71584f5083a0de1462cacee0b..0b9c147deef3714df1bb79f74b9bd6d88d11901d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Redefine the back action.
@@ -60,4 +60,5 @@ class CRM_Core_QuickForm_Action_Back extends CRM_Core_QuickForm_Action {
   public function perform(&$page, $actionName) {
     $this->_stateMachine->perform($page, $actionName, 'Back');
   }
+
 }
index 484daf56561b340272ed0a6eead82ff42206d359..5fd6b702003b1bf440642a805f1151c0032b99e3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Redefine the cancel action
@@ -63,4 +63,5 @@ class CRM_Core_QuickForm_Action_Cancel extends CRM_Core_QuickForm_Action {
 
     $this->popUserContext();
   }
+
 }
index 0ecfc42c43c21d77bf31c32712e3110d09132945..8c3b2a4246361c4921264da98ae57b8c5d34c99f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Redefine the display action.
@@ -225,4 +225,5 @@ class CRM_Core_QuickForm_Action_Display extends CRM_Core_QuickForm_Action {
     self::$_requiredTemplate = file_get_contents($templateDir . '/CRM/Form/label.tpl');
     self::$_errorTemplate = file_get_contents($templateDir . '/CRM/Form/error.tpl');
   }
+
 }
index 281cfcfe2b50bdd77461e9fe94d237e395be02b0..e0fb11bdeb073f4c7bd89324aed6202ebe7c9abb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Redefine the back action.
@@ -81,4 +81,5 @@ class CRM_Core_QuickForm_Action_Done extends CRM_Core_QuickForm_Action {
     // use Done when u want to pop back to the same context without a reset
     $this->popUserContext();
   }
+
 }
index b70a7cea453c2dad4487e3651f4833e00835ab98..ee7f8b4f0c44e9998a1c23460c4e278e3b13d802 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Redefine the jump action.
@@ -78,4 +78,5 @@ class CRM_Core_QuickForm_Action_Jump extends CRM_Core_QuickForm_Action {
 
     CRM_Utils_System::redirect($url);
   }
+
 }
index 983966bfff0bb7497072b8ccd0daa9f16bbb1e16..964d0f319c7e000a5569df240ef09451c67282c3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Redefine the next action.
@@ -60,4 +60,5 @@ class CRM_Core_QuickForm_Action_Next extends CRM_Core_QuickForm_Action {
   public function perform(&$page, $actionName) {
     $this->_stateMachine->perform($page, $actionName, 'Next');
   }
+
 }
index 565f6de5ec03378a1e0744637f2fc4b66ed8369f..74591011523dab5a6e03da4f9cd5f5b6d0ea638d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Redefine the process action.
@@ -63,4 +63,5 @@ class CRM_Core_QuickForm_Action_Process extends CRM_Core_QuickForm_Action {
     }
     $this->popUserContext();
   }
+
 }
index 16d57268174ec76f36ab79b91780237a01fd7097..88542359296e5f4bf5ebd24ff20f9bd04778aefc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Redefine the refresh action.
@@ -76,4 +76,5 @@ class CRM_Core_QuickForm_Action_Refresh extends CRM_Core_QuickForm_Action {
 
     return $page->handle('jump');
   }
+
 }
index be6daba226d39c7e972ea4d00ceaa601f0de5a5f..46ec4bed696c92cd08cef17da1b3e06d6d5a98cc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Define the reload action. Reload the page but do not do any validation.
@@ -70,4 +70,5 @@ class CRM_Core_QuickForm_Action_Reload extends CRM_Core_QuickForm_Action {
 
     return $page->handle('display');
   }
+
 }
index 9f608882d7316cc27f22efdcf25ed0c2e4ec2454..0bb57f60fd2a0b4909087eaf2f89bb385782882e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Redefine the submit action.
@@ -83,4 +83,5 @@ class CRM_Core_QuickForm_Action_Submit extends CRM_Core_QuickForm_Action {
       return $page->handle('display');
     }
   }
+
 }
index 9179f6d025bdc5f3d0ab5c82f24a8781d0865ca8..136a07c477d3716cbb4da872d0610a29ccb9e845 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Redefine the upload action.
@@ -175,4 +175,5 @@ class CRM_Core_QuickForm_Action_Upload extends CRM_Core_QuickForm_Action {
       return $state->handleNextState($page);
     }
   }
+
 }
index 7365321b9149b29a9c98325a2f843fa59a3382db..2a4c15edf169db76f3af407d0dff6eb9f7c80fa8 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -304,4 +304,5 @@ class CRM_Core_QuickForm_GroupMultiSelect extends CRM_Core_QuickForm_NestedAdvMu
 
     return $strHtml;
   }
+
 }
index 15f81d8f86f87b8d940c9a5fc8f2661d7b4bc074..9e236c82dbc43206ff0367629cead360fc19e3fb 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -77,4 +77,5 @@ class CRM_Core_QuickForm_NestedAdvMultiSelect extends HTML_QuickForm_advmultisel
         return parent::load($options, $param1, $param2, $param3, $param4);
     }
   }
+
 }
index fcfc5436a90cc6c75bae405f4b118d19d951f803..411d30627bdf011a5c75b6d531b55a57462559a6 100644 (file)
@@ -116,4 +116,5 @@ EOS;
       'count' => CRM_Core_DAO::singleValueQuery($sql, $params),
     );
   }
+
 }
index 371981a3a52c47e1b79e356ba0176af140b16370..6eb7193dc29a224915cf0ce6314fb444fb42661e 100644 (file)
@@ -36,4 +36,5 @@ interface CRM_Core_Reference_Interface {
    *   - 'count': int
    */
   public function getReferenceCount($targetDao);
+
 }
index c6aa514286d479a1c58e2ef4d60f66d7b89e1911..94db03591258208aa3d630ebfd4632a739c2b7f8 100644 (file)
@@ -71,4 +71,5 @@ class CRM_Core_Reference_OptionValue extends CRM_Core_Reference_Basic {
     }
     return $this->targetOptionGroupId;
   }
+
 }
index 60b03a622cbabfc390abe81fffdf5ddc2b40b055..9db08aa172b053e9a270f583456854fc064dec43 100644 (file)
@@ -292,4 +292,5 @@ class CRM_Core_Region {
    * ));
    * }
    */
+
 }
index f43d1abd665a4ce4279715a39b1a9b22b97b9725..04a51a80d709632f722fdd7bc9a0ef7ad22d8c26 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Core_Report_Excel
@@ -43,9 +43,8 @@ class CRM_Core_Report_Excel {
    * @param string $rows
    *   (reference ) result set rows.
    * @param null $titleHeader
-   * @param bool $printShould the output be printed.
+   * @param bool $print
    *   Should the output be printed.
-   *
    * @param bool $outputHeader
    *
    * @return mixed
index dd0f937618b258d48728771d55358a96102351e4..55cb7f856b67b2dad27f5516fe6f9a072a406b6e 100644 (file)
@@ -1,29 +1,29 @@
 <?php
 /*
- +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
- +--------------------------------------------------------------------+
- | This file is a part of CiviCRM.                                    |
- |                                                                    |
- | CiviCRM is free software; you can copy, modify, and distribute it  |
- | under the terms of the GNU Affero General Public License           |
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
- |                                                                    |
- | CiviCRM is distributed in the hope that it will be useful, but     |
- | WITHOUT ANY WARRANTY; without even the implied warranty of         |
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
- | See the GNU Affero General Public License for more details.        |
- |                                                                    |
- | You should have received a copy of the GNU Affero General Public   |
- | License and the CiviCRM Licensing Exception along                  |
- | with this program; if not, contact CiviCRM LLC                     |
- | at info[AT]civicrm[DOT]org. If you have questions about the        |
- | GNU Affero General Public License or the licensing of CiviCRM,     |
- | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
- +--------------------------------------------------------------------+
-*/
 +--------------------------------------------------------------------+
 | CiviCRM version 4.6                                                |
 +--------------------------------------------------------------------+
 | Copyright CiviCRM LLC (c) 2004-2014                                |
 +--------------------------------------------------------------------+
 | This file is a part of CiviCRM.                                    |
 |                                                                    |
 | CiviCRM is free software; you can copy, modify, and distribute it  |
 | under the terms of the GNU Affero General Public License           |
 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
 |                                                                    |
 | CiviCRM is distributed in the hope that it will be useful, but     |
 | WITHOUT ANY WARRANTY; without even the implied warranty of         |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
 | See the GNU Affero General Public License for more details.        |
 |                                                                    |
 | You should have received a copy of the GNU Affero General Public   |
 | License and the CiviCRM Licensing Exception along                  |
 | with this program; if not, contact CiviCRM LLC                     |
 | at info[AT]civicrm[DOT]org. If you have questions about the        |
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
+ */
 
 /**
  * This class facilitates the loading of resources
@@ -112,9 +112,9 @@ class CRM_Core_Resources {
     if (self::$_singleton === NULL) {
       $sys = CRM_Extension_System::singleton();
       $cache = new CRM_Utils_Cache_SqlGroup(array(
-        'group' => 'js-strings',
-        'prefetch' => FALSE,
-      ));
+                 'group' => 'js-strings',
+                 'prefetch' => FALSE,
+               ));
       self::$_singleton = new CRM_Core_Resources(
         $sys->getMapper(),
         $cache,
@@ -189,12 +189,12 @@ class CRM_Core_Resources {
    */
   public function addScriptUrl($url, $weight = self::DEFAULT_WEIGHT, $region = self::DEFAULT_REGION) {
     CRM_Core_Region::instance($region)->add(array(
-      'name' => $url,
-      'type' => 'scriptUrl',
-      'scriptUrl' => $url,
-      'weight' => $weight,
-      'region' => $region,
-    ));
+        'name' => $url,
+        'type' => 'scriptUrl',
+        'scriptUrl' => $url,
+        'weight' => $weight,
+        'region' => $region,
+      ));
     return $this;
   }
 
@@ -211,12 +211,12 @@ class CRM_Core_Resources {
    */
   public function addScript($code, $weight = self::DEFAULT_WEIGHT, $region = self::DEFAULT_REGION) {
     CRM_Core_Region::instance($region)->add(array(
-      // 'name' => automatic
-      'type' => 'script',
-      'script' => $code,
-      'weight' => $weight,
-      'region' => $region,
-    ));
+        // 'name' => automatic
+        'type' => 'script',
+        'script' => $code,
+        'weight' => $weight,
+        'region' => $region,
+      ));
     return $this;
   }
 
@@ -395,12 +395,12 @@ class CRM_Core_Resources {
    */
   public function addStyleUrl($url, $weight = self::DEFAULT_WEIGHT, $region = self::DEFAULT_REGION) {
     CRM_Core_Region::instance($region)->add(array(
-      'name' => $url,
-      'type' => 'styleUrl',
-      'styleUrl' => $url,
-      'weight' => $weight,
-      'region' => $region,
-    ));
+        'name' => $url,
+        'type' => 'styleUrl',
+        'styleUrl' => $url,
+        'weight' => $weight,
+        'region' => $region,
+      ));
     return $this;
   }
 
@@ -417,12 +417,12 @@ class CRM_Core_Resources {
    */
   public function addStyle($code, $weight = self::DEFAULT_WEIGHT, $region = self::DEFAULT_REGION) {
     CRM_Core_Region::instance($region)->add(array(
-      // 'name' => automatic
-      'type' => 'style',
-      'style' => $code,
-      'weight' => $weight,
-      'region' => $region,
-    ));
+        // 'name' => automatic
+        'type' => 'style',
+        'style' => $code,
+        'weight' => $weight,
+        'region' => $region,
+      ));
     return $this;
   }
 
@@ -533,7 +533,7 @@ class CRM_Core_Resources {
         'config' => array(
           'ajaxPopupsEnabled' => $this->ajaxPopupsEnabled,
           'isFrontend' => $config->userFrameworkFrontend,
-        )
+        ),
       );
       // Disable profile creation if user lacks permission
       if (!CRM_Core_Permission::check('edit all contacts') && !CRM_Core_Permission::check('add contacts')) {
@@ -613,10 +613,7 @@ class CRM_Core_Resources {
   }
 
   /**
-   * Create dynamic script for localizing js widgets
-   *
-   * @return string
-   *   javascript content
+   * Create dynamic script for localizing js widgets.
    */
   public static function outputLocalizationJS() {
     CRM_Core_Page_AJAX::setJsHeaders();
@@ -715,7 +712,7 @@ class CRM_Core_Resources {
     return in_array(CRM_Utils_Array::value('snippet', $_REQUEST), array(
         CRM_Core_Smarty::PRINT_SNIPPET,
         CRM_Core_Smarty::PRINT_NOFORM,
-        CRM_Core_Smarty::PRINT_JSON
+        CRM_Core_Smarty::PRINT_JSON,
       ));
   }
 
@@ -738,7 +735,7 @@ class CRM_Core_Resources {
           array('key' => '{"BETWEEN":["now - 3 month","now"]}', 'value' => ts('Past 3 Months')),
           array('key' => '{"BETWEEN":["now - 6 month","now"]}', 'value' => ts('Past 6 Months')),
           array('key' => '{"BETWEEN":["now - 1 year","now"]}', 'value' => ts('Past Year')),
-        )
+        ),
       ),
     );
 
@@ -759,4 +756,5 @@ class CRM_Core_Resources {
 
     return $filters;
   }
+
 }
index effe8582290c06c69c3df4c5c382b08e0aad6c5d..eb320eedffcce05595bb4b57378bcb9e06cda7a1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This interface defines methods that need to be implemented
@@ -122,4 +122,5 @@ class CRM_Core_ScheduledJob {
 
   public function __destruct() {
   }
+
 }
index e3385b800811b715e14225fa2785aa0b0ffe9f5e..40d983c454bd161c3379d38c70c58ceb159fe7b0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * One place to store frequently used values in Select Elements. Note that
@@ -707,16 +707,16 @@ class CRM_Core_SelectValues {
     );
 
     /*
-       Year greater than 2000 get wrong result for following format
-       echo date( 'Y-m-d', strtotime( '7 Nov, 2001') );
-       echo date( 'Y-m-d', strtotime( '7 November, 2001') );
-       Return current year
-       expected :: 2001-11-07
-       output   :: 2009-11-07
-       However
-       echo date( 'Y-m-d', strtotime( 'Nov 7, 2001') );
-       echo date( 'Y-m-d', strtotime( 'November 7, 2001') );
-       gives proper result
+    Year greater than 2000 get wrong result for following format
+    echo date( 'Y-m-d', strtotime( '7 Nov, 2001') );
+    echo date( 'Y-m-d', strtotime( '7 November, 2001') );
+    Return current year
+    expected :: 2001-11-07
+    output   :: 2009-11-07
+    However
+    echo date( 'Y-m-d', strtotime( 'Nov 7, 2001') );
+    echo date( 'Y-m-d', strtotime( 'November 7, 2001') );
+    gives proper result
      */
 
     return $dateInputFormats;
@@ -981,4 +981,5 @@ class CRM_Core_SelectValues {
 
     return $scheduleReminderFrequencyUnits;
   }
+
 }
index b4bb661cf42495b82f5c2a15c9b42ec6bd10df93..cc9544bca8c4bd52333dc3ad7b4b766ccbcc1c93 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This interface defines the set of functions a class needs to implement
@@ -51,8 +51,10 @@ interface CRM_Core_Selector_API {
    *  csvString - The html string to display for export as csv
    *  rowCount  - the number of rows to be included
    *
-   * @param string action the action being performed
-   * @param array params the array that the pagerParams will be inserted into
+   * @param string $action
+   *   The action being performed.
+   * @param array $params
+   *   The array that the pagerParams will be inserted into.
    *
    * @return void
    */
@@ -61,7 +63,8 @@ interface CRM_Core_Selector_API {
   /**
    * Returns the sort order array for the given action
    *
-   * @param string action the action being performed
+   * @param string $action
+   *   The action being performed.
    *
    * @return array
    *   the elements that can be sorted along with their properties
@@ -85,7 +88,8 @@ interface CRM_Core_Selector_API {
   /**
    * Returns the number of rows for this action
    *
-   * @param string action the action being performed
+   * @param string $action
+   *   The action being performed.
    *
    * @return int
    *   the total number of rows for this action
@@ -124,11 +128,13 @@ interface CRM_Core_Selector_API {
   /**
    * Return the filename for the exported CSV
    *
-   * @param string type the type of export required: csv/xml/foaf etc
+   * @param string $type
+   *   The type of export required: csv/xml/foaf etc.
    *
    * @return string
    *   the fileName which we will munge to skip spaces and
    *                special characters to avoid various browser issues
    */
   public function getExportFileName($type = 'csv');
+
 }
index f9c6162d2c1f75bd61070da65780165d44f306f5..e8ca4990d7888359b6811acadbbe33937540f7a5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -189,4 +189,5 @@ class CRM_Core_Selector_Base {
   public function getKey() {
     return $this->_key;
   }
+
 }
index 046eb4eb2beb19b0ecf74bc8e331e561dc9b832b..2ee05772478c96c93eaf600cd45154250da250a6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -537,4 +537,5 @@ class CRM_Core_Selector_Controller {
   public function getDynamicAction() {
     return $this->_dynamicAction;
   }
+
 }
index 88e539c5b78a1b06515878b8a994c3b3e889c857..ba1fe1b2a88bcdcbc342b53e8ff032503b8c857b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once "PEAR.php";
@@ -574,4 +574,5 @@ class CRM_Core_Session {
     // helps proxies like varnish
     return empty($_SESSION);
   }
+
 }
index dd614ce72b05d7c0698bd43bf6892a3144a558d2..96707ae28e68f672a70168df504232c53e9db32b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -268,4 +268,5 @@ class CRM_Core_ShowHideBlocks {
       );
     }
   }
+
 }
index 4ac0a47ba39db40dafa8f333454af24aaeb12b52..6e2ce6406dacea9995a97124aa8b35a09c5682cb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -325,4 +325,5 @@ class CRM_Core_Smarty extends Smarty {
     }
     return $this;
   }
+
 }
index 3f1f21ebb0e0b5d5be6db35aa63514e5d3a69646..baaeb366a80cd6a09659b2f48dc3812cfac73ec3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * CiviCRM's Smarty edit-block plugin
index 226b9e17d1c9abe61d84e382833156276383bb81..d8100e26fe3e57704e1c86abf0bce7de6bf41314 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * CiviCRM's Smarty gettext plugin
index 293c9763c9b6151091f0b888d357ec0d18505ca3..976f8f47b13136931d2cc2bf82097c402cc51310 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index d9fa5ab94e2cce99b5a256e64ec0c3367ab1fb9f..158edfffa8f61c68f510a2e4a3ee1c1cdef61df7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * CiviCRM's Smarty gettext plugin
index fdea800b1f003c2799c6993ca69fab75b83deae1..d579087977ae2c2c76e14e0f8ecbbbe01b582102 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * CiviCRM's Smarty gettext plugin
index aeb1795ef3f8d0679819b358506bd69496b8a2dc..ec1c6e2915859b85374bb91fff4f1f3db85433ff 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 39ddadb70b31f2bf02b68576879728b1aff7577d..32ff894c3e62e19b5dfeb6c00d376546ee101e03 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 5493b021ee6b7af5b7f47dd7d54a30c85082acf5..7b5856a4cf32f9cb4ec3970f6b3344eba5211d45 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 2b85e0052c784ee45c183a94a714b4f277ef2b1b..24bd0c910e6997c34b5f1bb539694be098a8b500 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index e2db821a73db1c365da08b7b9ddcd50c2fc5b023..35516da901bb688d7eac1d5af8f573ce0c5750c8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 9ce692164c2e8c3acada38093b926a3471c63d08..83459015c3145bf87f0fcde5e3c0d921a895211d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index a9b7354e399cd8360a7eef23423ad69e9087d1c5..b234f75adf781d764b62de6f5e0893383c535fc8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index d18397f5dc5f45e788e38a80db176fb3a706674e..e3e44a0cc0059bcccaf2537d77aef966c760988c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 683b42929f344e8b6282e850f2febbd3b9f8a235..5fd74c6448ce016126be6deaf1bab0eadd60cb78 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 17c2576859b0555f49a5da502ef4dd0b542759a2..bf995738f7356b6528c5478ab540a1ef1995d018 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 80e38bc691fec915689ced1b58a404a47560d937..87591beecef79dc5b5858802cfac931def321fc9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index a71b9e5a226fcd5a2896e0fe2371111d05b05354..3e2952ce7467e689f62d48e29baf72d08bb846a7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index e7e7d341f382a32bbf4bfcd4719ad16f816a13fb..ba2f169950352efabcc809f798359fb0b50baacb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 4b0d785be52b7bf24d89166f53cd3e5549fa9575..dea7d732286dfdc2cdcaa4e7e8b1bd10cabe1bd4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  * @param CRM_Core_Smarty $smarty
  *   Reference to the smarty object.
  *
- * @return string
+ * @return string|NULL
  *   HTML code of a link to documentation
  */
 function smarty_function_docURL($params, &$smarty) {
   if (!isset($smarty)) {
-    return;
+    return NULL;
   }
   else {
     return CRM_Utils_System::docURL($params);
index 45a7473c4d9ff3e1944cc08337ea4ccde664f8c6..d070f3e939f10c1e58dc418bef5916f11e3e08d4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -46,7 +46,7 @@
  */
 function smarty_function_help($params, &$smarty) {
   if (!isset($params['id']) || !isset($smarty->_tpl_vars['config'])) {
-    return;
+    return NULL;
   }
 
   if (empty($params['file']) && isset($smarty->_tpl_vars['tplFile'])) {
index 4d0f78af953ba80360ad992d61c9e359f13fcaff..b2f822e0f21ae9cd2820073b68dbffedb6d54544 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * CiviCRM's Smarty looped value change plugin
@@ -57,7 +57,7 @@ function smarty_function_isValueChange($params, &$smarty) {
 
   if (empty($params['key'])) {
     $smarty->trigger_error("Missing required parameter, 'key', in isValueChange plugin.");
-    return;
+    return NULL;
   }
 
   $is_changed = FALSE;
@@ -85,5 +85,5 @@ function smarty_function_isValueChange($params, &$smarty) {
     $smarty->assign($params['assign'], $is_changed);
   }
 
-  return;
+  return NULL;
 }
index edd9f5efe8fb73ca1fced761b8562d6e1fce9763..9712208d6b36b405f0b68f3479f0fb7c8db5d171 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * CiviCRM's Smarty report section totals plugin
index 701e8c473dc8e12256c4518e3e3930337c347102..38e17dd4196495aae6daf07c3000d397b69dfe6e 100644 (file)
@@ -52,7 +52,7 @@ function smarty_function_simpleActivityContacts($params, &$smarty) {
 
   foreach (array(
              'target',
-             'assignee'
+             'assignee',
            ) as $role) {
     $contact = array();
     if (!empty($activity[$role . '_contact_id'])) {
index ebecda445277b5443a14b97660d0853cff91d370..3c8df7d62f0f3558e26e00ea91705eebad186ede 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 6cb0b34198308455ec765440064e47e3861fe062..d22523ae94caa1bd5202790aff75a6366cff676e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 68476745872a1a0a7ebb51255fc11f42d7710592..abb62c5036a4e53431ab2677795cd0466bfd4e1c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 57dc27cc18332d4ca86b38fcfb078377526945dc..90615f0406de7509b0631d64f6ed628d7680600c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 80ef664063e2e6dae1d9681a998c42fbc50e3b98..0ddd2a53feba5e4d26dd357626e8b6563348b341 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 0751831c95e5e9c1ab9756968a3ab5a8cda23851..0aaa9efcf326ac1cbb3f013ac3e62864a133097b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 5e3828dd9655e2da47515d931a64f3a6c59cc9fb..dcbda8237a8edf1c2757f20685128768b903a607 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 9eb279573e827083b923c04a86be0180f918d62b..96de92e66c8acaaf2c3dd892ec7730c9f51c233f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 9de1095e5842fdb87cc2217bf50862d145730cc5..0121deaaa800695b03cb640430e4d0192c79bb7f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 0c847f9139a787c73893f8b7c7f55a224c7960ef..6361389af3dc788b3a5d8a7256d7cfd873b6cd2f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -49,8 +49,8 @@
  * @return string
  *   the formatted string
  *
- * For alternate decimal point and thousands separator, delimit values with single quotes in the template.
- * EXAMPLE:   {$number|crmNumberFormat:2:',':' '} for French notation - 1234.56 becomes 1 234,56
+ *   For alternate decimal point and thousands separator, delimit values with single quotes in the template.
+ *   EXAMPLE:   {$number|crmNumberFormat:2:',':' '} for French notation - 1234.56 becomes 1 234,56
  */
 function smarty_modifier_crmNumberFormat($number, $decimals = NULL, $dec_point = NULL, $thousands_sep = NULL) {
   if (is_numeric($number)) {
index 330299ce98815e1b8372b3690020a28ebdcfb336..678f6f22560563e6982bda71dfabd4eb50c14c07 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 5cfe8df3f8b0ba64b92c7462f72f75282cf22fff..87869f4b3c5ffbd8547478b6377d801e26833e56 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 6f6ae44eb802031c1de81c1d47573a5b7daee54b..976b82f5f29c1396298a84023f842a958b70f206 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 7530d778248d296ecc0a69f4d484d509974fde25..fa96f3795a540afc44bed027d0993d89f8bbc578 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 7e3f2b3af404a2ada33a7c2009a68d19953debfc..4f74b21a6805c77b74e5c1b3949c95137385eddc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 3d201b500f9c2e5ca92e614749834a717be9a3a8..7187541b06447461e2ec9a8a10047c93a0e924a5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  *
  */
 
-/*
  * Smarty plugin
  * Type: modifier
  * Name: substring
  * Version: 0.1
  * Date: 2006-16-02
  * Author: Thorsten Albrecht <thor_REMOVE.THIS_@wolke7.net>
  * Purpose: "substring" allows you to retrieve a small part (substring) of a string.
  * Notes: The substring is specified by giving the start  position and the length.
  * Unlike the original function substr() in PHP the position of the characters
  * in the string starts at 1 (not at 0 as usual in php).
  * Example smarty code:
  *   {$my_string|substring:2:4}
  *   returns substring from character 2 until character 6
  * @link based on substr(): http://www.zend.com/manual/function.substr.php
  * @param string
-   * @param position: startposition of the substring, beginning with 0
-   * @param length: length of substring
-   * @return string
-   *
-   * -------------------------------------------------------------
  */
+/**
+ * Smarty plugin
+ * Type: modifier
+ * Name: substring
+ * Version: 0.1
+ * Date: 2006-16-02
+ * Author: Thorsten Albrecht <thor_REMOVE.THIS_@wolke7.net>
+ * Purpose: "substring" allows you to retrieve a small part (substring) of a string.
+ * Notes: The substring is specified by giving the start  position and the length.
+ * Unlike the original function substr() in PHP the position of the characters
+ * in the string starts at 1 (not at 0 as usual in php).
+ * Example smarty code:
+ *   {$my_string|substring:2:4}
+ *   returns substring from character 2 until character 6
+ * @link based on substr(): http://www.zend.com/manual/function.substr.php
* @param string $string
+ * @param int $position
+ *   startposition of the substring, beginning with 0
+ * @param int $length
+ *   length of substring
+ * @return string
+ */
 function smarty_modifier_substring($string, $position, $length) {
   return substr($string, $position, $length);
 }
index 0a179776678e22e4eec7944c77c3ec5c50090975..932ec5abcb9080e69f954bae022f10c062ce679e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index b5baf68f676fed0de9e8ee857785e17d6684ecb9..b2c2c3c4b40d48d487939593f99eeb7ea97248cd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * The basic state element. Each state element is linked to a form and
@@ -199,4 +199,5 @@ class CRM_Core_State {
   public function getType() {
     return $this->_type;
   }
+
 }
index 5ccb53406601eb98bd72b32349b4325d6796f924..02517aabaf341749482cbb1d5f49859df4191220 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -111,7 +111,7 @@ class CRM_Core_StateMachine {
   /**
    * Setter for name
    *
-   * @param string
+   * @param string $name
    *
    * @return void
    */
@@ -394,7 +394,7 @@ class CRM_Core_StateMachine {
    * beginning from the final state, but retain the same session
    * values
    *
-   * @return boolean
+   * @return bool
    */
   public function shouldReset() {
     return TRUE;
index 26a49e60a30ace16f733e530d15f1b129b7966cb..7022f12c6450cc424b76a705374a91c35dc0f3a4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class representing the table relationships
@@ -85,4 +85,5 @@ class CRM_Core_TableHierarchy {
 
     return self::$info;
   }
+
 }
index 6ab382b1d0c136765b60e5d6a7fd8de5632981a0..ec170a7b71357be83db0e36ed91d9f8f258bfced 100644 (file)
@@ -85,4 +85,5 @@ class CRM_Core_TemporaryErrorScope {
     $GLOBALS['_PEAR_default_error_options'] = $frame['_PEAR_default_error_options'];
     CRM_Core_Error::$modeException = $frame['modeException'];
   }
+
 }
index aad1beeef625a4cf736430ef0c1abf96a031808e..b9812acbf40865cb6d13825624528eda7c37969d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -250,4 +250,5 @@ class CRM_Core_Transaction {
     $frame = \Civi\Core\Transaction\Manager::singleton()->getBaseFrame();
     $frame->addCallback($phase, $callback, $params, $id);
   }
+
 }
index 06d26d3da630ff691563591e90a4bf8f11988728..627235599a06a2b54eaa9b44e10c9dd241ade4d4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -112,7 +112,7 @@ class CRM_Custom_Form_ChangeFieldType extends CRM_Core_Form {
       'dst_html_type',
       ts('New HTML Type'),
       array(
-        '' => ts('- select -')
+        '' => ts('- select -'),
       ) + $this->_htmlTypeTransitions,
       TRUE
     );
@@ -168,7 +168,7 @@ class CRM_Custom_Form_ChangeFieldType extends CRM_Core_Form {
     if ($dstHtmlType == 'Text' && in_array($srcHtmlType, array(
         'Select',
         'Radio',
-        'Autocomplete-Select'
+        'Autocomplete-Select',
       ))
     ) {
       $customField->option_group_id = "NULL";
@@ -316,4 +316,5 @@ class CRM_Custom_Form_ChangeFieldType extends CRM_Core_Form {
       return explode(CRM_Core_DAO::VALUE_SEPARATOR, trim($str, CRM_Core_DAO::VALUE_SEPARATOR));
     }
   }
+
 }
index dfd78931c6f2240b195ef2b36b72b28406c13289..da4e9661fc74afb3299a7c2255f2cfaa4d4157e3 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -49,7 +49,7 @@ class CRM_Custom_Form_CustomData {
    *
    * @return void
    */
-  static function preProcess(
+  public static function preProcess(
     &$form, $subName = NULL, $subType = NULL,
     $groupCount = NULL, $type = NULL, $entityID = NULL, $onlySubType = NULL
   ) {
@@ -167,4 +167,5 @@ class CRM_Custom_Form_CustomData {
     $form->addElement('hidden', "hidden_custom_group_count[{$form->_groupID}]", $form->_groupCount);
     CRM_Core_BAO_CustomGroup::buildQuickForm($form, $form->_groupTree);
   }
+
 }
index 7b82e0b170a8627a7f5bea5635f7d4a856027371..41d61385c9334dad6ec2c4304aed0c24de10a537 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -107,4 +107,5 @@ class CRM_Custom_Form_DeleteField extends CRM_Core_Form {
     CRM_Core_Session::setStatus(ts('The custom field \'%1\' has been deleted.', array(1 => $field->label)), '', 'success');
 
   }
+
 }
index ca19b44db6792b2e299609bc1b931e6d93055b9e..b794226815f7693fd38e480233d7f0113f610000 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -116,4 +116,5 @@ class CRM_Custom_Form_DeleteGroup extends CRM_Core_Form {
     CRM_Core_BAO_CustomGroup::deleteGroup($group);
     CRM_Core_Session::setStatus(ts("The Group '%1' has been deleted.", array(1 => $group->title)), '', 'success');
   }
+
 }
index edbcbc8543bae01eb675015dd6bb066c7b205a24..0e56f959a525f1306468003d71e77bf3af1e618f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1019,4 +1019,5 @@ SELECT id
     // Add data when in ajax contect
     $this->ajaxResponse['customField'] = $customField->toArray();
   }
+
 }
index 7bcee88ffd3910f552c3e6978905323914ff9b84..8f88a64ac70541e70fd09060704726290517bb3e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -552,4 +552,5 @@ class CRM_Custom_Form_Group extends CRM_Core_Form {
     }
     return $relName;
   }
+
 }
index 0f9f22031f1f169af1c605f218edf37f2784daa2..ce103511884e05d8cbc57d0ec75ad3810bec8586 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -178,4 +178,5 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form {
         3 => $srcUrl,
       )), '', 'success');
   }
+
 }
index e91b96e535d4207e0c12ab3e21011d737b37cdf7..1e9d1e322772f488ebf5d573b74d364d4581d414 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -512,4 +512,5 @@ SELECT count(*)
       );
     }
   }
+
 }
index 92c867b7b585d39afc0d096fa568d9545e181ed6..7cf96a6c1ab29647e36dd76083cb929b614927f5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -126,4 +126,5 @@ class CRM_Custom_Form_Preview extends CRM_Core_Form {
       )
     );
   }
+
 }
index bead20ad6d8462ec817f24485415c3bd219656ac..5db234e1bc5d7adcb68d150946dafae162ceb69b 100644 (file)
@@ -24,4 +24,5 @@ class CRM_Custom_Import_Controller extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions($config->uploadDir, array('uploadFile'));
   }
+
 }
index e4079d38ccb6377ac27b55411e39db49ca4a9820..44daa07280889a8d5e6622db84c610fa4a9681bf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Custom_Import_Field
index 250cf170c88269c1805ea83b9a41caf11375d70f..7d80060f236ff00bc7a897d065588d490e2a6815 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -211,4 +211,5 @@ class CRM_Custom_Import_Form_DataSource extends CRM_Core_Form {
   public function getTitle() {
     return ts('Upload Data');
   }
+
 }
index c65d3ccba49cdfa737c65724af5690dd312c9b53..fc978e955d628f30fbbfb601c1e2f935bf460b1b 100644 (file)
@@ -224,4 +224,5 @@ class CRM_Custom_Import_Form_MapField extends CRM_Contact_Import_Form_MapField {
     // add all the necessary variables to the form
     $parser->set($this);
   }
+
 }
index c7911d072a183fc520cdeac843c7848534670dda..3ef4fbf53a397c78683be7d4e7a824b4bdb19461 100644 (file)
@@ -148,4 +148,5 @@ class CRM_Custom_Import_Form_Preview extends CRM_Import_Form_Preview {
       $this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
     }
   }
+
 }
index ca427871aa9604af91160c0acef2db1fd4d11e31..8a96614dbb30ad3cb1e9c4be40a7d7be1aff815a 100644 (file)
@@ -14,4 +14,5 @@ class CRM_Custom_Import_Form_Summary extends CRM_Contact_Import_Form_Summary {
     $session = CRM_Core_Session::singleton();
     $session->pushUserContext(CRM_Utils_System::url('civicrm/import/custom', 'reset=1'));
   }
+
 }
index 0be813e09be49e08b089ae9fa1faf2e57b2aa4e8..2b879c15cd5c44245d5c936775b5dc26122775ca 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -74,7 +74,7 @@ abstract class CRM_Custom_Import_Parser extends CRM_Contact_Import_Parser {
    * @return mixed
    * @throws Exception
    */
-  function run(
+  public function run(
     $fileName,
     $separator = ',',
     &$mapper,
@@ -214,7 +214,7 @@ abstract class CRM_Custom_Import_Parser extends CRM_Contact_Import_Parser {
       if ($returnCode & self::DUPLICATE) {
         if ($returnCode & self::MULTIPLE_DUPE) {
           /* TODO: multi-dupes should be counted apart from singles
-                     * on non-skip action */
+           * on non-skip action */
         }
         $this->_duplicateCount++;
         $recordNumber = $this->_lineCount;
@@ -291,7 +291,7 @@ abstract class CRM_Custom_Import_Parser extends CRM_Contact_Import_Parser {
    * Given a list of the importable field keys that the user has selected
    * set the active fields array to this list
    *
-   * @param array mapped array of values
+   * @param array $fieldKeys mapped array of values
    *
    * @return void
    */
@@ -381,4 +381,5 @@ abstract class CRM_Custom_Import_Parser extends CRM_Contact_Import_Parser {
       }
     }
   }
+
 }
index 915312f2aead6d59723307931d2ef1e658fc33ae..71f6e225c5f0642ebdfaee9cbc73064237b700dd 100644 (file)
@@ -255,4 +255,5 @@ class CRM_Custom_Import_Parser_Api extends CRM_Custom_Import_Parser {
     }
     return $importableFields;
   }
+
 }
index e1ded4f394ff232356121251d73ba6f8727d89ad..871b8fd79cebd321e15b9fff949ac1cef782aec2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,8 +62,6 @@ class CRM_Custom_Page_Field extends CRM_Core_Page {
   /**
    * Get the action links for this page.
    *
-   * @param null
-   *
    * @return array
    *   array of action links that we need to display for the browse screen
    */
@@ -119,8 +117,6 @@ class CRM_Custom_Page_Field extends CRM_Core_Page {
   /**
    * Browse all custom group fields.
    *
-   * @param null
-   *
    * @return void
    */
   public function browse() {
@@ -226,8 +222,6 @@ class CRM_Custom_Page_Field extends CRM_Core_Page {
    * This method is called after the page is created. It checks for the
    * type of action and executes that action.
    *
-   * @param null
-   *
    * @return void
    */
   public function run() {
@@ -318,4 +312,5 @@ class CRM_Custom_Page_Field extends CRM_Core_Page {
     $controller->process();
     $controller->run();
   }
+
 }
index 2003d472f05e31f0517574a436b691c6406284dd..bc5a713b450cd84fe8600e2570923c5a2914fa05 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -53,7 +53,6 @@ class CRM_Custom_Page_Group extends CRM_Core_Page {
   /**
    * Get the action links for this page.
    *
-   * @param null
    *
    * @return array
    *   array of action links that we need to display for the browse screen
@@ -108,8 +107,6 @@ class CRM_Custom_Page_Group extends CRM_Core_Page {
    * type of action and executes that action.
    * Finally it calls the parent's run method.
    *
-   * @param null
-   *
    * @return void
    */
   public function run() {
@@ -335,4 +332,5 @@ class CRM_Custom_Page_Group extends CRM_Core_Page {
 
     $this->assign('rows', $customGroup);
   }
+
 }
index dc44b216fe57c8a45157664a55ced7771e7ef250..ec74aa5e67462fd2e3c4e8d48c12b60aac649626 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -323,4 +323,5 @@ ORDER BY weight, label
     // Call the parents run method
     return parent::run();
   }
+
 }
index fb997ed76b6ae0fe18ead1e8ae1c0e85bf22bc35..c2b62f380cf00f6f8d393c4c9bcdbc4ff44a4285 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -75,4 +75,5 @@ class CRM_Dashlet_Page_Activity extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index d3a7b3eb477a16a515a796041696e611e623697d..54137e6ca4746178f34e692ed2d6c9e7be09f2c4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,4 +62,5 @@ class CRM_Dashlet_Page_AllCases extends CRM_Core_Page {
     }
     return parent::run();
   }
+
 }
index c76d86b6782ed6832601fe8be656a802a03859b2..1e8548d22c7c0f99a3f6c83ed273553d34f03837 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -126,4 +126,5 @@ class CRM_Dashlet_Page_Blog extends CRM_Core_Page {
     }
     return $blog;
   }
+
 }
index e7be5280fc36a2adcae10cfdbea5d38a59d5d544..5471a19707e050212b4827bacbb49b58c683e738 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -61,4 +61,5 @@ class CRM_Dashlet_Page_CaseDashboard extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index b121d03573c36e232734fcaf69f27143dddb1f8c..95035b6c28534c246de26a08bb88a6a52fbd6a80 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,4 +62,5 @@ class CRM_Dashlet_Page_MyCases extends CRM_Core_Page {
     }
     return parent::run();
   }
+
 }
index d9ba5483b99f06bd9cbb1790ca78e3f287ebb368..484ce391c64ded690b90940b958f06911a3513da 100644 (file)
@@ -21,4 +21,5 @@ class CRM_Dedupe_BAO_QueryBuilder {
       return "($strID1 < $strID2)";
     }
   }
+
 }
index a3670968dff17fc992b23a8a8ac554a9f06ae13d..00be6f40b0b38ae67330b557a6f99248eff15502 100644 (file)
@@ -68,4 +68,5 @@ class CRM_Dedupe_BAO_QueryBuilder_IndividualGeneral extends CRM_Dedupe_BAO_Query
               AND " . self::internalFilters($rg);
     return array("civicrm_contact.{$rg->name}.{$rg->threshold}" => $query);
   }
+
 }
index 67ec55e4a3631f009740d7aacde4089ec68b80ca..806f023e6c48ba7616bdde065b9ffca25f3d28bb 100644 (file)
@@ -69,4 +69,5 @@ class CRM_Dedupe_BAO_QueryBuilder_IndividualSupervised extends CRM_Dedupe_BAO_Qu
       "civicrm_contact.{$rg->name}.{$rg->threshold}" => $query,
     );
   }
+
 }
index 4776f8024d23aa5c4b8dd3cfab8562acf5c83de6..3199da0aea049761534a2f2768c99b5885f430ce 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Dedupe_BAO_QueryBuilder_IndividualUnsupervised
@@ -107,4 +107,5 @@ AND    " . self::internalFilters($rg);
 
     return array("civicrm_contact.{$rg->name}.{$rg->threshold}" => $query);
   }
+
 }
index 37c9a941b9d65d64e475a7f0a9d5ff3ee2c4b8d9..588a1aa7f8af4b00f9f6350de83e147eae6915dc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -188,7 +188,7 @@ class CRM_Dedupe_BAO_Rule extends CRM_Dedupe_DAO_Rule {
   /**
    * find fields related to a rule group.
    *
-   * @param array contains the rule group property to identify rule group
+   * @param array $params contains the rule group property to identify rule group
    *
    * @return array
    *   rule fields array associated to rule group
@@ -217,7 +217,7 @@ class CRM_Dedupe_BAO_Rule extends CRM_Dedupe_DAO_Rule {
    */
   public static function validateContacts($cid, $oid) {
     if (!$cid || !$oid) {
-      return;
+      return NULL;
     }
     $exception = new CRM_Dedupe_DAO_Exception();
     $exception->contact_id1 = $cid;
@@ -230,4 +230,5 @@ class CRM_Dedupe_BAO_Rule extends CRM_Dedupe_DAO_Rule {
 
     return $exception->find(TRUE) ? FALSE : TRUE;
   }
+
 }
index 0ef208d6c7d20af9b0f5bf66d46fdf87f408731a..eec56a68223dd3da26dfc253b48855cdf8eae252 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -413,7 +413,6 @@ class CRM_Dedupe_BAO_RuleGroup extends CRM_Dedupe_DAO_RuleGroup {
   /**
    * Get all of the combinations of fields that would work with a rule
    */
-
   public static function combos($rgFields, $threshold, &$combos, $running = array()) {
     foreach ($rgFields as $rgField => $weight) {
       unset($rgFields[$rgField]);
@@ -451,12 +450,12 @@ class CRM_Dedupe_BAO_RuleGroup extends CRM_Dedupe_DAO_RuleGroup {
     $dao->find();
     $result = array();
     while ($dao->fetch()) {
-      $title =
-        !empty($dao->title) ? $dao->title : (!empty($dao->name) ? $dao->name : $dao->contact_type);
+      $title = !empty($dao->title) ? $dao->title : (!empty($dao->name) ? $dao->name : $dao->contact_type);
 
       $name = "$title - {$dao->used}";
       $result[$dao->id] = $name;
     }
     return $result;
   }
+
 }
index 094b3996219717a193105830f0f20ca9d14e18dc..9e5054080014032389afceb4ac38bac3b3cf85d2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -95,7 +95,7 @@ class CRM_Dedupe_Finder {
    * @return array
    *   matching contact ids
    */
-  static function dupesByParams(
+  public static function dupesByParams(
     $params,
     $ctype,
     $used = 'Unsupervised',
@@ -236,7 +236,7 @@ class CRM_Dedupe_Finder {
     // handle {birth,deceased}_date
     foreach (array(
                'birth_date',
-               'deceased_date'
+               'deceased_date',
              ) as $date) {
       if (!empty($fields[$date])) {
         $flat[$date] = $fields[$date];
@@ -327,4 +327,5 @@ class CRM_Dedupe_Finder {
     }
     return $params;
   }
+
 }
index 17daf65be2795afd4dd39c5c0c83d0c4ad9a9fab..45f520e7996e12b417d9ed42701e73586b7db578 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1658,4 +1658,5 @@ INNER JOIN  civicrm_membership membership2 ON membership1.membership_type_id = m
       } // end of if relationshipTypeId
     }
   }
+
 }
index 5018a771443b94de61326b33a81b230b82582a10..dbf9101a79814be0dc80836e484c6f3fbdffce9c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index fb282d354f1ac77d9e54983c6057cd36574a6f21..d324b1e9e998267969619f63e52ae6f011e44f14 100644 (file)
@@ -24,7 +24,7 @@
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 
-*/
+ */
 
 /**
  *
@@ -113,7 +113,7 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant {
       $params['role_id'] = implode(CRM_Core_DAO::VALUE_SEPARATOR, $params['role_id']);
     }
 
-    $participantBAO = new CRM_Event_BAO_Participant;
+    $participantBAO = new CRM_Event_BAO_Participant();
     if (!empty($params['id'])) {
       $participantBAO->id = CRM_Utils_Array::value('id', $params);
       $participantBAO->find(TRUE);
@@ -352,7 +352,7 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant {
    * @return bool|int|null|string
    *   1. false                 => If event having some empty spaces.
    */
-  static function eventFull(
+  public static function eventFull(
     $eventId,
     $returnEmptySeats = FALSE,
     $includeWaitingList = TRUE,
@@ -496,7 +496,7 @@ SELECT  event.event_full_text,
    * @return array
    *   an array of each option id and total count
    */
-  static function priceSetOptionsCount(
+  public static function priceSetOptionsCount(
     $eventId,
     $skipParticipantIds = array(),
     $considerCounted = TRUE,
@@ -712,11 +712,9 @@ GROUP BY  participant.event_id
       $extIdentifier = CRM_Utils_Array::value('external_identifier', $contactFields);
       if ($extIdentifier) {
         $tmpContactField['external_identifier'] = $extIdentifier;
-        $tmpContactField['external_identifier']['title'] =
-          CRM_Utils_Array::value('title', $extIdentifier) . ' (match to contact)';
+        $tmpContactField['external_identifier']['title'] = CRM_Utils_Array::value('title', $extIdentifier) . ' (match to contact)';
       }
-      $tmpFields['participant_contact_id']['title'] =
-        $tmpFields['participant_contact_id']['title'] . ' (match to contact)';
+      $tmpFields['participant_contact_id']['title'] = $tmpFields['participant_contact_id']['title'] . ' (match to contact)';
 
       $fields = array_merge($fields, $tmpContactField);
       $fields = array_merge($fields, $tmpFields);
@@ -750,25 +748,28 @@ GROUP BY  participant.event_id
           'title' => 'Participant Note',
           'name' => 'participant_note',
           'type' => CRM_Utils_Type::T_STRING,
-        ));
+        ),
+      );
 
       $participantStatus = array(
         'participant_status' => array(
           'title' => 'Participant Status',
           'name' => 'participant_status',
           'type' => CRM_Utils_Type::T_STRING,
-        ));
+        ),
+      );
 
       $participantRole = array(
         'participant_role' => array(
           'title' => 'Participant Role',
           'name' => 'participant_role',
           'type' => CRM_Utils_Type::T_STRING,
-        ));
+        ),
+      );
 
       $discountFields = CRM_Core_DAO_Discount::export();
 
-      $fields = array_merge($participantFields, $participantStatus, $participantRole,  $eventFields, $noteField, $discountFields);
+      $fields = array_merge($participantFields, $participantStatus, $participantRole, $eventFields, $noteField, $discountFields);
 
       // add custom data
       $fields = array_merge($fields, CRM_Core_BAO_CustomField::getFieldsForImport('Participant'));
@@ -915,11 +916,11 @@ WHERE  civicrm_participant.id = {$participantId}
   /**
    * Checks duplicate participants
    *
-   * @param array $duplicates
-   *   (reference ) an assoc array of name/value pairs.
    * @param array $input
    *   An assosiative array of name /value pairs.
    *   from other function
+   * @param array $duplicates
+   *   (reference ) an assoc array of name/value pairs.
    *
    * @return CRM_Contribute_BAO_Contribution
    */
@@ -1148,11 +1149,11 @@ INNER JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field_
    * @param int $newStatusID
    * @param bool $updatePrimaryStatus
    *
-   * @return bool|void
+   * @return bool|NULL
    */
   public static function updateParticipantStatus($participantID, $oldStatusID, $newStatusID = NULL, $updatePrimaryStatus = FALSE) {
     if (!$participantID || !$oldStatusID) {
-      return;
+      return NULL;
     }
 
     if (!$newStatusID) {
@@ -1223,14 +1224,14 @@ UPDATE  civicrm_participant
    * @param bool $returnResult
    * @param bool $skipCascadeRule
    *
-   * @return array
+   * @return array|NULL
    */
-  static function transitionParticipants(
+  public static function transitionParticipants(
     $participantIds, $toStatusId,
     $fromStatusId = NULL, $returnResult = FALSE, $skipCascadeRule = FALSE
   ) {
     if (!is_array($participantIds) || empty($participantIds) || !$toStatusId) {
-      return;
+      return NULL;
     }
 
     //thumb rule is if we triggering  primary participant need to triggered additional
@@ -1461,7 +1462,7 @@ UPDATE  civicrm_participant
    *
    * @return bool
    */
-  static function sendTransitionParticipantMail(
+  public static function sendTransitionParticipantMail(
     $participantId,
     $participantValues,
     $eventDetails,
@@ -1808,14 +1809,16 @@ WHERE cpf.price_set_id = %1 AND cpfv.label LIKE %2";
         $contributionParams['contribution']->financial_type_id, $relationTypeId);
       if (!empty($contributionParams['trxnParams']['from_financial_account_id'])) {
         $contributionParams['trxnParams']['total_amount'] = $mainAmount - $contributionParams['total_amount'];
-        $contributionParams['trxnParams']['payment_processor_id'] = $contributionParams['trxnParams']['payment_instrument_id'] =
-        $contributionParams['trxnParams']['check_number'] = $contributionParams['trxnParams']['trxn_id'] =
-        $contributionParams['trxnParams']['net_amount'] = $contributionParams['trxnParams']['fee_amount'] = NULL;
+        $contributionParams['trxnParams']['payment_processor_id'] = NULL;
+        $contributionParams['trxnParams']['payment_instrument_id'] = NULL;
+        $contributionParams['trxnParams']['check_number'] = NULL;
+        $contributionParams['trxnParams']['trxn_id'] = NULL;
+        $contributionParams['trxnParams']['net_amount'] = NULL;
+        $contributionParams['trxnParams']['fee_amount'] = NULL;
 
         CRM_Core_BAO_FinancialTrxn::create($contributionParams['trxnParams']);
       }
     }
-    return;
   }
 
   /**
@@ -2084,8 +2087,11 @@ WHERE (li.entity_table = 'civicrm_participant' AND li.entity_id = {$participantI
       $ftDetail = CRM_Core_BAO_FinancialTrxn::getBalanceTrxnAmt($contributionId);
       // adjusted amount financial_trxn creation
       if (empty($ftDetail['trxn_id'])) {
-        $updatedContribution =
-          CRM_Contribute_BAO_Contribution::getValues(array('id' => $contributionId), CRM_Core_DAO::$_nullArray, CRM_Core_DAO::$_nullArray);
+        $updatedContribution = CRM_Contribute_BAO_Contribution::getValues(
+          array('id' => $contributionId),
+          CRM_Core_DAO::$_nullArray,
+          CRM_Core_DAO::$_nullArray
+        );
         $relationTypeId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Accounts Receivable Account is' "));
         $toFinancialAccount = CRM_Contribute_PseudoConstant::financialAccountType($updatedContribution->financial_type_id, $relationTypeId);
 
@@ -2160,11 +2166,11 @@ WHERE (li.entity_table = 'civicrm_participant' AND li.entity_id = {$participantI
    *
    * @param string $fieldName
    * @param string $context
-   *   @see CRM_Core_DAO::buildOptionsContext.
+   * @see CRM_Core_DAO::buildOptionsContext
    * @param array $props
    *   whatever is known about this dao object.
    *
-   * @return Array|bool
+   * @return array|bool
    */
   public static function buildOptions($fieldName, $context = NULL, $props = array()) {
     $params = array('condition' => array());
@@ -2179,4 +2185,5 @@ WHERE (li.entity_table = 'civicrm_participant' AND li.entity_id = {$participantI
 
     return CRM_Core_PseudoConstant::get(__CLASS__, $fieldName, $params, $context);
   }
+
 }
index d7c40e1a6d566a0c6b0b917dd126e1b48b167496..284d536f983ccfe9981e358bf4a6cf3112716e14 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -126,4 +126,5 @@ class CRM_Event_BAO_ParticipantPayment extends CRM_Event_DAO_ParticipantPayment
     }
     return FALSE;
   }
+
 }
index 00b5db2ac66b1f344b40a39ab9b8e75be834df0b..db5f33ea1f8febb96ee014091299c0a797cca397 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -321,4 +321,5 @@ LEFT JOIN  civicrm_event event ON ( event.id = participant.event_id )
 
     return array('is_error' => 0, 'messages' => $returnMessages);
   }
+
 }
index 4a00fba788b4b82314e16ab825d6516ea22a7eb1..c9d64bedd98915bce145bfd2de9668323040746d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -603,4 +603,5 @@ class CRM_Event_BAO_Query {
       $tables = array_merge(array('civicrm_participant' => 1), $tables);
     }
   }
+
 }
index cb77e25ed0d873c85af4f196b368008d5bb28b34..e837cec3a0e9684e38ddc718ea5dbabf049d55a0 100644 (file)
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /*
-* Copyright (C) 2010 Tech To The People
-* Licensed to CiviCRM under the Academic Free License version 3.0.
-*
-*/
+ * Copyright (C) 2010 Tech To The People
+ * Licensed to CiviCRM under the Academic Free License version 3.0.
+ *
+ */
 
 /**
  *
@@ -208,4 +208,5 @@ class CRM_Event_Badge {
     }
     $this->pdf->Output($this->event->title . '.pdf', 'D');
   }
+
 }
index fa34bd66b8f55fe02aa640e86c3815d8c7050288..b6ca8b1bf216fade6fb97456d38197a141b827a4 100644 (file)
@@ -59,4 +59,5 @@ class CRM_Event_Badge_Logo extends CRM_Event_Badge {
     $this->pdf->SetFontSize(10);
     $this->pdf->MultiCell($this->pdf->width, 0, $participant['current_employer'], $this->border, "C", 0, 1, $x, $this->pdf->getY());
   }
+
 }
index a8200887bf5cad111fbfaa9fea4a5668abe62877..411dfc74c59e835d123d09a947e808b66e240e3e 100644 (file)
@@ -59,4 +59,5 @@ class CRM_Event_Badge_Logo5395 extends CRM_Event_Badge {
     $this->pdf->SetFontSize(15);
     $this->pdf->MultiCell($this->pdf->width, 0, $participant['current_employer'], $this->border, "C", 0, 1, $x, $this->pdf->getY());
   }
+
 }
index 3bca8a13a2d613c949fce41e3f905a3d04452e06..ea0076f5be43d8f4ad8be1ac86eb30e813b6d77c 100644 (file)
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
-* Copyright (C) 2010 Tech To The People
-* Licensed to CiviCRM under the Academic Free License version 3.0.
-*
-*/
+ * Copyright (C) 2010 Tech To The People
+ * Licensed to CiviCRM under the Academic Free License version 3.0.
+ *
+ */
 
 /**
  *
@@ -95,4 +95,5 @@ class CRM_Event_Badge_NameTent extends CRM_Event_Badge {
     $this->writeOneSide($participant);
     $this->pdf->StopTransform();
   }
+
 }
index 19b9fbd41d56c9848e6ed65a937faf86047c788d..aea188f16d14d183f49f7a25016db7cc7c3c67b3 100644 (file)
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
-* Copyright (C) 2010 Tech To The People
-* Licensed to CiviCRM under the Academic Free License version 3.0.
-*
-*/
+ * Copyright (C) 2010 Tech To The People
+ * Licensed to CiviCRM under the Academic Free License version 3.0.
+ *
+ */
 
 /**
  *
@@ -58,4 +58,5 @@ class CRM_Event_Badge_Simple extends CRM_Event_Badge {
     $this->pdf->Cell($this->pdf->width, $this->pdf->lineHeight, $participant['current_employer'], 0, 2, "C");
     //$this->pdf->MultiCell ($this->pdf->width, $this->pdf->lineHeight, $txt,1,"L");
   }
+
 }
index f6841d258cffdaf8bf79b90cccede49475cffd7c..f0166b7185b99c49e7398f4d6ef6a8f51a90e9c6 100644 (file)
@@ -101,7 +101,7 @@ class CRM_Event_Cart_BAO_Cart extends CRM_Event_Cart_DAO_Cart {
   }
 
   /**
-   * @return $this|bool|CRM_Event_Cart_BAO_Cart
+   * @return self|bool|CRM_Event_Cart_BAO_Cart
    */
   public static function find_or_create_for_current_session() {
     $session = CRM_Core_Session::singleton();
@@ -340,4 +340,5 @@ class CRM_Event_Cart_BAO_Cart extends CRM_Event_Cart_DAO_Cart {
 
     CRM_Core_DAO::executeQuery($sql, $params);
   }
+
 }
index 543ec6b3aa93ebf56fc8adf6c52d243e412c1e27..d332cfe70633dc53f92b8a9f16c14deb64ad42b4 100644 (file)
@@ -39,4 +39,5 @@ EOS;
     }
     return $smarty_sessions;
   }
+
 }
index b9f661a0d906e4435f637d6818d44a9b0d34f170..25aae6aad8bf450d17a2491af5d919085ffda452 100644 (file)
@@ -26,7 +26,7 @@ class CRM_Event_Cart_BAO_EventInCart extends CRM_Event_Cart_DAO_EventInCart impl
   /**
    * @param array $params
    *
-   * @return $this|CRM_Event_Cart_BAO_EventInCart
+   * @return object $this|CRM_Event_Cart_BAO_EventInCart
    * @throws Exception
    */
   public static function create(&$params) {
@@ -320,4 +320,5 @@ class CRM_Event_Cart_BAO_EventInCart extends CRM_Event_Cart_DAO_EventInCart impl
       return $this->event->parent_event_id == $parent_event_id;
     }
   }
+
 }
index 63f09d81390e30dbac124607cf5ee709e1967131..34aba376d8bb9f04f764409577c05aeb51dce491 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Event_Cart_BAO_MerParticipant
@@ -187,4 +187,5 @@ class CRM_Event_Cart_BAO_MerParticipant extends CRM_Event_BAO_Participant {
   public function get_form() {
     return new CRM_Event_Cart_Form_MerParticipant($this);
   }
+
 }
index c860b4f93e81220d5ffff64edabd4ffc86dcb9ce..84ed049823b62c5dab864a9fce494a9cd51a6bbe 100644 (file)
@@ -26,4 +26,5 @@ class CRM_Event_Cart_Controller_Checkout extends CRM_Core_Controller {
       $this->addActions();
     }
   }
+
 }
index c227a3c8293bd1339f44f85a4d76bc8c686fa458..a8413db4218751732b097b8a622b42716f1ba60e 100644 (file)
@@ -176,4 +176,5 @@ class CRM_Event_Cart_Form_Cart extends CRM_Core_Form {
     $container = $this->controller->container();
     return $container['values'][$page_name];
   }
+
 }
index b6c6a2057e0e714555f2ec4cabf245fb73210263..f1299e3553ccbfdf136626c674036c03198ff06d 100644 (file)
@@ -144,4 +144,5 @@ EOS;
     }
     $this->cart->save();
   }
+
 }
index 74fe540a9d5f4f9123eae0e9f05810037717d0e6..adde82c0388b8701edf1209b5f0b8cf4d48b0cc7 100644 (file)
@@ -248,4 +248,5 @@ class CRM_Event_Cart_Form_Checkout_ParticipantsAndPrices extends CRM_Event_Cart_
     }
     $this->cart->save();
   }
+
 }
index d787a3a45867a5dffc0e63fae7ca94e52be5ed70..7777e51750ac14e8aeda4b4b596c7df56fe4a02d 100644 (file)
@@ -720,4 +720,5 @@ class CRM_Event_Cart_Form_Checkout_Payment extends CRM_Event_Cart_Form_Cart {
 
     return $defaults;
   }
+
 }
index b1594f886b8f3117665453717f6b1887849f1f79..0b1b8d10b42c91b7a3a061d7e37aa7746d8be5d5 100644 (file)
@@ -79,4 +79,5 @@ class CRM_Event_Cart_Form_Checkout_ThankYou extends CRM_Event_Cart_Form_Cart {
     $this->loadCart();
     //$this->loadParticipants( );
   }
+
 }
index a3c4da88f48696b7a7d48a1a11db1d200b470c8f..1bf67c95a7e8ed6981adc26eac5d6616d3ea2855 100644 (file)
@@ -133,4 +133,5 @@ class CRM_Event_Cart_Form_MerParticipant extends CRM_Core_Form {
     }
     return $defaults;
   }
+
 }
index d248e6ad95ef210516e17213af30845c5f999829..e4f95eb807600f36409d007469934c598c280fc4 100644 (file)
@@ -25,4 +25,5 @@ class CRM_Event_Cart_Page_AddToCart extends CRM_Core_Page {
 
     return CRM_Utils_System::redirect($_SERVER['HTTP_REFERER']);
   }
+
 }
index da1a2395ab39cf02a93c118140a5624cd2499f6a..6d55e4e4492d3b678b04dc672e20914799474297 100644 (file)
@@ -52,4 +52,5 @@ class CRM_Event_Cart_Page_CheckoutAJAX {
 
     CRM_Utils_System::civiExit();
   }
+
 }
index 06ea46b528bee86acd9ffaea94369d83c3de70ec..a52e84140352895df4603553630abe69390785fc 100644 (file)
@@ -16,4 +16,5 @@ class CRM_Event_Cart_Page_RemoveFromCart extends CRM_Core_Page {
     $transaction->commit();
     return CRM_Utils_System::redirect($_SERVER['HTTP_REFERER']);
   }
+
 }
index 555f0622478fc28b4b9d4e7753247363329a95a8..84e20dd64e2d9efd221576f22860c51247c35185 100644 (file)
@@ -19,4 +19,5 @@ class CRM_Event_Cart_Page_ViewCart extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index c6d58689a906c65b6239c3c90f9c216148768ffb..337a68a8cb88d430a32e1dfe540d10113b15273a 100644 (file)
@@ -40,4 +40,5 @@ class CRM_Event_Cart_StateMachine_Checkout extends CRM_Core_StateMachine {
     $pages["CRM_Event_Cart_Form_Checkout_ThankYou"] = NULL;
     $this->addSequentialPages($pages, $action);
   }
+
 }
index b60823435fb77343605625ef696acbf266679097..6d5fde45ee97d1db8b42e4c607d5adbfedfc8641 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Config handles all the run time configuration changes that the system needs to deal with.
index 85995ffe63c0297a63d21e81fb604c857cf882b6..085196b0a67e082c97092bfda7aefa1763b89324 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index a97e56f6f60aec001f69b0d71a69243e23928bf9..3154156f06c73a22b53cdbb6146ea636bd6a9641 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -75,4 +75,5 @@ class CRM_Event_Controller_Search extends CRM_Core_Controller {
     // add all the actions
     $this->addActions($uploadDir, $uploadNames);
   }
+
 }
index e5628f00e75cbbdc7ac8455fa3ddc22274c19037..3a77aaaba27b5fd459ad7928ce10873533d6b851 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -239,7 +239,7 @@ class CRM_Event_Form_EventFees {
                  'payment_instrument_id',
                  'contribution_status_id',
                  'receive_date',
-                 'total_amount'
+                 'total_amount',
                ) as $f) {
         if ($f == 'receive_date') {
           list($defaults[$form->_pId]['receive_date']) = CRM_Utils_Date::setDateDefaults($contribution->$f);
@@ -401,7 +401,7 @@ SELECT  id, html_type
         $element = $form->add('select', 'discount_id',
           ts('Discount Set'),
           array(
-            0 => ts('- select -')
+            0 => ts('- select -'),
           ) + $discounts,
           FALSE,
           array('onchange' => "buildFeeBlock( {$form->_eventId}, this.value );")
@@ -507,4 +507,5 @@ SELECT  id, html_type
     $form->assign('outBound_option', $mailingInfo['outBound_option']);
     $form->assign('hasPayment', $form->_paymentId);
   }
+
 }
index 53644e22878f1e9a27b35afaaa9a2e49b4d9f913..5644904319d51e2104e40737693814bafb6fd5f5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -210,7 +210,7 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form {
           array(
             'title' => ts('Manage Events'),
             'url' => $this->_doneUrl,
-          )
+          ),
         );
       }
     }
@@ -220,7 +220,7 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form {
         array(
           'title' => ts('Manage Event Templates'),
           'url' => $this->_doneUrl,
-        )
+        ),
       );
     }
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
@@ -406,4 +406,5 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form {
     CRM_UF_Page_ProfileEditor::registerProfileScripts();
     CRM_UF_Page_ProfileEditor::registerSchemas(array('IndividualModel', 'ParticipantModel'));
   }
+
 }
index 6dbe42fb18cd524e948b8a1217064d11c85dcf13..55405d95c61c2f8176ee75d04acd3b8078518e69 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -119,4 +119,5 @@ class CRM_Event_Form_ManageEvent_Conference extends CRM_Event_Form_ManageEvent {
   public function getTitle() {
     return ts('Conference Slots');
   }
+
 }
index 2507a7cc84012aa4607d59aa0176c43b03f21865..64acb6d04c1ccaa3f9b9d63c7fc9bc4676426a44 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -112,4 +112,5 @@ class CRM_Event_Form_ManageEvent_Delete extends CRM_Event_Form_ManageEvent {
       CRM_Core_Session::setStatus(ts("'%1' has been deleted.", array(1 => $this->_title)), ts('Event Deleted'), 'success');
     }
   }
+
 }
index 0b88920f26f7d484f4b6bf78b3a23e47538a5992..c13daa72ccfcdd6c514ba15a34f27141a9679278 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -371,4 +371,5 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent {
 
     return $defaults;
   }
+
 }
index 5b8a68bcdcf3cef8cb24e0a088b4581e660bfb80..c6b96f7bcc31298210a433c8aec286f6a06d6755 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -147,8 +147,7 @@ class CRM_Event_Form_ManageEvent_Fee extends CRM_Event_Form_ManageEvent {
 
         foreach ($discountFields['options'] as $discountFieldsval) {
           $defaults['discounted_label'][$discountFieldsval['weight']] = $discountFieldsval['label'];
-          $defaults['discounted_value'][$discountFieldsval['weight']][$rowCount] =
-            CRM_Utils_Money::format($discountFieldsval['amount'], NULL, '%a');
+          $defaults['discounted_value'][$discountFieldsval['weight']][$rowCount] = CRM_Utils_Money::format($discountFieldsval['amount'], NULL, '%a');
           $defaults['discount_option_id'][$rowCount][$discountFieldsval['weight']] = $discountFieldsval['id'];
           if (!empty($discountFieldsval['is_default'])) {
             $defaults['discounted_default'] = $discountFieldsval['weight'];
@@ -297,7 +296,7 @@ class CRM_Event_Form_ManageEvent_Fee extends CRM_Event_Form_ManageEvent {
     }
     $this->add('select', 'price_set_id', ts('Price Set'),
       array(
-        '' => ts('- none -')
+        '' => ts('- none -'),
       ) + $price,
       NULL, array('onchange' => "return showHideByValue('price_set_id', '', 'map-field', 'block', 'select', false);")
     );
@@ -821,4 +820,5 @@ class CRM_Event_Form_ManageEvent_Fee extends CRM_Event_Form_ManageEvent {
   public function getTitle() {
     return ts('Event Fees');
   }
+
 }
index 1759544f7c00fd92d7a55cbce900c7c61c549ebb..b4a433f72818bbe8dbc1385983a5564c2769e285 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -204,9 +204,7 @@ class CRM_Event_Form_ManageEvent_Location extends CRM_Event_Form_ManageEvent {
       $this->addRadio('location_option', ts("Choose Location"), $optionTypes);
 
       if (!isset($locationEvents[$this->_oldLocBlockId]) || (!$this->_oldLocBlockId)) {
-        $locationEvents = array(
-            '' => ts('- select -')
-          ) + $locationEvents;
+        $locationEvents = array('' => ts('- select -')) + $locationEvents;
       }
       $this->add('select', 'loc_event_id', ts('Use Location'), $locationEvents);
     }
@@ -260,7 +258,7 @@ class CRM_Event_Form_ManageEvent_Location extends CRM_Event_Form_ManageEvent {
     foreach (array(
                'address',
                'phone',
-               'email'
+               'email',
              ) as $block) {
       if (empty($params[$block]) || !is_array($params[$block])) {
         continue;
@@ -294,4 +292,5 @@ class CRM_Event_Form_ManageEvent_Location extends CRM_Event_Form_ManageEvent {
   public function getTitle() {
     return ts('Event Location');
   }
+
 }
index 72640c0a1b1d42b1c48e6c03dc66336103e78611..579190105698c35c01c78630a2e16bc5ba88eee9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -183,19 +183,13 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent
     $defaults['approval_req_text'] = CRM_Utils_Array::value('approval_req_text', $defaults, ts('Participation in this event requires approval. Submit your registration request here. Once approved, you will receive an email with a link to a web page where you can complete the registration process.'));
 
     if (!empty($defaults['registration_start_date'])) {
-      list($defaults['registration_start_date'],
-        $defaults['registration_start_date_time']
-        ) = CRM_Utils_Date::setDateDefaults($defaults['registration_start_date'],
-        'activityDateTime'
-      );
+      list($defaults['registration_start_date'], $defaults['registration_start_date_time'])
+        = CRM_Utils_Date::setDateDefaults($defaults['registration_start_date'], 'activityDateTime');
     }
 
     if (!empty($defaults['registration_end_date'])) {
-      list($defaults['registration_end_date'],
-        $defaults['registration_end_date_time']
-        ) = CRM_Utils_Date::setDateDefaults($defaults['registration_end_date'],
-        'activityDateTime'
-      );
+      list($defaults['registration_end_date'], $defaults['registration_end_date_time'])
+        = CRM_Utils_Date::setDateDefaults($defaults['registration_end_date'], 'activityDateTime');
     }
 
     return $defaults;
@@ -1024,4 +1018,5 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent
   public function getTitle() {
     return ts('Online Registration');
   }
+
 }
index 781b65184e221d550ad3336f6d69ac8ddd77647d..f57ebb00e684d5db8b55aae7b3498f439e2cc87d 100644 (file)
@@ -211,4 +211,5 @@ class CRM_Event_Form_ManageEvent_Repeat extends CRM_Event_Form_ManageEvent {
     CRM_Core_BAO_RecurringEntity::$_entitiesToBeDeleted = $eventIdsWithNoRegistration;
     return CRM_Core_BAO_RecurringEntity::$_entitiesToBeDeleted;
   }
+
 }
index 45d2f7199cb053f218eaf2adede95f130d6ec77b..c8f48dc952fe3a4c41042c889e858cc6d008a00f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -93,4 +93,5 @@ class CRM_Event_Form_ManageEvent_ScheduleReminders extends CRM_Event_Form_Manage
   public function getTemplateFileName() {
     return 'CRM/Admin/Page/ScheduleReminders.tpl';
   }
+
 }
index 54198ece0aa669e990b3846de67394c10b41e8b7..c4d3578d0e85dcbe423bfd99a9f79a52d8eb0b91 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -55,7 +55,7 @@ class CRM_Event_Form_ManageEvent_TabHeader {
       ->addSetting(array(
         'tabSettings' => array(
           'active' => self::getCurrentTab($tabs),
-        )
+        ),
       ));
     CRM_Event_Form_ManageEvent::addProfileEditScripts();
     return $tabs;
@@ -235,4 +235,5 @@ WHERE      e.id = %1
     $current = $current ? $current : 'settings';
     return $current;
   }
+
 }
index bae80a7a25aff4396a2bb910c68d13a2807c88ce..3ee04fe61c43c0aba6479f81e8d2fe4f61dc7f5a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -530,11 +530,8 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
       }
     }
 
-    list($defaults[$this->_id]['register_date'],
-      $defaults[$this->_id]['register_date_time']
-      ) = CRM_Utils_Date::setDateDefaults(
-      CRM_Utils_Array::value('register_date', $defaults[$this->_id]), 'activityDateTime'
-    );
+    list($defaults[$this->_id]['register_date'], $defaults[$this->_id]['register_date_time'])
+      = CRM_Utils_Date::setDateDefaults(CRM_Utils_Array::value('register_date', $defaults[$this->_id]), 'activityDateTime');
 
     //assign event and role id, this is needed for Custom data building
     $sep = CRM_Core_DAO::VALUE_SEPARATOR;
@@ -1775,4 +1772,5 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
       ));
     }
   }
+
 }
index 6d1d7d4399c5ca7c662b7c3066ed953f529d2fc2..178fbea43e5df92d80077b95ecc0389cb685d750 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -386,4 +386,5 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form {
     list($mailSent, $subject, $message, $html) = CRM_Core_BAO_MessageTemplate::sendTemplate($sendTemplateParams);
     return $mailSent;
   }
+
 }
index e14f071acb374610a100bb2dd3db138b590f3635..f8a6795d527cd2e1fdef75f2894af1acd967f416 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -234,4 +234,5 @@ class CRM_Event_Form_ParticipantView extends CRM_Core_Form {
       )
     );
   }
+
 }
index cfe4db0805fb559661a7b49d83c5b1a39116286f..dba9b6bf57fe0748b1725bd9c5ea01d641e6cc5b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -160,9 +160,9 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
   public $_pcpId;
 
   /* Is event already full.
-     *
-     * @var boolean
-     */
+   *
+   * @var boolean
+   */
 
   public $_isEventFull;
 
@@ -1410,4 +1410,5 @@ WHERE  v.option_group_id = g.id
       CRM_Core_Error::statusBounce(ts('Event ended on %1', array(1 => CRM_Utils_Date::customFormat(CRM_Utils_Array::value('event_end_date', $this->_values['event'])))), $redirect);
     }
   }
+
 }
index 3ad922376bee0869a98aeafeee853d3d65dfc2ee..90200122dfcc33af90638acccab4b504352423b2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -874,4 +874,5 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R
       }
     }
   }
+
 }
index 4fdd2cd163f627ed966bf17dac1e4aae019cedd4..0d087a8051da3f5551bad01b9d7a3eebc43cd50b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1285,4 +1285,5 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration {
       }
     }
   }
+
 }
index 00ddc8457abb4458e4861b7308c56d0d8c62526b..f84f1447b99cc65157c3e9d30cdbaf93172b0892 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -222,4 +222,5 @@ class CRM_Event_Form_Registration_ParticipantConfirm extends CRM_Event_Form_Regi
       );
     }
   }
+
 }
index cfb1aa15d028f80cfe3127f1e2528e6792332550..968ec60b339ae616b5c00d109de24c68306c3bb0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1491,4 +1491,5 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
       }
     }
   }
+
 }
index 6e33d880abeb44f45105773edfee98b6e0a3c20c..b6a00b6d34c159a86a70858be7b60cd883c3b243 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -252,4 +252,5 @@ class CRM_Event_Form_Registration_ThankYou extends CRM_Event_Form_Registration {
   public function getTitle() {
     return ts('Thank You Page');
   }
+
 }
index 481b650590c6ab91a641a2286e056f616ec4ee19..2ca00941ae2a2b3d1e3f4d9a330bdfeb3ae31537 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -453,4 +453,5 @@ class CRM_Event_Form_Search extends CRM_Core_Form_Search {
   public function getTitle() {
     return ts('Find Participants');
   }
+
 }
index a0a2cd6be403b49e95b2b1ec5a99e18201221806..db96476819b5616202c876a1dba690a3873350dd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -109,4 +109,5 @@ class CRM_Event_Form_SearchEvent extends CRM_Core_Form {
       }
     }
   }
+
 }
index 2cc7538dcf2aa533a3d2e9ddd3d2f671f21253ab..d3d8b655f57f0f0949272d8d1bac5c25ad283cdc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -180,4 +180,5 @@ class CRM_Event_Form_Task extends CRM_Core_Form {
       )
     );
   }
+
 }
index e5707ce5a5dad6c128c4bbc6d891048fc7c50707..6a2d7f2be9922c876e2ce496a99a9d0df7385a0d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -252,4 +252,5 @@ class CRM_Event_Form_Task_AddToGroup extends CRM_Event_Form_Task {
           'plural' => 'Added Contacts to %1',
         )), 'success', array('expires' => 0));
   }
+
 }
index ee1ce947fc95466cfa4c3ca4b88bb9aff3c47571..739e7a4a10a0fcfb5065b09a270b90fd3593b174 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -116,4 +116,5 @@ class CRM_Event_Form_Task_Badge extends CRM_Event_Form_Task {
     $params = $this->controller->exportValues($this->_name);
     CRM_Badge_BAO_Badge::buildBadges($params, $this);
   }
+
 }
index 60555e282877cccaa4cf9e17e85e6b65c47e14d9..2e8f6d021b1a69209ed650e3385c314865526711 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -392,4 +392,5 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task {
 
     return $updatedStatusId;
   }
+
 }
index a53ced764dfb1a9a48b0c2c64cfe7be3a945bd86..bf184437104be38b3f7c3a697569a5281b33ac32 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -86,4 +86,5 @@ class CRM_Event_Form_Task_Cancel extends CRM_Event_Form_Task {
       CRM_Event_BAO_Participant::create($value);
     }
   }
+
 }
index 6f23ff5ab5d7abbbd3c9b5f1590cc10932733781..d5f4769628cc8940e9ce7e847e88d7a927a12219 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -136,4 +136,5 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task {
       CRM_Core_Session::setStatus($text, '', 'info');
     }
   }
+
 }
index c95b221868f5d859d2c54ab5387b0ddbe330a280..8b2baec425a48d0c532199faffedbeb3600458ae 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -90,4 +90,5 @@ class CRM_Event_Form_Task_Email extends CRM_Event_Form_Task {
   public function postProcess() {
     CRM_Contact_Form_Task_EmailCommon::postProcess($this);
   }
+
 }
index 046e5f02381bdab6edc62af76b94f449defcef34..eecbadbcd6fe127b01bf0076342c89ddcd5a0f09 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -58,4 +58,5 @@ class CRM_Event_Form_Task_ParticipantStatus extends CRM_Event_Form_Task_Batch {
 
     parent::buildQuickForm();
   }
+
 }
index 53c2ad11bc5f09c04bd5219d027663a5581e5a29..e07e548975c15826447de2c3ebe110073c738b09 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -142,4 +142,5 @@ class CRM_Event_Form_Task_PickProfile extends CRM_Event_Form_Task {
     // also reset the batch page so it gets new values from the db
     $this->controller->resetPage('Batch');
   }
+
 }
index a5458389d3e495c67d7f6815d32c926d39810ce4..fe1b8961d4f15ece10ee624fcef6ea4f3858e0d0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -101,4 +101,5 @@ class CRM_Event_Form_Task_Print extends CRM_Event_Form_Task {
   public function postProcess() {
     // redirect to the main search page after printing is over
   }
+
 }
index 1bc0da939321ea6ae36a6aa518b960102a259477..9ddbe104c2688b614414bf98f6f5f663df5e65e4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -66,4 +66,5 @@ class CRM_Event_Form_Task_Result extends CRM_Event_Form_Task {
     $session->replaceUserContext($url);
     CRM_Utils_System::redirect($url);
   }
+
 }
index df7be728e9559a63e264dbc03f231a5ff3f3a8e8..a3df3063026c5d4f0f594bdb21ca0c7d587cf55d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -135,4 +135,5 @@ class CRM_Event_Form_Task_SaveSearch extends CRM_Event_Form_Task {
     }
     $group = CRM_Contact_BAO_Group::create($params);
   }
+
 }
index 6d6447e263fd3680937efc8c304455bdbb04cbaa..5c514e6e682ae5b196166823c44f01d19d9806ac 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -72,4 +72,5 @@ class CRM_Event_Form_Task_SaveSearch_Update extends CRM_Event_Form_Task_SaveSear
 
     return $defaults;
   }
+
 }
index 6ade4bd60211d864e896026c496fb0e217940d25..cbc13685e830eb58b33a789b8be4600be558c648 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -85,4 +85,5 @@ class CRM_Event_Form_Task_SearchTaskHookSample extends CRM_Event_Form_Task {
       )
     );
   }
+
 }
index 8a74f5b0893db99d6ff680ecfb533f7d36ff38a2..8ed7be39f9f4a614fc0f122fd1a467284ace4064 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -54,4 +54,5 @@ class CRM_Event_Import_Controller extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions($config->uploadDir, array('uploadFile'));
   }
+
 }
index 655a201fcc27b77937b3b9cb6f6b25f3cd556672..3025c3d5aad1ab8f8067daff9b0a09825f9287f1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Event_Import_Field
@@ -114,7 +114,7 @@ class CRM_Event_Import_Field {
       case 'register_date':
         return CRM_Utils_Rule::date($this->_value);
 
-      /*
+      /* @codingStandardsIgnoreStart
         case 'event_id':
             static $events = null;
             if (!$events) {
@@ -127,7 +127,7 @@ class CRM_Event_Import_Field {
                 return false;
             }
             break;
-            */
+      @codingStandardsIgnoreEnd */
 
       default:
         break;
@@ -147,4 +147,5 @@ class CRM_Event_Import_Field {
     }
     return TRUE;
   }
+
 }
index c04c77aa449c6143bc09e678dd0a2f1b3d580221..1166061c2c3945ed3a6c36e8c6b9cd8558f47fcd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -200,4 +200,5 @@ class CRM_Event_Import_Form_DataSource extends CRM_Core_Form {
   public function getTitle() {
     return ts('Upload Data');
   }
+
 }
index 192c5adafd8ac8fabdd98daa3f235a70586d4010..75bfdd647c19c621fc2d2b515a9e32577dc9f918 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -488,4 +488,5 @@ class CRM_Event_Import_Form_MapField extends CRM_Import_Form_MapField {
     // add all the necessary variables to the form
     $parser->set($this);
   }
+
 }
index 45b98456e109b595eb87241b682c7e5269642487..ffba083dda9dd92c41c271847002a7bcffa6f07b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -177,4 +177,5 @@ class CRM_Event_Import_Form_Preview extends CRM_Import_Form_Preview {
       $this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
     }
   }
+
 }
index 85b7693570f3527d3a97fb883e437f4955efc454..670964a83ef3078833cd3b49d2de2d8ef96a3e46 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index c33ba68b8a3aeea8f9b5cec89832b73c66efe0bb..c23f159b7fe3a6e529d77bd50abf20a89cd7ef60 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -74,7 +74,7 @@ abstract class CRM_Event_Import_Parser extends CRM_Import_Parser {
    * @return mixed
    * @throws Exception
    */
-  function run(
+  public function run(
     $fileName,
     $seperator = ',',
     &$mapper,
@@ -215,7 +215,7 @@ abstract class CRM_Event_Import_Parser extends CRM_Import_Parser {
       if ($returnCode & self::DUPLICATE) {
         if ($returnCode & self::MULTIPLE_DUPE) {
           /* TODO: multi-dupes should be counted apart from singles
-                     * on non-skip action */
+           * on non-skip action */
         }
         $this->_duplicateCount++;
         $recordNumber = $this->_lineCount;
@@ -293,7 +293,7 @@ abstract class CRM_Event_Import_Parser extends CRM_Import_Parser {
    * Given a list of the importable field keys that the user has selected
    * set the active fields array to this list
    *
-   * @param array mapped array of values
+   * @param $fieldKeys array mapped array of values
    *
    * @return void
    */
index 10ce73d6985e11f24f6702c14ad6742f86c2d8e0..93d10213dcbd57ba3e22f3f41ffe4ebff5f8ddfc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -508,4 +508,5 @@ class CRM_Event_Import_Parser_Participant extends CRM_Event_Import_Parser {
    */
   public function fini() {
   }
+
 }
index a9d55cc48a7662dfc4dbc4d1fb3dc1f70eafa690..5c942b711d895b4fe808438e8d49da43517aabcf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class introduces component to the system and provides all the
@@ -160,4 +160,5 @@ class CRM_Event_Info extends CRM_Core_Component_Info {
       $shortCuts = array_merge($shortCuts, $shortCut);
     }
   }
+
 }
index 45ba896cbd87bf023bfb49b37676ec95e5b5f501..ac81f60aff997214b5eb19ba64517af513ee0377 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -66,4 +66,5 @@ GROUP BY cv.label";
     }
     CRM_Utils_JSON::output($results);
   }
+
 }
index f6c1d100d2efe48cc08e01fc0e5f35659976f14e..8f35333cda03ce36f2a8a7ddf4a03c67f2ed1a95 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -90,4 +90,5 @@ class CRM_Event_Page_DashBoard extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index ead0bcf0ae2ae6902795da9d6c56ab48045a4220..548d3855c5f54a85171ec94f31027bba3c350605 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -195,7 +195,7 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page {
       $this->assign('mapKey', $config->mapAPIKey);
       $sumLat = $sumLng = 0;
       $maxLat = $maxLng = -400;
-      $minLat = $minLng = +400;
+      $minLat = $minLng = 400;
       foreach ($locations as $location) {
         $sumLat += $location['lat'];
         $sumLng += $location['lng'];
@@ -377,4 +377,5 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page {
     }
     return parent::getTemplateFileName();
   }
+
 }
index 3d11809c87b492c2c6c514ef4c22a4ea876e02f1..727c70430a4c772a444706bd7994e4c9dde87843 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -102,4 +102,5 @@ class CRM_Event_Page_ICalendar extends CRM_Core_Page {
     }
     CRM_Utils_System::civiExit();
   }
+
 }
index 320c328b9dc97ce2b7e5f140b3caf84b9d3016ea..b09b43057dc4ff31d5d4ad7c071f035b729ffde9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -571,4 +571,5 @@ SELECT count(id)
     $aToZBar = CRM_Utils_PagerAToZ::getAToZBar($dao, $this->_sortByCharacter, TRUE);
     $this->assign('aToZ', $aToZBar);
   }
+
 }
index d5c9c387b41cd1e46c9813ea0280f976fc08e81e..2be6361c57d4e7fb9901487fc024c20dcef37a71 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -96,4 +96,5 @@ class CRM_Event_Page_ParticipantListing extends CRM_Core_Page {
     $participantListingClass->preProcess();
     $participantListingClass->run();
   }
+
 }
index a9da2f54a5ced8ff8a806473ee3d2665966c0300..4611a9b6debad730bf87959edfe2bb77af9c28a8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -38,4 +38,5 @@ class CRM_Event_Page_ParticipantListing_Name extends CRM_Event_Page_ParticipantL
 
     parent::preProcess();
   }
+
 }
index 733a9809d687e15ddab45bbd26f4a9b60385bc8b..2d24980a4adf64695760147ec4b76f539f704483 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -38,4 +38,5 @@ class CRM_Event_Page_ParticipantListing_NameAndEmail extends CRM_Event_Page_Part
 
     parent::preProcess();
   }
+
 }
index 6bf6fa8bee61327da9c3bd06cbffc26940521e04..d783d3232b9d6650dbac8802627f4364aaff8535 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -189,4 +189,5 @@ SELECT count( civicrm_contact.id )
 
     return $sort->orderBy();
   }
+
 }
index 61cc97d58267f7e78bd84d1a56a87eadbacd362a..8f41e4fb05c7712a356ae9ad2e42acf6e00a3aa4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -174,4 +174,5 @@ SELECT count( civicrm_contact.id )
 
     return $sort->orderBy();
   }
+
 }
index 861598ad95389b2998b80e147f0ef3c067c769f1..6b9b2ea1bf5a8f4d9bb6ad8d1c4b2c0bffb1a6bf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -303,4 +303,5 @@ class CRM_Event_Page_Tab extends CRM_Core_Page {
       $this->assign('accessContribution', FALSE);
     }
   }
+
 }
index 35f7cfb95960b4de51fbdef27f2ae41eb3ea89f2..e3d164350f7f3d4296accc2acfc461c0109813b0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -67,4 +67,5 @@ class CRM_Event_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBoard {
     parent::preProcess();
     $this->listParticipations();
   }
+
 }
index 02315f1fa0c109d392ce29f91d09ef3a159606ed..9138c9ede0fca4cfd68eec4edc2e4d7ddb82b838 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -313,4 +313,5 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
     }
     return self::$pcPage;
   }
+
 }
index 40879683047451987e3e8049552e96a347e4d1d1..a983983642b4b407854461a4b2d0d2d5f475c180 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -157,7 +157,7 @@ class CRM_Event_Selector_Search extends CRM_Core_Selector_Base implements CRM_Co
    *
    * @return \CRM_Event_Selector_Search
    */
-  function __construct(
+  public function __construct(
     &$queryParams,
     $action = CRM_Core_Action::NONE,
     $eventClause = NULL,
@@ -524,4 +524,5 @@ class CRM_Event_Selector_Search extends CRM_Core_Selector_Base implements CRM_Co
   public function getExportFileName($output = 'csv') {
     return ts('CiviCRM Event Search');
   }
+
 }
index c52bd1253a31e3e2d7853f2613610e9633f15f77..ec2f60071807e9d84855665e80b65c004a1777c9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -97,4 +97,5 @@ class CRM_Event_StateMachine_Registration extends CRM_Core_StateMachine {
 
     $this->addSequentialPages($pages, $action);
   }
+
 }
index ae055cc242570f9e1fcc5bd7dcb4f2e9f71cb85c..89e56c6a49f2d069b93cedcccdbc6f9efb1dd440 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -108,4 +108,5 @@ class CRM_Event_StateMachine_Search extends CRM_Core_StateMachine {
   public function shouldReset() {
     return FALSE;
   }
+
 }
index d46d7e10538400a0b7c92abac2e015073c033f14..5c8940e4f74d7e8e281ea6a958270ba325a453e2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -229,4 +229,5 @@ class CRM_Event_Task {
       self::$_tasks[$value]['result'],
     );
   }
+
 }
index 1227a184ea16c58cfc41cf67a19b196f6f4f2ed1..d991ee3b01603b6da9ffa4f287e717a0db2fee45 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -2038,4 +2038,5 @@ WHERE  {$whereClause}";
     }
     return $componentPaymentFields;
   }
+
 }
index 4fa7177542d8329979a10b66a8187b8562ed7e10..d168ab6d3858db417ddfda0161e3ece0890e436f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -249,4 +249,5 @@ class CRM_Export_Form_Map extends CRM_Core_Form {
   public function getTitle() {
     return ts('Select Fields to Export');
   }
+
 }
index 9e4e7149ff063b244d232f8db3e9db7bfdb6269e..0add335d491a50491dff5bf46bd5b53583a8b5b8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -526,4 +526,5 @@ FROM   {$this->_componentTable}
 
     return $options;
   }
+
 }
index bed1913d9a8922e7bc7688321dc0fef3b93f00ea..84d0b5511631ec2854d1ff7af18a9d64dab98918 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class glues together the various parts of the extension
index ce58165ecc21b496bff458c40ae99c25284096c9..a943188bf50464387a5a199e0090990161a933e0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @package CRM
@@ -275,4 +275,5 @@ class CRM_Extension_Container_Basic implements CRM_Extension_Container_Interface
     }
     return $relUrls;
   }
+
 }
index a5aad8e511e00c041cec45fa10de3b8e86c28036..48b95aa0fdd0712349124f63f320a45cbf5f7124 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @package CRM
@@ -170,4 +170,5 @@ class CRM_Extension_Container_Collection implements CRM_Extension_Container_Inte
     }
     return $k2c;
   }
+
 }
index c64a5f729f1159eb32ad47ffb5f64068d06bf3bf..52c61f86fcdac0a161ada95ddd2a123000fa7a3d 100644 (file)
@@ -41,4 +41,5 @@ class CRM_Extension_Container_Default extends CRM_Extension_Container_Basic {
 
     return $errors;
   }
+
 }
index d57298028dbaabe0264a2c6b67b236cbac168b60..05b55a8282756e0854af2a7d7ee94d312767c48a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @package CRM
@@ -79,4 +79,5 @@ interface CRM_Extension_Container_Interface {
    * Scan the container for available extensions.
    */
   public function refresh();
+
 }
index d0b37f03c0fc359f2a294140f82ecedf36c97721..f462fde7917f83b9ea7c4a5173f1381394fdc519 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @package CRM
@@ -101,4 +101,5 @@ class CRM_Extension_Container_Static implements CRM_Extension_Container_Interfac
       throw new CRM_Extension_Exception_MissingException("Missing extension: $key");
     }
   }
+
 }
index 2e7fed3a0406bb3212184ffb7078e7e67b6ed69b..a067cdad4baf25f6d0e9197e5d4887e8cae790e3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class handles downloads of remotely-provided extensions
index b4e8f46e4b2aca27adbd57f7ba4f8e9f692335e5..21f296f3317cbe24a8565c61cd34433f2aacfeb1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Extension_Exception
index d45ee6fdcb3aba19f730afc5c7bb9373fdc9a0ae..3e8c58bdb86b41826df4eb9dbef416e7cde939ac 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * An extension management operation failed because it would
index d7f333de84bdfe467d7b8809eb8c3cf8245dd564..46d4780ff3f8cf4958d462a188093838ee7b8a5a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * An extension could not be located
index 9abefb3919557cdae958c4104e2ee69f7707fa1d..071c54fa916b07806b35f380191b0e133ea5931f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Error reading XML for an extension
index 6e1b7da41473f07c9234c9d5d081b243f6397f84..3c6a9a6a4d077a95ba09f63003dc824aff306db1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Metadata for an extension (e.g. the extension's "info.xml" file)
index a94397f6b194a2a359bad15069d469b35599ac6a..6429466ae06f3744ef9cef4eeb580d06d504fe19 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * The extension manager handles installing, disabling enabling, and
@@ -573,4 +573,5 @@ class CRM_Extension_Manager {
       return NULL;
     }
   }
+
 }
index f17e26f79959f646f5dc1514f9ce1ceb7cdf6f87..b031f0f75161402f6a393ca3a2fab8aff535b597 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * The extension manager handles installing, disabling enabling, and
@@ -122,4 +122,5 @@ class CRM_Extension_Manager_Base implements CRM_Extension_Manager_Interface {
       $this->onPostInstall($oldInfo);
     }
   }
+
 }
index df8a5cc5697bfb2174c02dd92eb39824a055b2a6..e061255d218cf05786ab30796b08e6b18624cd04 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * The extension manager handles installing, disabling enabling, and
@@ -128,4 +128,5 @@ interface CRM_Extension_Manager_Interface {
    * @return mixed
    */
   public function onPostReplace(CRM_Extension_Info $oldInfo, CRM_Extension_Info $newInfo);
+
 }
index 2215a91c38bd2b03a19c4a3ebb97ff8e1340a2de..6d1cc55ce3602dc18a154e1325ee233a2e111dae 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class stores logic for managing CiviCRM extensions.
@@ -108,4 +108,5 @@ class CRM_Extension_Manager_Module extends CRM_Extension_Manager_Base {
   public function onPreEnable(CRM_Extension_Info $info) {
     $this->callHook($info, 'enable');
   }
+
 }
index 8e031c0df2c3332f40104cd973b8cead344c19ef..53dd48d7dc68852c3c651b4674a231acf6c297ba 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class stores logic for managing CiviCRM extensions.
@@ -302,4 +302,5 @@ class CRM_Extension_Manager_Payment extends CRM_Extension_Manager_Base {
           '', 'error');
     }
   }
+
 }
index 54311b8473d14c88f259c43e8ea31f295dfcce5f..dedbc6b7d85f15bda82fdd9cbe728472920a2cc5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class stores logic for managing CiviCRM extensions.
@@ -139,4 +139,5 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base {
   public function getCustomReportsById() {
     return CRM_Core_OptionGroup::values(self::REPORT_GROUP_NAME, FALSE, FALSE, FALSE, NULL, 'id', FALSE, TRUE);
   }
+
 }
index b371e514ed72c55bb24caf96116d28becb9b6a64..da410c71fb375474687589dfdd8d8616fd7cae7f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class stores logic for managing CiviCRM extensions.
@@ -132,4 +132,5 @@ class CRM_Extension_Manager_Search extends CRM_Extension_Manager_Base {
   protected function getCustomSearchesById() {
     return CRM_Core_OptionGroup::values(self::CUSTOM_SEARCH_GROUP_NAME, FALSE, FALSE, FALSE, NULL, 'id', FALSE, TRUE);
   }
+
 }
index 0c39f30fe9c83608e4f13ed02312f8169ba83729..0b1afae8113b9318f3ab5176345e98e466b32009 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class proivdes various helper functions for locating extensions
@@ -393,7 +393,7 @@ class CRM_Extension_Mapper {
     $pathElm = explode(DIRECTORY_SEPARATOR, $path);
     array_pop($pathElm);
     return implode(DIRECTORY_SEPARATOR, $pathElm) . DIRECTORY_SEPARATOR . self::EXT_TEMPLATES_DIRNAME;
-    */
+     */
   }
 
   /**
@@ -419,4 +419,5 @@ class CRM_Extension_Mapper {
       $this->cache->delete($this->cacheKey . '/moduleFiles');
     }
   }
+
 }
index 81168be60a44a279a9dac88677cf510e35ae208a..581761ba7045c7715ae8216c6cae73107d996613 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class glues together the various parts of the extension
@@ -272,4 +272,5 @@ class CRM_Extension_System {
     }
     return $this->_repoUrl;
   }
+
 }
index 18a4869bd7aea1486726b8925b69466887670e0a..e1ce7429ccbad14e5c7fe4acbbaf32454a7eb0ce 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class stores logic for managing schema upgrades in CiviCRM extensions.
index 5777560f190a54fe4a0303212a10470e8945a30b..fc8751c4ab39c87e5d8a5385aeca26713b7438ca 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -263,4 +263,5 @@ class CRM_Financial_BAO_ExportFormat {
       return FALSE;
     }
   }
+
 }
index 7860dd25790c825110f2fdecfe7825907d43302e..88bd60d6f102ee432221d5f172a17aac42983c21 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -227,4 +227,5 @@ class CRM_Financial_BAO_ExportFormat_CSV extends CRM_Financial_BAO_ExportFormat
 
   public function exportTRANS() {
   }
+
 }
index 74783820b9f613cfbe06c02169817d9c42b920af..6c0665979ae21b48bb0ae9878705f30e33f2ae5e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -370,4 +370,5 @@ class CRM_Financial_BAO_ExportFormat_IIF extends CRM_Financial_BAO_ExportFormat
 
     return $sout;
   }
+
 }
index 9a75609ed2967407cf89863116e2d7b1c7d73c77..2deedd5868c41a6cbd25fa348e935f9a41e92313 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -202,4 +202,5 @@ WHERE cft.id = %1
     );
     return CRM_Core_DAO::singleValueQuery($query, $params);
   }
+
 }
index 9c19f8f9f4e2d961d0b7bf9373fa2c1983746ccc..fc1772e13a45b3a8bad29b4e2a3af6a83ad52232 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -272,4 +272,5 @@ WHERE cc.id IN (' . implode(',', $contactIds) . ') AND con.is_test = 0';
     }
     return FALSE;
   }
+
 }
index 10a871cb2f4cbcdea6e8b5582dd6bab1bbd096c6..f123b6fba539d0c800f146e1e5bfa11a91c7d098 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -187,4 +187,5 @@ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType {
     }
     return $financialType;
   }
+
 }
index 9a550a1410adbfb2b2ac7916188307d49ffadb72..d73aa779c2425237f4a447fa8b1be19af25fd9b1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -297,4 +297,5 @@ WHERE cog.name = 'payment_instrument' ";
     }
     return $titles;
   }
+
 }
index b6151b29b2d7c9ed9c2c0801da504ccc6bf381fa..962337af150fd5af68e00ac9077b7ba22e737fc0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -336,7 +336,7 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
       $processors['values'][$processor['id']]['object'] = CRM_Core_Payment::singleton($mode, $processor);
     }
     /*
-     CRM_Utils_Cache::singleton()->set($cacheKey, $processors);
+    CRM_Utils_Cache::singleton()->set($cacheKey, $processors);
      */
     return $processors['values'];
   }
@@ -475,4 +475,5 @@ INNER JOIN civicrm_contribution       con ON ( mp.contribution_id = con.id )
 
     return $result;
   }
+
 }
index 354d5ad0bd1f6c1d7a6169673c24d6d5b31a0883..49e7a4fe82b040410c6a744564a1037631d0609e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -112,7 +112,7 @@ class CRM_Financial_BAO_PaymentProcessorType extends CRM_Financial_DAO_PaymentPr
     $paymentProcessorType = new CRM_Financial_DAO_PaymentProcessorType();
     $paymentProcessorType->copyValues($params);
 
-    /*
+    /* @codingStandardsIgnoreStart
     // adapted from CRM_Core_Extensions_Payment::install
     foreach (array(
       'class_name',
@@ -134,12 +134,12 @@ class CRM_Financial_BAO_PaymentProcessorType extends CRM_Financial_DAO_PaymentPr
       'billing_mode',
       'is_recur',
       'payment_type'
-    ) as $trimmable) {
+      ) as $trimmable) {
       if (isset($paymentProcessorType->{$trimmable})) {
         $paymentProcessorType->{$trimmable} = trim($paymentProcessorType->{$trimmable});
       }
     }
-    */
+    @codingStandardsIgnoreEnd */
 
     if (isset($paymentProcessorType->billing_mode)) {
       // ugh unidirectional manipulation
index 129df0d25b4d1871678fd66f7d87130ea58c68b8..636cb7be7f2cf0f1b1c42a4a9cf7308d1aee3b53 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -194,4 +194,5 @@ class CRM_Financial_Form_BatchTransaction extends CRM_Contribute_Form {
     }
     return self::$_links;
   }
+
 }
index e459d0cf38a046da0d11ee8f64410e2efecda805..954c57c62763e8769f0dce6b4d6c4032b81374f2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -185,4 +185,5 @@ class CRM_Financial_Form_Export extends CRM_Core_Form {
 
     CRM_Batch_BAO_Batch::exportFinancialBatch($batchIds, $this->_exportFormat);
   }
+
 }
index a3b9edd0b8ff1499755bfc4b5601818fb8a8de7e..ed9a00373396eca63517221cd3a4479c1e783cb1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index eeea3031082d1b41274eace803e198feab138da5..57bf620a95bf02ac14a52d17e5215ed7a5dd48e5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index c3d4ca9d2a923e9da358e94ded69dd8b5efd0558..6679b8398319932036977d1c455121187d54bf53 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 9b7210e3520ea76dacf969ac4d530951aa8f00c3..a5c4152806299cef1e0c43cf3e4741257617b149 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index d56c502170efc0425156203cc848bbf9dbc30118..162dbbf09d70cdb44440dca2b8e68b7529738e93 100644 (file)
@@ -132,4 +132,5 @@ class CRM_Financial_Form_Search extends CRM_Core_Form {
       CRM_Batch_BAO_Batch::closeReOpen($batchIds, $_POST['batch_update']);
     }
   }
+
 }
index 6e4bd6abb6530c683fa2cb63c91f0d98e4586a96..61c702851d1ae5c433581b3a5072f81afa14b81d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -521,4 +521,5 @@ class CRM_Financial_Page_AJAX {
 
     CRM_Utils_JSON::output($batchSummary);
   }
+
 }
index 90e7202ca3dc2b6a620c064d94ac34fd631afec1..e6922b5a9e5d311c820ece27fec37e05fbc1ab77 100644 (file)
@@ -120,4 +120,5 @@ class CRM_Financial_Page_Batch extends CRM_Core_Page_Basic {
     $form->process();
     $form->run();
   }
+
 }
index e613cd4773bf43d11c68b819a791c4a5fc62b420..5c164c068e1264b634a4c4943acb17b2ca0bda7d 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -158,4 +158,5 @@ class CRM_Financial_Page_BatchTransaction extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/batchtransaction';
   }
+
 }
index a9ad5f1ccaafe59690f2acc93e890b8cc4edde08..74e83d25c4fdf2665b9facba6fe8b11deb3b9a70 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -195,4 +195,5 @@ class CRM_Financial_Page_FinancialAccount extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/financial/financialAccount';
   }
+
 }
index 9ed7bebbed658964103faef3be455d4b1c65d7b6..a1ff8ca5bfef5e5e982cbc829864728a394a6ae1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index a8c17c378a877662481e6cc0f7eaae243ff5a68a..8052e60babd54f831d425d72438b21d3a2db21f1 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -221,4 +221,5 @@ class CRM_Financial_Page_FinancialType extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/financial/financialType';
   }
+
 }
index 03de834056df8def7a296ed172ef342f69836050..32dbec8bae78e849dfcc5d72b48bd65aec3d1c29 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -217,4 +217,5 @@ class CRM_Financial_Page_FinancialTypeAccount extends CRM_Core_Page {
     $controller->process();
     $controller->run();
   }
+
 }
index 604132359f1b386c0a057aef82632263a38c0398..ffd92a48c9379289ef5d521b20b87006e0535321 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -352,4 +352,5 @@ class CRM_Friend_BAO_Friend extends CRM_Friend_DAO_Friend {
 
     return $friendDAO;
   }
+
 }
index 950d87bd67429c1468f40db5dcf68fa5e20caa96..a5a2497e7cabfd93c5122346e3b0c953066492c8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -323,4 +323,5 @@ class CRM_Friend_Form extends CRM_Core_Form {
     CRM_Utils_System::setTitle($defaults['thankyou_title']);
     $this->assign('thankYouText', $defaults['thankyou_text']);
   }
+
 }
index 943b01ee75c9e2314fa7030994d09e34074058c6..af060a3bf0862a32b4aa5b6525761d9cf3c8ad55 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -135,4 +135,5 @@ class CRM_Friend_Form_Contribute extends CRM_Contribute_Form_ContributionPage {
   public function getTitle() {
     return ts('Tell a Friend');
   }
+
 }
index 0d6f0803663126ff47ebb9cf6aa34ef0f0d240e5..89f093a93a26b8eb01acfc9d3e4baa2620ebade0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -144,4 +144,5 @@ class CRM_Friend_Form_Event extends CRM_Event_Form_ManageEvent {
   public function getTitle() {
     return ts('Tell a Friend');
   }
+
 }
index c333b1d691d85beb49d8ace824e4ce44bbbadcb7..3b697eb8e914a431b1fa291ac907f778c8934f1e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -408,4 +408,5 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
     $query = "SELECT count(*) FROM civicrm_grant WHERE civicrm_grant.contact_id = {$contactID} ";
     return CRM_Core_DAO::singleValueQuery($query);
   }
+
 }
index b7a9d6bb2fa8043f6e757df003b6ffff97f0e33e..ef705d7b87f70c88ae3ff7f44341055775288124 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -436,4 +436,5 @@ class CRM_Grant_BAO_Query {
    */
   public static function tableNames(&$tables) {
   }
+
 }
index 32c62f1a0cb0e4ab38ba60a927432b114a0b0172..4fecc85dada69099b172e45bd9a185a08d82773d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index d43a0023f4a5b867fa1eb3c32501639f4684483e..de4ab1561e63720927f08902214e397a8e7fe010 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,4 +62,5 @@ class CRM_Grant_Controller_Search extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions();
   }
+
 }
index 3ce8f35a2285b3db62cca2601bb90efd3bf609f9..4428b7d63a1ba8e8f74e08230bae488fb51e8db9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -74,8 +74,7 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form {
     $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
     $this->_grantType = NULL;
     if ($this->_id) {
-      $this->_grantType =
-        CRM_Core_DAO::getFieldValue('CRM_Grant_DAO_Grant', $this->_id, 'grant_type_id');
+      $this->_grantType = CRM_Core_DAO::getFieldValue('CRM_Grant_DAO_Grant', $this->_id, 'grant_type_id');
     }
     $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
 
@@ -330,4 +329,5 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form {
       ));
     }
   }
+
 }
index 18e92c7ca3cc98941e424db40ad9ab0d7eb6df53..8508dca8da70a2fb0b73fd03ed1f44e7d75a6148 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -141,4 +141,5 @@ class CRM_Grant_Form_GrantView extends CRM_Core_Form {
       )
     );
   }
+
 }
index 17d52e685fbc1bb4cce91cb49881668fd5e2e257..160beb12edb727d2d8af04e7dc45722673db4687 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -75,12 +75,10 @@ class CRM_Grant_Form_Search extends CRM_Core_Form_Search {
    *
    * @return void
    */
-  function preProcess() {
-
+  public function preProcess() {
     /**
      * set the button names
      */
-
     $this->_searchButtonName = $this->getButtonName('refresh');
     $this->_actionButtonName = $this->getButtonName('next', 'action');
 
@@ -322,4 +320,5 @@ class CRM_Grant_Form_Search extends CRM_Core_Form_Search {
   public function getTitle() {
     return ts('Find Grants');
   }
+
 }
index 3fcc187ae4b7dd90bb0e549ac439fcb4ff589011..e102569b3af50e3b0b4ec876277f6c68023cbdf0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -169,4 +169,5 @@ class CRM_Grant_Form_Task extends CRM_Core_Form {
       )
     );
   }
+
 }
index 6ac833fa80ba4db5e94089f44d9d34091240259b..339c58019c78f0b6345e44b6579af2666fec9913 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -89,4 +89,5 @@ class CRM_Grant_Form_Task_Delete extends CRM_Grant_Form_Task {
     CRM_Core_Session::setStatus(ts('Deleted Grant(s): %1', array(1 => $deletedGrants)), '', 'info');
     CRM_Core_Session::setStatus(ts('Total Selected Grant(s): %1', array(1 => count($this->_grantIds))), '', 'info');
   }
+
 }
index 72ca056392c0888015fa5c358b0765a688f41a4e..4a4cba8f73ef8639225605ab67841452ff55f355 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -101,4 +101,5 @@ class CRM_Grant_Form_Task_Print extends CRM_Grant_Form_Task {
   public function postProcess() {
     // redirect to the main search page after printing is over
   }
+
 }
index f7fc6da1675e6c906afc56ac4159cb99a4ab0ece..81a8f5ef59170723b01d34a7018ab62055fa6a72 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -79,4 +79,5 @@ class CRM_Grant_Form_Task_Result extends CRM_Grant_Form_Task {
       )
     );
   }
+
 }
index cbbe3b3bfdc6f0822abe58303c6fecb09a3f8530..1115ae2633566b4b6fbce2496eb907f7ac288bda 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -86,4 +86,5 @@ INNER JOIN civicrm_contact ct ON ( grt.contact_id = ct.id )
       )
     );
   }
+
 }
index 9664a62ba1c9bcd4f05a09b1da3adc26a1c5ab55..a5b7ba053d6f356ec26d623401fec54b3538003e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -109,4 +109,5 @@ class CRM_Grant_Form_Task_Update extends CRM_Grant_Form_Task {
     CRM_Core_Session::setStatus($status, '', 'info');
     CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/grant/search', 'force=1&qfKey=' . $qfKey));
   }
+
 }
index ae1405ddf88bf39557c0d072b166a26aee0a7115..1fd9082ab1dbbc53200882c62590f01d63e5236d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class introduces component to the system and provides all the
@@ -139,4 +139,5 @@ class CRM_Grant_Info extends CRM_Core_Component_Info {
       ));
     }
   }
+
 }
index 29429870a2697dcefbce22e69b2fe949b3c5f424..098b3b574cf5a6ea11beffae13c40be2c59c59f6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -73,4 +73,5 @@ class CRM_Grant_Page_DashBoard extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 0c8b3e6488c866006ec378380f64ad661ac212c1..f803992479af549b268c43fd1118e95d50c29c49 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -206,4 +206,5 @@ class CRM_Grant_Page_Tab extends CRM_Contact_Page_View {
       CRM_Utils_System::redirect($url);
     }
   }
+
 }
index ba089a3cb29e330186b95484c5d634922b566ed6..69ba77796e533129696ce6c740cff040595dcff2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -421,4 +421,5 @@ class CRM_Grant_Selector_Search extends CRM_Core_Selector_Base implements CRM_Co
   public function getExportFileName($output = 'csv') {
     return ts('CiviCRM Grant Search');
   }
+
 }
index ed0abaa1695c73f43fc8bfeb6f21d8dca1a044fc..6e6a596110cfd7e7a3b080d89e013092ba15bf4a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -101,4 +101,5 @@ class CRM_Grant_StateMachine_Search extends CRM_Core_StateMachine {
   public function getTaskFormName() {
     return CRM_Utils_String::getClassName($this->_task);
   }
+
 }
index a5ec0f4ac2918c44b88458820adc6d379af6a00c..26b6bd979e40923c6fce4bd950f7c0b40432a636 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -160,4 +160,5 @@ class CRM_Grant_Task {
       self::$_tasks[$value]['result'],
     );
   }
+
 }
index 304333ab456e64e78483883cccf0fd0b5164ff62..657ca23dc032692aac47965cd0a3c1b1fab0ed5e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -81,4 +81,5 @@ class CRM_Group_Controller extends CRM_Core_Controller {
   public function selectorName() {
     return $this->get('selectorName');
   }
+
 }
index a6908ab4ad450eec3878828f317667f101bdd352..9b63a7ae7caffaacdcd734df3d2a141f8626e588 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -484,4 +484,5 @@ WHERE  title = %1
 
     return $parentGroups;
   }
+
 }
index eeb8a34fb10a73d14315be28480cc344c3898ac6..206ff78b63ab11907e1be754edd15560b1738dff 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -108,4 +108,5 @@ class CRM_Group_Form_Search extends CRM_Core_Form {
       }
     }
   }
+
 }
index c8b00438268f011c3d8bc98fd2bdc4d7aea6a7f3..5482b3f52be178fa0627fc6f9e827f0c2aa750ff 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -111,4 +111,5 @@ class CRM_Group_Page_AJAX {
       CRM_Utils_System::civiExit();
     }
   }
+
 }
index e65020f9b0f2f5152bf3fd4c0d65ab770fe08026..bf3160855edfd9a3df080d62239ff87e5897a9e2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -165,4 +165,5 @@ class CRM_Group_Page_Group extends CRM_Core_Page_Basic {
     $form->process();
     $form->run();
   }
+
 }
index 9162de9328e40834203541077170ecb839753291..0cf651290c8011675650f1c9a5d6aa50b584d632 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -58,4 +58,5 @@ class CRM_Group_StateMachine extends CRM_Core_StateMachine {
   public function getTaskFormName() {
     return CRM_Utils_String::getClassName('CRM_Contact_Form_Task_AddToGroup');
   }
+
 }
index 35acb7a570ed006ce0da8cc8bc13a781116196b9..559588dae635eb28f713d062dcb7984b4e97801c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -68,4 +68,5 @@ abstract class CRM_Import_DataSource {
    * Process the form submission
    */
   abstract public function postProcess(&$params, &$db, &$form);
+
 }
index 32c0e6896873bd5bd33d5ff37dc9787023957820..4c78e8797bdff5bea1d1954f219f72392809c40a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -250,6 +250,7 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource {
 
     return $result;
   }
+
 }
 
 /**
index a415c3872c96e70eb67e470c593328a274c179ae..c6a5cb6f939ff1b47216001502bef0434d8802e8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -98,4 +98,5 @@ class CRM_Import_DataSource_SQL extends CRM_Import_DataSource {
 
     $form->set('importTableName', $importJob->getTableName());
   }
+
 }
index 49ab9dbe03cf6b995440a74bd8740396bf81f0c7..fda592821a7518bb22a5764d46e84d7bc3d48976 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index f66f91750fc03a860bc999425fe1d4f6d5edbbb8..179efb42a546e7707a3789b890fec2b752adf9be 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 88a46fe3bc0d2d79c738c61b7e80eec00cc10e8b..6b993e1e76da8c9e8823f417de06fe9ab3c1a3e9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -64,4 +64,5 @@ abstract class CRM_Import_Form_Summary extends CRM_Core_Form {
   public function getTitle() {
     return ts('Summary');
   }
+
 }
index c34b54a287b4270049cc5e80b171375e6b211442..660ed55f8441239fe904465b0ae1c2cf4bc4f563 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index dbbd91b627514f79d0d797f71d20f070f905f58d..038cf268663a6f6e7fbf2d40d271efd318860551 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -57,4 +57,5 @@ class CRM_Import_StateMachine extends CRM_Core_StateMachine {
 
     $this->addSequentialPages($this->_pages, $action);
   }
+
 }
index 08db3bbb5cae0202d433f344a0086b3b827cb772..9a444e3891f90a1ae8e3906fd7c020ad5b1ec9c6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -402,4 +402,5 @@ ORDER BY log_date
 
     return array($titles, $values);
   }
+
 }
index 3f0b4229e90142edab9cec7ec8a4595177e43bec..f2a6196faf532fcee52c03be32caec55b6b875db 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -241,4 +241,5 @@ class CRM_Logging_ReportDetail extends CRM_Report_Form {
     $this->assign('revertURL', CRM_Report_Utils_Report::getNextUrl($this->detail, "$q&revert=1", FALSE, TRUE));
     $this->assign('revertConfirm', ts('Are you sure you want to revert all these changes?'));
   }
+
 }
index 7487f06b4652151aa8afe7f713fa250cf391a83e..25f5d97ce96b26873bbe9e3a8f9a18e6fded635f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -437,4 +437,5 @@ WHERE  log_date <= %1 AND id = %2 ORDER BY log_date DESC LIMIT 1";
     }
     return NULL;
   }
+
 }
index 4ec19735afacfc2d628d2f2dbdba0570daf081bf..b307a84579140907582f926bdab92251891ea48d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -116,7 +116,7 @@ class CRM_Logging_Reverter {
         // DAO-based tables
 
         case in_array($table, array_keys($daos)):
-          $dao = new $daos[$table];
+          $dao = new $daos[$table]();
           foreach ($row as $id => $changes) {
             $dao->id = $id;
             foreach ($changes as $field => $value) {
@@ -189,7 +189,7 @@ class CRM_Logging_Reverter {
         return;
       }
 
-      $dao = new CRM_Contact_DAO_Contact;
+      $dao = new CRM_Contact_DAO_Contact();
       $dao->id = $cid;
       if ($dao->find(TRUE)) {
         // CRM-8102: MySQL can’t parse its own dates
@@ -199,4 +199,5 @@ class CRM_Logging_Reverter {
       }
     }
   }
+
 }
index 6bc0dbd3dd88b9a4f913f57e6f71c5fb52bb0a60..6c6fe46cd200672c638e1173ffb4ac86932d3257 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index acb01917fcf63076dcb3e114fdfe19b8a9066067..fd3b756a25a929a03ac3616ec1cfa868951831d2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -104,4 +104,5 @@ class CRM_Mailing_BAO_BouncePattern extends CRM_Mailing_DAO_BouncePattern {
 
     return $bounce;
   }
+
 }
index 441f9e2ccb1b6468b86f397de839bb35b80e1c68..8563e5e3f5b96005111ceba694208b41780ac527 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -103,4 +103,5 @@ class CRM_Mailing_BAO_Component extends CRM_Mailing_DAO_Component {
     $component->save();
     return $component;
   }
+
 }
index 6340976779f33fe74529f71bca189dfc70d509a4..43a9a07884373531b7c551b6380bd94422225caf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -205,7 +205,7 @@ class CRM_Mailing_BAO_Mailing extends CRM_Mailing_DAO_Mailing {
     );
 
     /* Add all the members of groups excluded from this mailing to the temp
-         * table */
+     * table */
 
     $excludeSubGroup = "INSERT INTO        X_$job_id (contact_id)
                     SELECT  DISTINCT    $g2contact.contact_id
@@ -219,7 +219,7 @@ class CRM_Mailing_BAO_Mailing extends CRM_Mailing_DAO_Mailing {
     $mailingGroup->query($excludeSubGroup);
 
     /* Add all unsubscribe members of base group from this mailing to the temp
-         * table */
+     * table */
 
     $unSubscribeBaseGroup = "INSERT INTO        X_$job_id (contact_id)
                     SELECT  DISTINCT    $g2contact.contact_id
@@ -233,7 +233,7 @@ class CRM_Mailing_BAO_Mailing extends CRM_Mailing_DAO_Mailing {
     $mailingGroup->query($unSubscribeBaseGroup);
 
     /* Add all the (intended) recipients of an excluded prior mailing to
-         * the temp table */
+     * the temp table */
 
     $excludeSubMailing = "INSERT IGNORE INTO X_$job_id (contact_id)
                     SELECT  DISTINCT    $eq.contact_id
@@ -290,7 +290,7 @@ WHERE  c.group_id = {$groupDAO->id}
     );
 
     /* Get the group contacts, but only those which are not in the
-         * exclusion temp table */
+     * exclusion temp table */
 
     $query = "REPLACE INTO       I_$job_id (email_id, contact_id)
 
@@ -3056,4 +3056,5 @@ AND        m.id = %1
     $params['version'] = 3;
     return civicrm_api('MailingContact', 'getcount', $params);
   }
+
 }
index 59669461e03a16e53a8c81abec7a46c31fe4236b..98d103b3830bd71431d3b75d9faa8d2914001aea 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -163,4 +163,5 @@ class CRM_Mailing_BAO_MailingAB extends CRM_Mailing_DAO_MailingAB {
     ));
 
   }
+
 }
index fd808f6b1907ce4611582965bb1b64755e0df460..4f5178e4df381251cefc90831402ad17a86a3195 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1027,4 +1027,5 @@ AND    record_type_id = $targetRecordID
 
     return $result;
   }
+
 }
index ff803cde7a77b82c22139e8f979d5efe33db2142..7b3da4e6f72b1d9d4b7ad73704e2e7e0a1e3ad00 100644 (file)
@@ -64,8 +64,8 @@ class CRM_Mailing_BAO_Query {
       $query->_element['mailing_id'] = 1;
 
       // base table is contact, so join recipients to it
-      $query->_tables['civicrm_mailing_recipients'] = $query->_whereTables['civicrm_mailing_recipients'] =
-        " INNER JOIN civicrm_mailing_recipients ON civicrm_mailing_recipients.contact_id = contact_a.id ";
+      $query->_tables['civicrm_mailing_recipients'] = $query->_whereTables['civicrm_mailing_recipients']
+        " INNER JOIN civicrm_mailing_recipients ON civicrm_mailing_recipients.contact_id = contact_a.id ";
 
       $query->_tables['civicrm_mailing'] = $query->_whereTables['civicrm_mailing'] = 1;
 
@@ -83,8 +83,8 @@ class CRM_Mailing_BAO_Query {
 
       // get mailing status
       if (!empty($query->_returnProperties['mailing_job_status'])) {
-        $query->_tables['civicrm_mailing_job'] = $query->_whereTables['civicrm_mailing_job'] =
-          " LEFT JOIN civicrm_mailing_job ON civicrm_mailing_job.mailing_id = civicrm_mailing.id AND civicrm_mailing_job.parent_id IS NULL AND civicrm_mailing_job.is_test != 1 ";
+        $query->_tables['civicrm_mailing_job'] = $query->_whereTables['civicrm_mailing_job']
+          " LEFT JOIN civicrm_mailing_job ON civicrm_mailing_job.mailing_id = civicrm_mailing.id AND civicrm_mailing_job.parent_id IS NULL AND civicrm_mailing_job.is_test != 1 ";
         $query->_select['mailing_job_status'] = "civicrm_mailing_job.status as mailing_job_status";
         $query->_element['mailing_job_status'] = 1;
       }
@@ -111,8 +111,8 @@ class CRM_Mailing_BAO_Query {
 
       // mailing job end date / completed date
       if (!empty($query->_returnProperties['mailing_job_end_date'])) {
-        $query->_tables['civicrm_mailing_job'] = $query->_whereTables['civicrm_mailing_job'] =
-          " LEFT JOIN civicrm_mailing_job ON civicrm_mailing_job.mailing_id = civicrm_mailing.id AND civicrm_mailing_job.parent_id IS NULL AND civicrm_mailing_job.is_test != 1 ";
+        $query->_tables['civicrm_mailing_job'] = $query->_whereTables['civicrm_mailing_job']
+          " LEFT JOIN civicrm_mailing_job ON civicrm_mailing_job.mailing_id = civicrm_mailing.id AND civicrm_mailing_job.parent_id IS NULL AND civicrm_mailing_job.is_test != 1 ";
         $query->_select['mailing_job_end_date'] = "civicrm_mailing_job.end_date as mailing_job_end_date";
         $query->_element['mailing_job_end_date'] = 1;
       }
@@ -197,7 +197,7 @@ class CRM_Mailing_BAO_Query {
    *
    * @return array|null
    */
-  static function defaultReturnProperties(
+  public static function defaultReturnProperties(
     $mode,
     $includeCustomFields = TRUE
   ) {
@@ -308,7 +308,7 @@ class CRM_Mailing_BAO_Query {
           ts('Bounce type(s)'),
           CRM_Core_PseudoConstant::get('CRM_Mailing_Event_DAO_Bounce', 'bounce_type_id', array(
               'keyColumn' => 'id',
-              'labelColumn' => 'name'
+              'labelColumn' => 'name',
             ))
         );
         return;
@@ -481,4 +481,5 @@ class CRM_Mailing_BAO_Query {
     $query->_tables['civicrm_mailing_recipients'] = $query->_whereTables['civicrm_mailing_recipients'] = 1;
     $query->_tables[$tableName] = $query->_whereTables[$tableName] = 1;
   }
+
 }
index 2a0cf10f82f1289d2d38b62003b00debbb7df10a..4e56c2da6e86659aee9b3f98e87481361c50bf81 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 5519ac9aa13a8457024f9d6df4e097ea24f7677c..71d1354632730f6b42df499a691283e9741fdf80 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -133,4 +133,5 @@ class CRM_Mailing_BAO_Spool extends CRM_Mailing_DAO_Spool {
 
     return TRUE;
   }
+
 }
index 1b0be1768ebe7f8d1bafea1be6e2c417248924f9..86aa45e969b19258f61365d6c085db7c6cdc063d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -153,4 +153,5 @@ class CRM_Mailing_BAO_TrackableURL extends CRM_Mailing_DAO_TrackableURL {
 
     $msg = preg_replace($pattern, $replacement, $msg);
   }
+
 }
index 5c267d24c2053b04225c36c10b34cd41b952d313..f517e5b3802e80330c45745b54187c4b8fb43725 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -90,4 +90,5 @@ class CRM_Mailing_Config extends CRM_Core_Component_Config {
    * @var int
    */
   public $mailThrottleTime = 0;
+
 }
index 35d933721056e752c30a03657f13fcb4b8349822..54bc90d1c2263c92d2b0ca483a57c8515f28820f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -96,4 +96,5 @@ class CRM_Mailing_Controller_Send extends CRM_Core_Controller {
       $uploadNames
     );
   }
+
 }
index 4026d5181f6bd48e0ab62fc13a29ef12eba78765..7f58f60e11705ddc1362edd4810913df826c060b 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -266,8 +266,7 @@ class CRM_Mailing_Event_BAO_Bounce extends CRM_Mailing_Event_DAO_Bounce {
         'name' => "<a href=\"$url\">{$dao->display_name}</a>",
         'email' => $dao->email,
         // FIXME: translate this
-        'type' => (empty($dao->bounce_type)
-          ? ts('Unknown') : $dao->bounce_type
+        'type' => (empty($dao->bounce_type) ? ts('Unknown') : $dao->bounce_type
         ),
         'reason' => $dao->reason,
         'date' => CRM_Utils_Date::customFormat($dao->date),
@@ -275,4 +274,5 @@ class CRM_Mailing_Event_BAO_Bounce extends CRM_Mailing_Event_DAO_Bounce {
     }
     return $results;
   }
+
 }
index 1f003cd0918c0303d64fef00074f39ef41361668..47c015722e93402bc7bdca51652994c10e0bfb2d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -158,4 +158,5 @@ class CRM_Mailing_Event_BAO_Confirm extends CRM_Mailing_Event_DAO_Confirm {
 
     return $group->title;
   }
+
 }
index 2eb5e68da33248546e5e173a59c26a49258ca5bd..403d2428435eefd820ed488630b72241a0e5f558 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index b6bad18f9698baa6202ae82920382e0fee81c325..09c2331fab37bf8387c92dab589dd81f29118831 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -92,7 +92,7 @@ class CRM_Mailing_Event_BAO_Forward extends CRM_Mailing_Event_DAO_Forward {
       (isset($dao->do_not_email) && $dao->do_not_email == 1)
     ) {
       /* We already sent this mailing to $forward_email, or we should
-             * never email this contact.  Give up. */
+       * never email this contact.  Give up. */
 
       return $successfulForward;
     }
@@ -373,4 +373,5 @@ class CRM_Mailing_Event_BAO_Forward extends CRM_Mailing_Event_DAO_Forward {
     }
     return $results;
   }
+
 }
index c61dbbc9010401cd4dba29c98b082f051db006cc..914fe31981838dc9ae04400ae77f6811fce9d027 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -305,4 +305,5 @@ class CRM_Mailing_Event_BAO_Opened extends CRM_Mailing_Event_DAO_Opened {
     }
     return $results;
   }
+
 }
index 1546ac382ffbfe1a4e79a1bcaaa21726775ed57f..cd2fa1ce3815fee8b8f29630debc6477dd3e7f3d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -329,4 +329,5 @@ SELECT DISTINCT(civicrm_mailing_event_queue.contact_id) as contact_id,
       CRM_Core_DAO::executeQuery($sql);
     }
   }
+
 }
index d7ca61e659a896a44e104d69b4a414072b213b15..bf25048f02026b932f88b0dbc36fac406c2fda0b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -449,4 +449,5 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
     }
     return $results;
   }
+
 }
index de6ee6212ac8facadb8f3e5a97f5f6cc6f943871..b23e3972471bf77f5dd1240e9e05d204507357a2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -102,7 +102,7 @@ class CRM_Mailing_Event_BAO_Resubscribe {
     );
 
     /* Make a list of groups and a list of prior mailings that received
-         * this mailing */
+     * this mailing */
 
     $groups = array();
     $mailings = array();
@@ -117,7 +117,7 @@ class CRM_Mailing_Event_BAO_Resubscribe {
     }
 
     /* As long as we have prior mailings, find their groups and add to the
-         * list */
+     * list */
 
     while (!empty($mailings)) {
       $do->query("
@@ -144,7 +144,7 @@ class CRM_Mailing_Event_BAO_Resubscribe {
     CRM_Utils_Hook::unsubscribeGroups('resubscribe', $mailing_id, $contact_id, $group_ids, $base_groups);
 
     /* Now we have a complete list of recipient groups.  Filter out all
-         * those except smart groups and those that the contact belongs to */
+     * those except smart groups and those that the contact belongs to */
 
     $do->query("
             SELECT      $group.id as group_id,
@@ -295,4 +295,5 @@ class CRM_Mailing_Event_BAO_Resubscribe {
       unset($errorScope);
     }
   }
+
 }
index 5cde2ff911855377b18b769c28390b322e132089..f606a35cfced08ae65d9c3da1235294302a7519e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -391,7 +391,7 @@ SELECT     civicrm_email.id as email_id
         $group[$groupID]['status'] = $contactGroups[$groupID]['status'];
         $status = ts('You are already subscribed in %1, your subscription is %2.', array(
             1 => $group[$groupID]['title'],
-            2 => $group[$groupID]['status']
+            2 => $group[$groupID]['status'],
           ));
         CRM_Utils_System::setUFMessage($status);
         continue;
@@ -421,4 +421,5 @@ SELECT     civicrm_email.id as email_id
       CRM_Utils_System::setUFMessage(ts('We had a problem processing your subscription request for %1. You have tried to subscribe to a private group and/or we encountered a database error. Please contact the site administrator.', array(1 => $groupTitle)));
     }
   }
+
 }
index 5e2cc31a329d5fac6e20c3a4cbd0e7a80c6a8ea2..dcadfa6bd5d7063af6906d0c4c6cacf039a556ae 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -58,7 +58,7 @@ class CRM_Mailing_Event_BAO_TrackableURLOpen extends CRM_Mailing_Event_DAO_Track
     $search = new CRM_Mailing_BAO_TrackableURL();
 
     /* To find the url, we also join on the queue and job tables.  This
-         * prevents foreign key violations. */
+     * prevents foreign key violations. */
 
     $job = CRM_Mailing_BAO_MailingJob::getTableName();
     $eq = CRM_Mailing_Event_BAO_Queue::getTableName();
@@ -351,4 +351,5 @@ class CRM_Mailing_Event_BAO_TrackableURLOpen extends CRM_Mailing_Event_DAO_Track
     }
     return $results;
   }
+
 }
index 438afc6394a3662d65ff48ebd9894782398d9c2a..da8f6d03b71394369582a1deae015666197eee83 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -174,7 +174,7 @@ WHERE  email = %2
     );
 
     /* Make a list of groups and a list of prior mailings that received
-         * this mailing */
+     * this mailing */
 
     $groups = array();
     $base_groups = array();
@@ -195,7 +195,7 @@ WHERE  email = %2
     }
 
     /* As long as we have prior mailings, find their groups and add to the
-         * list */
+     * list */
 
     while (!empty($mailings)) {
       $do->query("
@@ -223,8 +223,8 @@ WHERE  email = %2
     CRM_Utils_Hook::unsubscribeGroups('unsubscribe', $mailing_id, $contact_id, $group_ids, $base_group_ids);
 
     /* Now we have a complete list of recipient groups.  Filter out all
-         * those except smart groups, those that the contact belongs to and
-         * base groups from search based mailings */
+     * those except smart groups, those that the contact belongs to and
+     * base groups from search based mailings */
 
     $baseGroupClause = '';
     if (!empty($base_group_ids)) {
@@ -615,4 +615,5 @@ SELECT DISTINCT(civicrm_mailing_event_queue.contact_id) as contact_id,
 
     return array($displayName, $email);
   }
+
 }
index 3477152a076cc271c752f79dd080f61853c354f9..ebce0e735fb21606f89bde7c1943dc912810fa57 100644 (file)
@@ -253,4 +253,5 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form {
   public function getTitle() {
     return ts('Approve/Reject Mailing');
   }
+
 }
index 43e33a2e287e5790e660e1c0db56fbafcc70c6b4..f8e714d1ab6e541e644489f669cca468e455bb2c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -71,7 +71,6 @@ class CRM_Mailing_Form_Browse extends CRM_Core_Form {
    *
    * @return void
    */
-
   public function buildQuickForm() {
     $this->addButtons(array(
         array(
@@ -103,4 +102,5 @@ class CRM_Mailing_Form_Browse extends CRM_Core_Form {
       CRM_Core_DAO::setFieldValue('CRM_Mailing_DAO_Mailing', $this->_mailingId, 'is_archived', TRUE);
     }
   }
+
 }
index 28b907b2a09895397ec2a51e5cd7f2f383d8f273..32d1e8fad2bed95fad3ecb4ccc0e57eae770348c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -193,4 +193,5 @@ class CRM_Mailing_Form_Component extends CRM_Core_Form {
 
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index 29f0ff932b0ee26982651f2426fc964c824e705c..f5d1b18aed2d3384ec73f972e070256d4e5b9017 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -61,7 +61,7 @@ class CRM_Mailing_Form_ForwardMailing extends CRM_Core_Form {
     }
 
     /* Show the subject instead of the name here, since it's being
-         * displayed to external contacts/users */
+     * displayed to external contacts/users */
 
     CRM_Utils_System::setTitle(ts('Forward Mailing: %1', array(1 => $mailing->subject)));
 
@@ -163,4 +163,5 @@ class CRM_Mailing_Form_ForwardMailing extends CRM_Core_Form {
     $config = CRM_Core_Config::singleton();
     $session->pushUserContext($config->userFrameworkBaseURL);
   }
+
 }
index d8cc37d2566e23540443086d369370992bc5094a..9909ad72865536c0cf5fed5cb045fa9bc4517d85 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -608,4 +608,5 @@ class CRM_Mailing_Form_Group extends CRM_Contact_Form_Task {
 
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index 0825dc451a7c0e05172219b6558a01c04eb4ec28..16cfb19e863896efb24f1aa3c03276d3a171b4f8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -124,4 +124,5 @@ class CRM_Mailing_Form_Optout extends CRM_Core_Form {
     }
 
   }
+
 }
index 223d8e25c6f09c6dcabda79ab1edf4a720f95051..ceea9a58f54cd46cf6947d47779c7845b6dcd14b 100644 (file)
@@ -356,4 +356,5 @@ class CRM_Mailing_Form_Schedule extends CRM_Core_Form {
   public function getTitle() {
     return ts('Schedule or Send');
   }
+
 }
index 09de5f3f84a1f37eaff43e14d75cc30e9e420647..9b4a559a163e3274f4fef3250e628b46669881a6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -144,4 +144,5 @@ class CRM_Mailing_Form_Search extends CRM_Core_Form {
       }
     }
   }
+
 }
index 59443fb6044eb4323ad7ccc03d25a89dd9d89eff..21a7c31ec8af5f7d66442e2291d2584d977e30e9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -257,4 +257,5 @@ class CRM_Mailing_Form_Settings extends CRM_Core_Form {
   public function getTitle() {
     return ts('Track and Respond');
   }
+
 }
index 5326290fd88ce61db5d07f078c28984c501ecfca..b8d91680468b34ae09c429a6f73c5ad2ddd321c2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -206,4 +206,5 @@ ORDER BY title";
 
     CRM_Mailing_Event_BAO_Subscribe::commonSubscribe($groups, $params);
   }
+
 }
index 74448afb0772ee6ac9e27b2a487f1301192221ec..a2a6ced6daafb2e92d4c9774e6ab1082652088fe 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -159,4 +159,5 @@ class CRM_Mailing_Form_Task extends CRM_Core_Form {
       )
     );
   }
+
 }
index ab8e2aa33108b178fa4878a586bdb3c5c1d2dff4..cfd35bc75fdfd0a7eb4e71d962a80f3f85ab53ab 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -101,4 +101,5 @@ class CRM_Mailing_Form_Task_Print extends CRM_Mailing_Form_Task {
   public function postProcess() {
     // redirect to the main search page after printing is over
   }
+
 }
index bcdb26f9d5f6c4cccc9cfcde6caadf2f31ab7fef..1b2b6dc06a6d23d3ab7aa8035a00f70073f2eb18 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 991b4d2dd905f0049e196c9e304b0cc31d6699dd..6a4adffa31df747490dc29730fa6381f9ad4bbe5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -142,4 +142,5 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form {
     }
 
   }
+
 }
index 639cf3c3d906ab5950eb36f97e79d517b75b2c44..ff7833e627ccd9d32e8dd054ec0e565199811158 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -637,7 +637,7 @@ class CRM_Mailing_Form_Upload extends CRM_Core_Form {
       }
 
       /* Do a full token replacement on a dummy verp, the current
-             * contact and domain, and the first organization. */
+       * contact and domain, and the first organization. */
 
       // here we make a dummy mailing object so that we
       // can retrieve the tokens that we need to replace
@@ -689,4 +689,5 @@ class CRM_Mailing_Form_Upload extends CRM_Core_Form {
   public function getTitle() {
     return ts('Mailing Content');
   }
+
 }
index 38e64683bd46d75877e292860da31f820f16d034..947d1a8b56bd0d999887bf8c70768ab333098277 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class introduces component to the system and provides all the
@@ -258,4 +258,5 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
    */
   public function creatNewShortcut(&$shortCuts) {
   }
+
 }
index 51259f7e364d3af21406977e4618d2741f6dad1a..6f3f644ca9d68167a314b7c27e1b34acc6015340 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -171,4 +171,5 @@ class CRM_Mailing_MailStore {
     }
     return $dir . DIRECTORY_SEPARATOR . 'cur';
   }
+
 }
index a6de684fc9bd9846e50d1aa1477dfb937fac4a59..d4aacc00687418bd1be481b17dca4ab3e3033318 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -131,4 +131,5 @@ class CRM_Mailing_MailStore_Imap extends CRM_Mailing_MailStore {
     $this->_transport->copyMessages($nr, $this->_processed);
     $this->_transport->delete($nr);
   }
+
 }
index 4c8cfdd9b9c81d155bc649ee09e3bcb46cb6a1f9..dfa634f780ce918ab4d72069482302fbba232e0c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -161,4 +161,5 @@ class CRM_Mailing_MailStore_Localdir extends CRM_Mailing_MailStore {
       throw new Exception("Could not rename $file to $target");
     }
   }
+
 }
index 980451239e64a0da308c06c6182f9e20359194be..7ce192a40310b96bcc328b7f52c583bc25c365ae 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -144,4 +144,5 @@ class CRM_Mailing_MailStore_Maildir extends CRM_Mailing_MailStore {
       throw new Exception("Could not rename $file to $target");
     }
   }
+
 }
index 71f8c27c0a0c23c4b0990dac4588f1893819d57f..fd768e8d31bf1500ba7e769a7c99972fa69423fc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -120,4 +120,5 @@ class CRM_Mailing_MailStore_Mbox extends CRM_Mailing_MailStore {
     $parser->parseMail($set);
     $this->_leftToProcess--;
   }
+
 }
index 060df557dd75df92cfba8552f779e723e4247db5..4dbf594d30c6c525520971e90c07c2012b034f08 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -113,4 +113,5 @@ class CRM_Mailing_MailStore_Pop3 extends CRM_Mailing_MailStore {
     $parser->parseMail($set);
     $this->_transport->delete($nr);
   }
+
 }
index fb2b56be5421ea708de95316fea7e245dde5bb9d..9812ab0fabcd947464f4735c61318713038d62c4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -107,4 +107,5 @@ class CRM_Mailing_Page_AJAX {
     echo CRM_Utils_JSON::encodeDataTableSelector($mailings, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
     CRM_Utils_System::civiExit();
   }
+
 }
index 7301ce0e3c6125e2e48b8b7cfa382117caf7b27b..be2eb4931d56ca3acca8bbd561e1d1ee335fc39a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -339,4 +339,5 @@ class CRM_Mailing_Page_Browse extends CRM_Core_Page {
 
     return implode(' AND ', $clauses);
   }
+
 }
index 419ada767c5ffa2ae260f49900fac8e416ba98ac..769fc8b7746c226f48ad4038e9d1c956a2b18727 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -124,4 +124,5 @@ class CRM_Mailing_Page_Common extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 879d1474e12f8e61983bea8b6d7ebd737af08208..625081fbd29799b9928a24af2ce5545909814d18 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -126,4 +126,5 @@ class CRM_Mailing_Page_Component extends CRM_Core_Page_Basic {
   public function run($args = NULL, $pageArgs = NULL, $sort = NULL) {
     return parent::run($args, $pageArgs, "component_type, is_default desc, name");
   }
+
 }
index 4ba72c44717ed1e3280791e014b379cd33b25e3e..7d3fbcedaaf8e7ecb70a9b179a55a7cc1b6b37e8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -66,4 +66,5 @@ class CRM_Mailing_Page_Confirm extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 605e743bd11f98dec5d9d4eb4cc7ef0ec215c2c4..526f8b8771361f877a8ab415f194f38872892338 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -109,4 +109,5 @@ class CRM_Mailing_Page_Event extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index 9ed0bd363c6a65f3b0e1cba682ed7082d6c04911..9816c3e273ba079f601ea1f489b5d8ad304928e1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -37,4 +37,5 @@ class CRM_Mailing_Page_Optout extends CRM_Mailing_Page_Common {
     $this->_type = 'optout';
     return parent::run();
   }
+
 }
index f9bd04c6974313be79b4a3e0049fb85c0f4f279f..581b36361ff0d9037e8abd1cdcf05ecea550f1cc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -101,4 +101,5 @@ class CRM_Mailing_Page_Preview extends CRM_Core_Page {
     }
     CRM_Utils_System::civiExit();
   }
+
 }
index 61d0fa7ba4674c8c915f0336e01d5c472c5c1f3d..018616ad0813041133734fab3c930bbb167362d7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -141,4 +141,5 @@ class CRM_Mailing_Page_Report extends CRM_Core_Page_Basic {
 
     return CRM_Core_Page::run();
   }
+
 }
index 3563b384be622e3934280297ceea816af22486e7..2596ae7be439a6e29ead66906c98af487c56ca79 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -40,4 +40,5 @@ class CRM_Mailing_Page_Resubscribe extends CRM_Mailing_Page_Common {
     $this->_type = 'resubscribe';
     return parent::run();
   }
+
 }
index fb97b7de0936048a810ee5207df52cb280c0d0b9..e63a47ed8cab5b37ce4d29f4f86865c5ea6738a1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -80,4 +80,5 @@ class CRM_Mailing_Page_Tab extends CRM_Contact_Page_View {
     $this->browse();
     parent::run();
   }
+
 }
index 0a4a30840e095016be5770d075c93a4e828bcd2c..68da0466c5c89c78ec458ea36ad6b2e435326367 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -38,4 +38,5 @@ class CRM_Mailing_Page_Unsubscribe extends CRM_Mailing_Page_Common {
     $this->_type = 'unsubscribe';
     return parent::run();
   }
+
 }
index 16f0455d42277cc685cffcea8cfcbfcfaa13e9a8..34dcd0a686e76da63a64905e022bcc3d1cdd6a2f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -200,4 +200,5 @@ class CRM_Mailing_Page_View extends CRM_Core_Page {
       return $content;
     }
   }
+
 }
index d38864c95b873288b0152ac432d79582aa4663c8..4b7750c227b1976cef46ea69f9c1dc925971166e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -218,4 +218,5 @@ class CRM_Mailing_PseudoConstant extends CRM_Core_PseudoConstant {
       self::$$name = NULL;
     }
   }
+
 }
index 287364bebae9db93c93d92e63e49a0d33fff16c4..3189ce9956ce49e50cacf28a1e1010d2bc8c11ed 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -360,7 +360,7 @@ LEFT JOIN  civicrm_contact scheduledContact ON ( $mailing.scheduled_id = schedul
         if (in_array($row['status'], array(
           'Scheduled',
           'Running',
-          'Paused'
+          'Paused',
         ))) {
           if ($allAccess ||
             ($showApprovalLinks && $showCreateLinks && $showScheduleLinks)
@@ -608,4 +608,5 @@ ORDER BY LEFT(name, 1)
     $aToZBar = CRM_Utils_PagerAToZ::getAToZBar($dao, $this->_parent->_sortByCharacter, TRUE);
     $this->_parent->assign('aToZ', $aToZBar);
   }
+
 }
index eefd5ede4bf10680002c4e5e705d17359084a269..a81627a53badb0b0dbf65bbf5e4fd5bca24e3a4b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -459,4 +459,5 @@ class CRM_Mailing_Selector_Event extends CRM_Core_Selector_Base implements CRM_C
   public function getTitle() {
     return $this->eventToTitle();
   }
+
 }
index 490ffa8f0144e6be03bf620f4bfdcbe275cf8834..f50f13c1cad552f689f7dfe170e283f02345f581 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -147,7 +147,7 @@ class CRM_Mailing_Selector_Search extends CRM_Core_Selector_Base implements CRM_
    *
    * @return \CRM_Mailing_Selector_Search
    */
-  function __construct(
+  public function __construct(
     &$queryParams,
     $action = CRM_Core_Action::NONE,
     $mailingClause = NULL,
@@ -408,4 +408,5 @@ class CRM_Mailing_Selector_Search extends CRM_Core_Selector_Base implements CRM_
   public function getExportFileName($output = 'csv') {
     return ts('CiviCRM Mailing Search');
   }
+
 }
index e9f55fa4e2830eeacff520e86b673427abc2d62f..ff2ac2ae6091e42575c5da1ca24aa459a1fbc6ee 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -72,4 +72,5 @@ class CRM_Mailing_StateMachine_Send extends CRM_Core_StateMachine {
 
     $this->addSequentialPages($this->_pages, $action);
   }
+
 }
index 96f882ee9f5ebe2a20b563998bd77d620c2a0cb8..bf372072925c92b67bd02d33c98374b3dd51c512 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -122,4 +122,5 @@ class CRM_Mailing_Task {
       self::$_tasks[$value]['result'],
     );
   }
+
 }
index 3a6503deee2ebe09b41359d54c807850833323b3..60dc5f196d40d8a4b2f14a100fcb06563998fd93 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -3077,4 +3077,5 @@ WHERE      civicrm_membership.is_test = 0";
     }
     return $cancelledMembershipIds;
   }
+
 }
index a83886a951e5d29e25458e21c113a8551520fbe5..6580800f6e894f9984352154f8fc14557237bae0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 3cced1d432bba80148770f68436322190d4638d8..781e8c889e494f9c8fbe9f65ef4b1b04d588dc61 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -80,4 +80,5 @@ UPDATE civicrm_membership_log
     $params = array(1 => array($contactID, 'Integer'));
     CRM_Core_DAO::executeQuery($query, $params);
   }
+
 }
index aeef774c4a53588f6911258483fbad4089121cde..581165c03068a9105decff6f4d402bd344c90719 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -102,5 +102,4 @@ class CRM_Member_BAO_MembershipPayment extends CRM_Member_DAO_MembershipPayment
     return $result;
   }
 
-
 }
index 55d1f693fbf8a05bf656eda3839805966d0a17e7..55daadbac96013549402a01d475a44e2f37a70d3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -392,4 +392,5 @@ class CRM_Member_BAO_MembershipStatus extends CRM_Member_DAO_MembershipStatus {
     $membershipStatus->free();
     return $statusIds;
   }
+
 }
index b35392376b1aed830f457bb1700602936a9fe492..b5f4dd3eec253cd27194d4d3f3b0da5db91cdf19 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -752,7 +752,8 @@ class CRM_Member_BAO_MembershipType extends CRM_Member_DAO_MembershipType {
     }
   }
 
-  /**                                                                                                                                                                                                         * This function updates all price field value for quick config
+  /**
+   * This function updates all price field value for quick config
    * price set which has membership type
    *
    * @param  int $membershipTypeId membership type id
@@ -795,4 +796,5 @@ SET " . implode(' , ', $updateFields) . " WHERE cpfv.membership_type_id = %1
 AND cps.is_quick_config = 1 AND cps.name != 'default_membership_type_amount'";
     CRM_Core_DAO::executeQuery($query, $queryParams);
   }
+
 }
index 6b29e33ee1647ec35587691f55044141bbf4a183..851966288abf2437a6c2d4340cdbba88efa287df 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -497,4 +497,5 @@ class CRM_Member_BAO_Query {
       $tables = array_merge(array('civicrm_membership' => 1), $tables);
     }
   }
+
 }
index 3864a5d6d2353db90b312693a1aff087bcd746a9..021ba6c94f61c708f3c8cf4b10dda185ecc81c2b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index e7af4c1728688e0f472aa9aede707230dc8b9f31..a8eeaebd2eb276e77a08ade13b3d04acdb8f9183 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,4 +62,5 @@ class CRM_Member_Controller_Search extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions();
   }
+
 }
index e349a8edea6bf445711b5d8e318c2b5d42d7499a..386f6fb5b2e3f2f74c14dbc89f25c1092cc1c66e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -222,4 +222,5 @@ class CRM_Member_Form extends CRM_Contribute_Form_AbstractEditPayment {
       $this->_contributorEmail = $this->_memberEmail;
     }
   }
+
 }
index 4af96fa0febb60d00824f99bfe5e196624b298a4..315efb07dbff6fbff2f24d1c42fd79c72567a0a5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1845,12 +1845,8 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
       // & we should aim to move this function to the BAO layer in future.
       // however, we can assume that the contact_id passed in by the batch
       // function will be the recipient
-      list(
-        $form->_contributorDisplayName,
-        $form->_contributorEmail
-        ) = CRM_Contact_BAO_Contact_Location::getEmailDetails(
-        $formValues['contact_id']
-      );
+      list($form->_contributorDisplayName, $form->_contributorEmail)
+        = CRM_Contact_BAO_Contact_Location::getEmailDetails($formValues['contact_id']);
       if (empty($form->_receiptContactId) || $isBatchProcess) {
         $form->_receiptContactId = $formValues['contact_id'];
       }
@@ -1884,4 +1880,5 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
 
     return TRUE;
   }
+
 }
index f5b6cca94b2d93d712267764e3f8523432d40c58..7313ecc15cc97957d4183dcf0cc8335dcc752c5b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -496,4 +496,5 @@ class CRM_Member_Form_MembershipBlock extends CRM_Contribute_Form_ContributionPa
   public function getTitle() {
     return ts('Memberships');
   }
+
 }
index c7a842525a43e738c3fdd1ad14ee583da07b5795..7c2e8c82f6026dc5ed51ae91d5a092444a983c9f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -151,4 +151,5 @@ class CRM_Member_Form_MembershipConfig extends CRM_Core_Form {
       );
     }
   }
+
 }
index a5c1ee6fcdf29a8c763367e7354f1eeefcf6c94c..995bb8378850fd92ddade8e1e4c864e968ff2e42 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -371,7 +371,7 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
                        'id',
                        'auto_renew',
                        'duration_unit',
-                       'duration_interval'
+                       'duration_interval',
                      ) as $fld) {
               $this->_recurMembershipTypes[$recurMembershipTypes->id][$fld] = $recurMembershipTypes->$fld;
             }
@@ -860,4 +860,5 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
 
     CRM_Core_Session::setStatus($statusMsg, ts('Complete'), 'success');
   }
+
 }
index e8768891f0643dc2b447d87ae4f1d7e1027a5081..1d80f51b61329d1bed845fe08c4e4de5459bb09b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -145,4 +145,5 @@ class CRM_Member_Form_MembershipStatus extends CRM_Member_Form_MembershipConfig
       ), ts('Saved'), 'success');
     }
   }
+
 }
index 20039f06da8ef04b98cdeac8769c1da152bc5c28..ef83468912c5733bb8be6c3ce1c67d5815d79acc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -83,7 +83,6 @@ class CRM_Member_Form_MembershipType extends CRM_Member_Form_MembershipConfig {
       }
     }
 
-
     //setting default fixed_period_start_day & fixed_period_rollover_day
     $periods = array('fixed_period_start_day', 'fixed_period_rollover_day');
     foreach ($periods as $per) {
@@ -235,7 +234,7 @@ class CRM_Member_Form_MembershipType extends CRM_Member_Form_MembershipConfig {
 
     if (in_array(CRM_Utils_Array::value('auto_renew', $params), array(
       1,
-      2
+      2,
     ))) {
       if (($params['duration_interval'] > 1 && $params['duration_unit'] == 'year') ||
         ($params['duration_interval'] > 12 && $params['duration_unit'] == 'month')
@@ -438,4 +437,5 @@ class CRM_Member_Form_MembershipType extends CRM_Member_Form_MembershipConfig {
       }
     }
   }
+
 }
index 134bfe8a59be3da52b354a8708bbc3180120a2e6..c019ee18991c7a543a29965f678fd565e64587b8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -408,4 +408,5 @@ SELECT r.id, c.id as cid, c.display_name as name, c.job_title as comment,
       )
     );
   }
+
 }
index 09397e3429e7144ab9eda9a0d0af4bd4751f5662..26a1cddde3bdca1b95ddb9bdd13b6d110e99e549 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -366,4 +366,5 @@ class CRM_Member_Form_Search extends CRM_Core_Form_Search {
   public function getTitle() {
     return ts('Find Memberships');
   }
+
 }
index b8fc2adc969fa40f7b1159e6645f47c4f791ab2a..25e507e2aad913122f25ef614649d2a6fb3e3679 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -187,4 +187,5 @@ class CRM_Member_Form_Task extends CRM_Core_Form {
       )
     );
   }
+
 }
index d6552097c48df0ea6fb345965591c578636f60c9..878fdbfe8d81dd29bb0b86867308aa89f2267873 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -276,4 +276,5 @@ class CRM_Member_Form_Task_Batch extends CRM_Member_Form_Task {
       CRM_Core_Session::setStatus(ts("No updates have been saved."), ts('Not Saved'), 'alert');
     }
   }
+
 }
index a82e6f659a5e4aa99e750df23d6bf3f335f976fd..10d76dec62d113581804b92a7a85aa0cbe99f23f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -88,4 +88,5 @@ class CRM_Member_Form_Task_Delete extends CRM_Member_Form_Task {
     CRM_Core_Session::setStatus($deletedMembers, ts('Deleted Membership(s)'), 'success');
     CRM_Core_Session::setStatus(ts('Total Selected Membership(s): %1', array(1 => count($this->_memberIds))), '', 'info');
   }
+
 }
index 281c584c499b28cbc52bfd878939580865b0f036..fdbc4378e6f46ee8180e27e2e769f2dbb708af60 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -99,4 +99,5 @@ class CRM_Member_Form_Task_Email extends CRM_Member_Form_Task {
   public function postProcess() {
     CRM_Contact_Form_Task_EmailCommon::postProcess($this);
   }
+
 }
index 507a90f12231f18e1b993ee8b929c213ee8cb2ec..5742c0b6c2839f7c3658a57039295d78f29a740b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -64,8 +64,6 @@ class CRM_Member_Form_Task_Label extends CRM_Member_Form_Task {
   /**
    * Set default values for the form.
    *
-   * @param null
-   *
    * @return array
    *   array of default values
    */
@@ -132,7 +130,7 @@ class CRM_Member_Form_Task_Label extends CRM_Member_Form_Task {
       $labelRows = array();
       $memberships = civicrm_api3('membership', 'get', array(
           'id' => array('IN' => $this->_memberIds),
-          'return' => 'contact_id'
+          'return' => 'contact_id',
         ));
       foreach ($memberships['values'] as $id => $membership) {
         $labelRows[$id] = $rows[$membership['contact_id']];
@@ -145,4 +143,5 @@ class CRM_Member_Form_Task_Label extends CRM_Member_Form_Task {
     CRM_Contact_Form_Task_LabelCommon::createLabel($labelRows, $labelName);
     CRM_Utils_System::civiExit(1);
   }
+
 }
index e0801921f309c6becb1a194285e502e1f37e21c4..51f3966617a828e0eff65654eebdf506b2e3d95c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -113,4 +113,5 @@ class CRM_Member_Form_Task_PDFLetter extends CRM_Member_Form_Task {
   public function listTokens() {
     return CRM_Core_SelectValues::membershipTokens();
   }
+
 }
index b1d7f8ef52475e73cf38a2a8b9874f38e7be34eb..f7df56021bde88068509de65c090bc40796fe246 100644 (file)
@@ -86,4 +86,5 @@ class CRM_Member_Form_Task_PDFLetterCommon extends CRM_Contact_Form_Task_PDFLett
     }
     return $html;
   }
+
 }
index 5081749e1716fbb9e32340c5c9138b8f4cc5b627..dc538ffa01c90fa615f5c39ae478f6b46547fa29 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -144,4 +144,5 @@ class CRM_Member_Form_Task_PickProfile extends CRM_Member_Form_Task {
     // also reset the batch page so it gets new values from the db
     $this->controller->resetPage('Batch');
   }
+
 }
index 59b0d0a341e5b0caf2ac73ba8d9e2956a4d84343..41987d83b608f2f9c2833ab238478b0b34be069a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -101,4 +101,5 @@ class CRM_Member_Form_Task_Print extends CRM_Member_Form_Task {
   public function postProcess() {
     // redirect to the main search page after printing is over
   }
+
 }
index be993f444372eba423c9324b481888fc3b78a991..0ddb832dcf07fffe0672f34f8b0dbec12ccef704 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -63,4 +63,5 @@ class CRM_Member_Form_Task_Result extends CRM_Member_Form_Task {
       )
     );
   }
+
 }
index 98df65eaa0a70fd542809d62aa4cede1582057ef..0c34a12bafbc2ddfb701317d671b44c87f9c85e5 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -85,4 +85,5 @@ WHERE      mem.id IN ( $memberIDs )";
       )
     );
   }
+
 }
index ebce3a6fe60bf8087a25145056707c1e63cea688..f6e70a1b3af2260b3dcc90d28546306c9660819c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -54,4 +54,5 @@ class CRM_Member_Import_Controller extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions($config->uploadDir, array('uploadFile'));
   }
+
 }
index 2055d17bc200d5a5cd06db5316e098a03cb8a9c1..732fd4d290291123c06909d2a24855829e409577 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -203,4 +203,5 @@ class CRM_Member_Import_Field {
 
     return TRUE;
   }
+
 }
index 4890c03eb6e5b23bd989a9b5607f089c74aab82b..4df02edad013c4430061029c203648fcd1c24062 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -68,7 +68,7 @@ class CRM_Member_Import_Form_DataSource extends CRM_Core_Form {
     $this->setMaxFileSize($uploadFileSize);
     $this->addRule('uploadFile', ts('File size should be less than %1 MBytes (%2 bytes)', array(
           1 => $uploadSize,
-          2 => $uploadFileSize
+          2 => $uploadFileSize,
         )), 'maxfilesize', $uploadFileSize);
     $this->addRule('uploadFile', ts('A valid file must be uploaded.'), 'uploadedfile');
     $this->addRule('uploadFile', ts('Input file must be in CSV format'), 'utf8File');
@@ -195,4 +195,5 @@ class CRM_Member_Import_Form_DataSource extends CRM_Core_Form {
   public function getTitle() {
     return ts('Upload Data');
   }
+
 }
index 6f830f517e9b0a9b6da01badccf9536bbcae769b..7cb81b7299c6ea5af135d3b7bf00cabd39c334a6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -520,4 +520,5 @@ class CRM_Member_Import_Form_MapField extends CRM_Import_Form_MapField {
     // add all the necessary variables to the form
     $parser->set($this);
   }
+
 }
index a973a2c97c11fdbbfee932ee8d8e6bc18466acf4..8d2a31ad7c91501f80e18cb5c8f82183d8fd9755 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -196,4 +196,5 @@ class CRM_Member_Import_Form_Preview extends CRM_Import_Form_Preview {
       $this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
     }
   }
+
 }
index c373882722c80f2e5d97750ac16d13fcf6b1683b..dc2537cba8507e238f36ee9fb276cc5edc70132e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -105,7 +105,7 @@ class CRM_Member_Import_Form_Summary extends CRM_Import_Form_Summary {
       'downloadDuplicateRecordsUrl',
       'downloadMismatchRecordsUrl',
       'groupAdditions',
-      'unMatchCount'
+      'unMatchCount',
     );
     foreach ($properties as $property) {
       $this->assign($property, $this->get($property));
index 269e8a4f3c85e437996198e46a13c841fa7a86ec..335458f624dca741c36de901a992f423477a648e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -208,7 +208,7 @@ abstract class CRM_Member_Import_Parser extends CRM_Import_Parser {
       if ($returnCode & self::DUPLICATE) {
         if ($returnCode & self::MULTIPLE_DUPE) {
           /* TODO: multi-dupes should be counted apart from singles
-                     * on non-skip action */
+           * on non-skip action */
         }
         $this->_duplicateCount++;
         $recordNumber = $this->_lineCount;
index aa7f6290ca14bc53c8a2ee66c487eef19605fb22..f57f9663bf0f5913bb8317cb47d3d1e38e9a1af9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -766,4 +766,5 @@ class CRM_Member_Import_Parser_Membership extends CRM_Member_Import_Parser {
 
     return NULL;
   }
+
 }
index e80fe52a7e75f8b8fc1f4b4c8b92528dbc2b5233..82663f4437dbcd129ddcef76259112c83f702b04 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class introduces component to the system and provides all the
@@ -199,4 +199,5 @@ class CRM_Member_Info extends CRM_Core_Component_Info {
       $shortCuts = array_merge($shortCuts, $shortCut);
     }
   }
+
 }
index 580840eb875e519fe77defa8d4542fc79c94de4a..bf3cf84984402c4c483d0a40bf80fa1f0fcd0dcf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -69,4 +69,5 @@ WHERE   id = %1";
     $details['auto_renew'] = CRM_Utils_Array::value('auto_renew', $options[$details]);
     CRM_Utils_JSON::output($details);
   }
+
 }
index 42fa50fd01ddf08fe76860d2365a94d9008c242a..8186bcb800eb04b6bc5fdf02c7a27ebede3841b1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -181,7 +181,8 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page {
     $status = CRM_Member_BAO_MembershipStatus::getMembershipStatusCurrent();
     $status = implode(',', $status);
 
-    /* Disabled for lack of appropriate search
+    /*@codingStandardsIgnoreStart
+     Disabled for lack of appropriate search
 
        The Membership search isn't able to properly filter by join or renewal events.
        Until that works properly, the subtotals shouldn't get links.
@@ -254,7 +255,7 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page {
         }
       }
     }
-    */
+    @codingStandardsIgnoreEnd */
 
     // Temporary replacement for current totals column
 
@@ -456,4 +457,5 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index e51724207f05e034ad4b93f1affe65e54ddd6594..c29ffa0768e32b48650e8310b1ab8638c1dac765 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -210,4 +210,5 @@ class CRM_Member_Page_MembershipStatus extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/member/membershipStatus';
   }
+
 }
index b66aef4709821ccc378aeae77a40321413e09f25..3450f702fe98f5fd5daea29b20c988b7025209db 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -168,4 +168,5 @@ class CRM_Member_Page_MembershipType extends CRM_Core_Page {
     CRM_Member_BAO_MembershipType::convertDayFormat($membershipType);
     $this->assign('rows', $membershipType);
   }
+
 }
index e8c2ced583bdd16184895cf00119b1dbd80b6382..e1306e09d9d802ff9f9db769e5401d54eeb6843a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -604,4 +604,5 @@ class CRM_Member_Page_Tab extends CRM_Core_Page {
   public function getBAOName() {
     return 'CRM_Member_BAO_Membership';
   }
+
 }
index 3d73bc8041e3321ad90f8d087deeddf97f66c4f5..f1c4259a008752472e27de681b76e147778dc493 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -100,4 +100,5 @@ class CRM_Member_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBoard
     parent::preProcess();
     $this->listMemberships();
   }
+
 }
index 66791c5dc4166d2ff2832c50df7224e2462175a9..c23305107907447c4beca12ba8c9adb101f2156c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -131,4 +131,5 @@ class CRM_Member_PseudoConstant extends CRM_Core_PseudoConstant {
       self::$$name = NULL;
     }
   }
+
 }
index e7cb069028c369d7070e0f430e25b3cff09dc94f..2a97033565e9bc31c797ab597a73355baf88a019 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -544,4 +544,5 @@ class CRM_Member_Selector_Search extends CRM_Core_Selector_Base implements CRM_C
   public function getExportFileName($output = 'csv') {
     return ts('CiviCRM Member Search');
   }
+
 }
index eef573eccb88c74e1f60262bba48dfdac55ec737..c0aa52c0cbe9d105675c03b8f69e801ed65f24ff 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -106,4 +106,5 @@ class CRM_Member_StateMachine_Search extends CRM_Core_StateMachine {
   public function shouldReset() {
     return FALSE;
   }
+
 }
index e578fa1d383184d67fc28be0745a99c98e39450f..ea8d8ee1d043ae2b13a360c384cf32bdcf72b67d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -190,4 +190,5 @@ class CRM_Member_Task {
       self::$_tasks[$value]['result'],
     );
   }
+
 }
index ff6c8677a55af305297440a58f7cdafc22bba7a3..464ea016021d61e029ef93827bbc8ec79bcc91ac 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -195,4 +195,5 @@ class CRM_Note_Form_Note extends CRM_Core_Form {
 
     CRM_Core_Session::setStatus(ts('Your Note has been saved.'), ts('Saved'), 'success');
   }
+
 }
index b2bf44f66528b965590444ded002b59826920139..ebf0711af18ce664c20900729c00d17ef7840c67 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -912,4 +912,5 @@ INNER JOIN civicrm_uf_group ufgroup
       return $supporterProfileId;
     }
   }
+
 }
index 9e0ce154dc96d9bb85b4ef2cb9bb20ae9a44b029..7bd50976a2308881bab669a1f07f5e6fda3820e5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -68,4 +68,5 @@ class CRM_PCP_Controller_PCP extends CRM_Core_Controller {
       $this->addActions();
     }
   }
+
 }
index 2dc0b891d78de58a77f91b3d6b64a7932e447658..dc2b4381b925270e085d346626630aa618104d56 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -352,4 +352,5 @@ class CRM_PCP_Form_Campaign extends CRM_Core_Form {
       $session->pushUserContext(CRM_Utils_System::url('civicrm/admin/pcp', 'reset=1'));
     }
   }
+
 }
index 9a05ef2d5cf0a18a8c0737a0cdb7d0bd0db4a943..7a90d167dbfe9bea5db9855b3024eeeab3d0314b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -178,4 +178,5 @@ class CRM_PCP_Form_Contribute extends CRM_Contribute_Form_ContributionPage {
   public function getTitle() {
     return ts('Enable Personal Campaign Pages');
   }
+
 }
index dcd130087786356b31b0cf6138faf3e3d9729465..d6748a7f8c45d22a2c66cc9a384e4d58e0f94225 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -221,4 +221,5 @@ class CRM_PCP_Form_Event extends CRM_Event_Form_ManageEvent {
   public function getTitle() {
     return ts('Enable Personal Campaign Pages');
   }
+
 }
index b276c483a0403818ddcf72a48aae51c015afa464..4545b96f0879e6a74056c1d0559f4810b1c09b90 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -218,4 +218,5 @@ class CRM_PCP_Form_PCP extends CRM_Core_Form {
       }
     }
   }
+
 }
index 9c4447f06c297c17114b7acfc1b169e49e30cee5..1621a3375fd335f2e07a8c555bcafedbb8704a80 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -290,4 +290,5 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form {
 
     CRM_Contribute_BAO_Contribution_Utils::createCMSUser($params, $contactID, 'email');
   }
+
 }
index 3ce4ede20ca8a2e44abb46403e64ac054635bb94..9298a9692676a6724ac7f0c647d9a4bab9d01e96 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -413,4 +413,5 @@ class CRM_PCP_Page_PCP extends CRM_Core_Page_Basic {
     $aToZBar = CRM_Utils_PagerAToZ::getAToZBar($dao, $this->_sortByCharacter, TRUE);
     $this->assign('aToZ', $aToZBar);
   }
+
 }
index 9d3e48e71d64d375c7462878d5a2b66612d732b7..b6df8a6f9a02040c3367742274f7ebb79b37bd51 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -344,4 +344,5 @@ class CRM_PCP_Page_PCPInfo extends CRM_Core_Page {
     }
     return parent::getTemplateFileName();
   }
+
 }
index b47bd53fa40247f473204a36309f6372270b3527..0a60ca7d8087d77ea651a78900a61d07476e09db 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -61,4 +61,5 @@ class CRM_PCP_StateMachine_PCP extends CRM_Core_StateMachine {
 
     $this->addSequentialPages($this->_pages, $action);
   }
+
 }
index 95f110ed6eac87c9bbe45c488b18c4ca7959ffe2..a58a884be56bd1a56b1400fdbb506477fc563695 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1163,4 +1163,5 @@ SELECT  pledge.contact_id              as contact_id,
     $paymentStatus = CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name');
     return array_diff(array_flip($paymentStatus), self::getNonTransactionalStatus());
   }
+
 }
index 2544ef33a0f567b9a3210722e43813061787d1b5..753b01c63f3652b6ec4d4e166725f4a890a248ff 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -305,4 +305,5 @@ class CRM_Pledge_BAO_PledgeBlock extends CRM_Pledge_DAO_PledgeBlock {
       $form->addElement('select', 'pledge_frequency_unit', NULL, $freqUnits);
     }
   }
+
 }
index 2de607bd6371a0ff8f0e806a1d7ff5b22a5d5f2f..7421881b285291899eec839c421264a4b7885e19 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -853,4 +853,5 @@ WHERE civicrm_pledge_payment.contribution_id = {$paymentContributionId}
       }
     }
   }
+
 }
index 129ae568e1897b61a5328d67512b45c6873564a6..89fc70d83a9eb4a237a4d47cdcafa2bd4579f95f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -638,4 +638,5 @@ class CRM_Pledge_BAO_Query {
       $tables = array_merge(array('civicrm_pledge' => 1), $tables);
     }
   }
+
 }
index 55b2666ed827c924910b000c8d8d8ca042f91588..a49bc83c067543c6d66c0a41497587d3cb69bcfe 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Config handles all the run time configuration changes that the system needs to deal with.
index 84fc8d7169b33d5e69d6cc04d1f5354af187abdb..d365375711626151fa5b18ba7a23f36c4990e94b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,4 +62,5 @@ class CRM_Pledge_Controller_Search extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions();
   }
+
 }
index 0295cf3b5550dd7e7989caa66b0ca42139cf09a9..6f0b6f99760e07ed323c24c7cd5a4180b363125d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -188,4 +188,5 @@ class CRM_Pledge_Form_Payment extends CRM_Core_Form {
     $statusMsg = ts('Pledge Payment Schedule has been updated.');
     CRM_Core_Session::setStatus($statusMsg, ts('Saved'), 'success');
   }
+
 }
index 5626f2309c21024f5fc01f20a61a013ba279e285..f66500454023a8624d99f69c9e2f62791d6329d3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -353,7 +353,7 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form {
     $this->add('text', 'eachPaymentAmount', ts('each'), array(
         'size' => 10,
         'style' => "background-color:#EBECE4",
-        'READONLY'
+        0 => 'READONLY', // WTF, preserved because its inexplicable
       ));
 
     //add various dates
@@ -662,4 +662,5 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form {
       ));
     }
   }
+
 }
index 92b45e90579d12832d1bc10943e90e5a5c0c4fd7..83cd422458e1684ca1df72aa6d6f6941c4316db4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -146,4 +146,5 @@ class CRM_Pledge_Form_PledgeView extends CRM_Core_Form {
       )
     );
   }
+
 }
index 06deeeabfb86e708ec7fb21920ec5f6e1116e8c7..5845128b2374f6937f76864f8f697e36f78838e2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -421,4 +421,5 @@ class CRM_Pledge_Form_Search extends CRM_Core_Form_Search {
   public function getTitle() {
     return ts('Find Pledges');
   }
+
 }
index b9e4f69fce7df8eb911c2080a3fd0a00bb8ae755..88633e5981ba3f6a35b7d54bf09729deff178e40 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -172,4 +172,5 @@ class CRM_Pledge_Form_Task extends CRM_Core_Form {
       )
     );
   }
+
 }
index 9d36ada167003c64ed68036958f2b919329eded6..972dc5ed65414a52034759b8169d19114a6d7862 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -89,4 +89,5 @@ class CRM_Pledge_Form_Task_Delete extends CRM_Pledge_Form_Task {
       ));
     CRM_Core_Session::setStatus($status, '', 'info');
   }
+
 }
index a2f8f46cf0e172edc3a0e958d364a375ac638e1f..bc2051e136b3c84a3fa549de7d19f95cf6e9ff2f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -102,4 +102,5 @@ class CRM_Pledge_Form_Task_Print extends CRM_Pledge_Form_Task {
   public function postProcess() {
     // redirect to the main search page after printing is over
   }
+
 }
index 11f55f20eb33e283da68d497150c7e88fdd9cc3a..b82dc4da1bb2ed8fa4d269b22617d4b353f16adc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -63,4 +63,5 @@ class CRM_Pledge_Form_Task_Result extends CRM_Pledge_Form_Task {
       )
     );
   }
+
 }
index 47e2ceb25c4abd13c60cadee6797a78369f82c24..eab1c25ce1c07309c1ad186cb24f2c9c94f21b78 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -83,4 +83,5 @@ INNER JOIN civicrm_contact ct ON ( plg.contact_id = ct.id )
       )
     );
   }
+
 }
index e3eee49aa7e9b99a64ffa4aab4a03484858cd0ee..d0c36c6056bb2a67a60cb81d8cdaf9d74c388025 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class introduces component to the system and provides all the
@@ -184,4 +184,5 @@ class CRM_Pledge_Info extends CRM_Core_Component_Info {
       ));
     }
   }
+
 }
index 694b5f1e93bca5d894f4947d07ffde501604dcfa..a092d57dc7f7d26f5a45d277eee126622ffb05a2 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -101,4 +101,5 @@ WHERE {$whereClause}
     echo json_encode($details);
     CRM_Utils_System::civiExit();
   }
+
 }
index d6d4d9edbaea28e3989ad172ae44b3c979b04a84..74cd59b2aa08d84c57a88d80bf1d670882d60bcb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -115,4 +115,5 @@ class CRM_Pledge_Page_DashBoard extends CRM_Core_Page {
 
     return parent::run();
   }
+
 }
index f9f744a0d08ce9106955e789d199794ef66f58bc..1851844588b49c695b8c64985e3bb00244838ad1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -94,4 +94,5 @@ class CRM_Pledge_Page_Payment extends CRM_Core_Page {
 
     return $controller->run();
   }
+
 }
index 24bf5c565f98e29a8b0a8ce64f06e0e10745f15a..9714348352f49d6d1966dec1bd6f295814c0a762 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -215,4 +215,5 @@ class CRM_Pledge_Page_Tab extends CRM_Core_Page {
     $session = CRM_Core_Session::singleton();
     $session->pushUserContext($url);
   }
+
 }
index 98eb57866e248b70cb823f465671e67f07074e5e..a7ad519538f0b383260b2bf21c189a238c3e557e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -76,4 +76,5 @@ class CRM_Pledge_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBoard
     parent::preProcess();
     $this->listPledges();
   }
+
 }
index d940e01e60f9aca5241e6f62f642f61e88002262..9c1e6a0a2905ad308cb9514faf2cec0bece39bc6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -462,4 +462,5 @@ class CRM_Pledge_Selector_Search extends CRM_Core_Selector_Base {
   public function getExportFileName($output = 'csv') {
     return ts('Pledge Search');
   }
+
 }
index bd709c1e7425c8e135d49aed6d1c6257f1f3b140..a6b05372d13eb475c851b342640dad03d12b0b48 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -108,4 +108,5 @@ class CRM_Pledge_StateMachine_Search extends CRM_Core_StateMachine {
   public function shouldReset() {
     return FALSE;
   }
+
 }
index 3548a5543dc1a50238168ecc8f582ca4495fc11b..d86fe05f47555300d88e612843d31d7a8c905ac6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -169,4 +169,5 @@ class CRM_Pledge_Task {
       self::$_tasks[$value]['result'],
     );
   }
+
 }
index 92be25bc74d12827bff730ce6da46d74d04792c4..d07b4a0e7a7b7fb0d83631ba6a525a45c03131b4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -550,4 +550,5 @@ AND li.entity_id = {$entityId}
     }
     return $tax;
   }
+
 }
index 859063d959e311965923e4d722a514e5a48cc927..b837aedd1f2319dceb0b8cdb4c045c84c73ad5d5 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -803,4 +803,5 @@ WHERE  id IN (" . implode(',', array_keys($priceFields)) . ')';
 
     return $label;
   }
+
 }
index da14f6d76f2dd39017d9604ba9ed74cdb4eeb503..8818da7292d33433718a753530820280e8ebf165 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -276,4 +276,5 @@ WHERE cpse.id IS NOT NULL {$where}";
 
     CRM_Core_DAO::executeQuery($sql, $params);
   }
+
 }
index d03b8b2c7b5ad60dffb2d1afe149ab06a9d4fd32..494530164cf99654147c615ea9a08b6b298f5967 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1428,4 +1428,5 @@ WHERE       ps.id = %1
 
     return $lineItem;
   }
+
 }
index ae5205084116fc132eef13fd8693e59dcb768deb..155bbb8a82678633775499ba7da59f491bb99f3e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -101,4 +101,5 @@ class CRM_Price_Form_DeleteField extends CRM_Core_Form {
       CRM_Core_Session::setStatus(ts('The Price Field \'%1\' has been deleted.', array(1 => $this->_title)), '', 'success');
     }
   }
+
 }
index 2fbdefb0f928106414958fb41f3d7d42af9680b2..cbfad144f845d917393f052be0f5a3cea2b63ae0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -104,4 +104,5 @@ class CRM_Price_Form_DeleteSet extends CRM_Core_Form {
       ), 'Unable to Delete', 'error');
     }
   }
+
 }
index cc86953868fdbc3ddbf2e2f2cf6f7bfaaa37b432..1127e1e4c09ea41f5f5ca4eebc7ac88fef5266a5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -671,4 +671,5 @@ class CRM_Price_Form_Field extends CRM_Core_Form {
       $session->replaceUserContext(CRM_Utils_System::url('civicrm/admin/price/field', 'reset=1&action=browse&sid=' . $this->_sid));
     }
   }
+
 }
index bd649327f130e73a9ddbd73543b214def37e2551..8947d883069aaea2148d25c4a2d273c6ee9c1b0c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -196,11 +196,11 @@ class CRM_Price_Form_Option extends CRM_Core_Form {
       //CRM_Core_DAO::getFieldValue( 'CRM_Price_DAO_PriceField', $this->_fid, 'weight', 'id' );
       // FIX ME: duplicate rule?
       /*
-            $this->addRule( 'label',
-                            ts('Duplicate option label.'),
-                            'optionExists',
-                            array( 'CRM_Core_DAO_OptionValue', $this->_oid, $this->_ogId, 'label' ) );
-            */
+      $this->addRule( 'label',
+      ts('Duplicate option label.'),
+      'optionExists',
+      array( 'CRM_Core_DAO_OptionValue', $this->_oid, $this->_ogId, 'label' ) );
+       */
 
       // value
       $this->add('text', 'amount', ts('Option Amount'), NULL, TRUE);
@@ -320,4 +320,5 @@ class CRM_Price_Form_Option extends CRM_Core_Form {
       CRM_Core_Session::setStatus(ts("The option '%1' has been saved.", array(1 => $params['label'])), ts('Value Saved'), 'success');
     }
   }
+
 }
index 01ad01b88302b6b2ec87df4b82a2ab8de6dc17c9..ac6675c5d1776a7cd840d2a38ed9f2723128d19e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -146,4 +146,5 @@ class CRM_Price_Form_Preview extends CRM_Core_Form {
       )
     );
   }
+
 }
index 6bea08d0dcc0b5200fb4328b43280d51fe5a1564..a167af19fdea3fe1abad6996f97121a724217707 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -303,4 +303,5 @@ class CRM_Price_Form_Set extends CRM_Core_Form {
       $session->replaceUserContext($url);
     }
   }
+
 }
index 845ee59eaaebc9f7e6fe336d97c3e43993364780..ad4db08f0bea0e54074f1c7225a1885cf364309c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -343,4 +343,5 @@ class CRM_Price_Page_Field extends CRM_Core_Page {
     $controller->process();
     $controller->run();
   }
+
 }
index d6f7eddf9522032f2a82922ddf2fb7136551425e..3c8898f2a18c61f74ce050c20b8efb7bcde8babb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -76,12 +76,10 @@ class CRM_Price_Page_Option extends CRM_Core_Page {
   /**
    * Get the action links for this page.
    *
-   * @param null
-   *
    * @return array
    *   array of action links that we need to display for the browse screen
    */
-  function &actionLinks() {
+  public function &actionLinks() {
     if (!isset(self::$_actionLinks)) {
       self::$_actionLinks = array(
         CRM_Core_Action::UPDATE => array(
@@ -120,8 +118,6 @@ class CRM_Price_Page_Option extends CRM_Core_Page {
   /**
    * Browse all price fields.
    *
-   * @param null
-   *
    * @return void
    */
   public function browse() {
@@ -255,12 +251,9 @@ class CRM_Price_Page_Option extends CRM_Core_Page {
    * This method is called after the page is created. It checks for the
    * type of action and executes that action.
    *
-   * @param null
-   *
    * @return void
    */
   public function run() {
-
     // get the field id
     $this->_fid = CRM_Utils_Request::retrieve('fid', 'Positive',
       $this, FALSE, 0
@@ -280,7 +273,7 @@ class CRM_Price_Page_Option extends CRM_Core_Page {
       array(
         'title' => ts('Price Fields'),
         'url' => CRM_Utils_System::url('civicrm/admin/price/field', 'reset=1&sid=' . $this->_sid),
-      )
+      ),
     );
     CRM_Utils_System::appendBreadCrumb($breadcrumb);
 
@@ -324,4 +317,5 @@ class CRM_Price_Page_Option extends CRM_Core_Page {
     // Call the parents run method
     return parent::run();
   }
+
 }
index 84d377d1e913466ca0542a3183a0c98f277d31c8..19a7f9d2481bcfc53ff4aa64fe81bea70ee82d83 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -326,4 +326,5 @@ class CRM_Price_Page_Set extends CRM_Core_Page {
 
     CRM_Utils_System::redirect(CRM_Utils_System::url(CRM_Utils_System::currentPath(), 'reset=1'));
   }
+
 }
index 295b5043c1f3c3a9093ab191a7c092a76de34e85..47b300ff51853fd3dfa6af5089d875e80a9a08aa 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1379,4 +1379,5 @@ class CRM_Profile_Form extends CRM_Core_Form {
     $fileName = $this->checkTemplateFileExists('extra.');
     return $fileName ? $fileName : parent::overrideExtraTemplateFileName();
   }
+
 }
index 6bd7670b58a6730effeb7dde9623d76ed9e9979b..b7bedd4bb06e66e0467c78f47dcb41216edbeb0c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -123,4 +123,5 @@ class CRM_Profile_Form_Dynamic extends CRM_Profile_Form {
   public function postProcess() {
     parent::postProcess();
   }
+
 }
index 23bd609dbaadde299fe7b2f920c928a998276cda..bf6273635f05a5d58e9ed2968f585d258332ae3a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -341,4 +341,5 @@ SELECT module,is_reserved
 
     return $errors;
   }
+
 }
index f93cdcc0545d9708485edb1adcee117e998ec07c..143438f09258b0857c445f8fb79c02d560bc3c3c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -133,4 +133,5 @@ class CRM_Profile_Form_Search extends CRM_Profile_Form {
    */
   public function postProcess() {
   }
+
 }
index 95a16677eb50ae1b3c3ec9fdadbbe66e9b51d60d..31fc7601b14dd14d9c574218fbeebced87f48dad 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -436,4 +436,5 @@ class CRM_Profile_Page_Dynamic extends CRM_Core_Page {
     $fileName = $this->checkTemplateFileExists('extra.');
     return $fileName ? $fileName : parent::overrideExtraTemplateFileName();
   }
+
 }
index 9c5cd3725815ffd8cf1b3b1ede73b23468ad7a70..f48a8a59647074ca2648379126270f2c70142345 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -512,4 +512,5 @@ class CRM_Profile_Page_Listings extends CRM_Core_Page {
     $fileName = $this->checkTemplateFileExists('extra.');
     return $fileName ? $fileName : parent::overrideExtraTemplateFileName();
   }
+
 }
index 33b84a15d7208a3b7a1655568407a059df531867..2311d1c04a66b19b75e1a53a6349eec717e9d81c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -443,4 +443,5 @@ class CRM_Profile_Page_MultipleRecordFieldsListing extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return '';
   }
+
 }
index cd989b5b8732b22762fac9337757873a355ebefd..642f45cac8a78ed3334f5a0b7da8d35b06119fae 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 539ca6baa2e50fc8bc0ce58583f6048101fa10a8..68b8dfd3603b144df12396a23f7601ec921c2c04 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -223,4 +223,5 @@ class CRM_Profile_Page_View extends CRM_Core_Page {
     $fileName = $this->checkTemplateFileExists('extra.');
     return $fileName ? $fileName : parent::overrideExtraTemplateFileName();
   }
+
 }
index 9a48e63a7becfe30b9354456dd6e43ff5ce4af1d..092b6a6da5d7621be5357e46dc3655369dcdee35 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -794,4 +794,5 @@ class CRM_Profile_Selector_Listings extends CRM_Core_Selector_Base implements CR
         = $multiRecordTableName = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $customGroupId, 'table_name');
     }
   } //func close
+
 }
index 3e7867a36060b79b8c1957bf910c6420ea960f90..c22a7976d094f4578a383b5feafc965d28a29aa5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -63,4 +63,5 @@ class CRM_Queue_BAO_QueueItem extends CRM_Queue_DAO_QueueItem {
     $foundName = CRM_Core_DAO::singleValueQuery($checkTableSql);
     return ($foundName == 'civicrm_queue_item');
   }
+
 }
index f642ea8e66ec85f67c70af09c13f1feb70129bd3..4a694a41a7f171589963ba9bcb81750f79e20f47 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * To ensure that PHP errors or unhandled exceptions are reported in JSON
@@ -189,4 +189,5 @@ class CRM_Queue_ErrorPolicy {
     }
     CRM_Utils_JSON::output($response);
   }
+
 }
index f75c5f9597c638c1b52a4192e8572ca835a838c9..fe884f137019e2e84e6bd7bc61dc1b2f1e043ce5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This file hard-codes the path entries for the queueing UI, which
@@ -87,4 +87,5 @@ class CRM_Queue_Menu {
         // unrecognized
     }
   }
+
 }
index 28b5bad7ab540deed2522ef7c483e097e186c827..81a67d56a3286ab86e55e0d3a7afd6ffcb9011d5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Queue_Page_AJAX
@@ -124,4 +124,5 @@ class CRM_Queue_Page_AJAX {
     }
     CRM_Utils_JSON::output($result);
   }
+
 }
index b71efc8dbcf5ae5e5373bf8ec1b13ff7d1f6dbf0..8de6742ce375f23e2e5ab693e40749a79c1cd28c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CRM/Core/Page.php';
@@ -79,4 +79,5 @@ class CRM_Queue_Page_Runner extends CRM_Core_Page {
       parent::run();
     }
   }
+
 }
index 0fe31594a6d242b8bccec901e847b72bb86752d2..8a2253491c6168bef840aced16b48e2689273cf4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * A queue is an object (usually backed by some persistent data store)
@@ -145,4 +145,5 @@ abstract class CRM_Queue_Queue {
    *   The item returned by claimItem.
    */
   public abstract function releaseItem($item);
+
 }
index 49dc16ffd69d148ef4fb8759457b6740e016d351..f91d5a9455130859fbc65a517e7739c5de303dde 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * A queue implementation which stores items in the CiviCRM SQL database
@@ -193,4 +193,5 @@ class CRM_Queue_Queue_Memory extends CRM_Queue_Queue {
   public function releaseItem($item) {
     unset($this->releaseTimes[$item->id]);
   }
+
 }
index 03f49bee909b7d4a3557b3faeca489490f193ebd..e7898ed5734c3c47b18052693fa768ea44b1a3e2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * A queue implementation which stores items in the CiviCRM SQL database
@@ -228,4 +228,5 @@ class CRM_Queue_Queue_Sql extends CRM_Queue_Queue {
     CRM_Core_DAO::executeQuery($sql, $params);
     $dao->free();
   }
+
 }
index 1f694b677a062126664f669e81b930340a65a9e4..d6cf91a05ba1453a88ca921932bf4ebeb22ea9fa 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * The queue runner is a helper which runs all jobs in a queue.
@@ -360,4 +360,5 @@ class CRM_Queue_Runner {
     }
     return $this->taskCtx;
   }
+
 }
index 091c1fc8b36c23e427f6706c50b2ac2019f3239e..c22a4bc0ed99c73fc7b88b6690c9d03f62261395 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * The queue service provides an interface for creating or locating
@@ -168,4 +168,5 @@ class CRM_Queue_Service {
     $class = new ReflectionClass($this->getQueueClass($queueSpec['type']));
     return $class->newInstance($queueSpec);
   }
+
 }
index 682b192c350f15b430d6bf1ba41ee59db1c15aaf..4117d91633ea3772c2e720332372f5794a1ff4e2 100644 (file)
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * A task is an item that can be enqueued and later exectued
  */
 class CRM_Queue_Task {
 
-  /** Task was performed successfully */
+  /**
+   * Task was performed successfully
+   */
   const TASK_SUCCESS = 1;
 
-  /** Task failed and should not be retried */
+  /**
+   * Task failed and should not be retried
+   */
   const TASK_FAIL = 2;
 
   /**
@@ -88,4 +92,5 @@ class CRM_Queue_Task {
       throw new Exception('Failed to call callback: ' . print_r($this->callback));
     }
   }
+
 }
index cdbbb1137d4d21d253bd958ff6071c879cf82885..c3a0c391f7868db146e2a4f71f1a35d1384dca61 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Describe the runtime environment in which a queue task executes
@@ -39,4 +39,5 @@ class CRM_Queue_TaskContext {
    * @var Log
    */
   public $log;
+
 }
index 711933bc3c3b192dc8933fe86a19515e16414631..03b4beebd43d49e19d40cc455777bef5e131dda4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -100,4 +100,5 @@ class CRM_Report_BAO_Hook {
     }
     return array($contactIdClause, $join);
   }
+
 }
index c6782e75830e5d1126362d5a8f565cf2f8017570..77a7451821716d933d83d4d903cccbde2eb2cd7b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -57,4 +57,5 @@ class CRM_Report_BAO_HookInterface {
   public function logDiffClause(&$reportObj, $table) {
     return array();
   }
+
 }
index bfdf4d572a4dbc81a263c63341097bc301dcc131..06f00b03d5fe9316083b62f2a45dc59b0db159fd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -254,4 +254,5 @@ class CRM_Report_BAO_ReportInstance extends CRM_Report_DAO_ReportInstance {
     }
     return NULL;
   }
+
 }
index 172c7829e242cceb26f713b49099ce78d8c3964e..7631715d60e434fc8fff9ce9706ee49aa3807856 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index f6cc59d6b5703737fc633a81c1df8dadf457d283..9314b1f1f06f02d636a65d091e6c409675532911 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -427,14 +427,14 @@ class CRM_Report_Form extends CRM_Core_Form {
       'force',
       'Boolean',
       CRM_Core_DAO::$_nullObject
-    );
+      );
 
     $this->_dashBoardRowCount
       = CRM_Utils_Request::retrieve(
       'rowCount',
       'Integer',
       CRM_Core_DAO::$_nullObject
-    );
+      );
 
     $this->_section = CRM_Utils_Request::retrieve('section', 'Integer', CRM_Core_DAO::$_nullObject);
 
@@ -1333,7 +1333,7 @@ class CRM_Report_Form extends CRM_Core_Form {
       case CRM_Report_Form::OP_INT:
       case CRM_Report_Form::OP_FLOAT:
 
-        return array(
+        $result = array(
           'lte' => ts('Is less than or equal to'),
           'gte' => ts('Is greater than or equal to'),
           'bw' => ts('Is between'),
@@ -1345,39 +1345,44 @@ class CRM_Report_Form extends CRM_Core_Form {
           'nll' => ts('Is empty (Null)'),
           'nnll' => ts('Is not empty (Null)'),
         );
+        return $result;
 
       case CRM_Report_Form::OP_SELECT:
-        return array(
+        $result = array(
           'eq' => ts('Is equal to'),
         );
+        return $result;
 
       case CRM_Report_Form::OP_MONTH:
       case CRM_Report_Form::OP_MULTISELECT:
       case CRM_Report_Form::OP_ENTITYREF:
 
-        return array(
+        $result = array(
           'in' => ts('Is one of'),
           'notin' => ts('Is not one of'),
         );
+        return $result;
 
       case CRM_Report_Form::OP_DATE:
 
-        return array(
+        $result = array(
           'nll' => ts('Is empty (Null)'),
           'nnll' => ts('Is not empty (Null)'),
         );
+        return $result;
 
       case CRM_Report_Form::OP_MULTISELECT_SEPARATOR:
         // use this operator for the values, concatenated with separator. For e.g if
         // multiple options for a column is stored as ^A{val1}^A{val2}^A
-        return array(
+        $result = array(
           'mhas' => ts('Is one of'),
           'mnot' => ts('Is not one of'),
         );
+        return $result;
 
       default:
         // type is string
-        return array(
+        $result = array(
           'has' => ts('Contains'),
           'sw' => ts('Starts with'),
           'ew' => ts('Ends with'),
@@ -1387,6 +1392,7 @@ class CRM_Report_Form extends CRM_Core_Form {
           'nll' => ts('Is empty (Null)'),
           'nnll' => ts('Is not empty (Null)'),
         );
+        return $result;
     }
   }
 
@@ -4102,4 +4108,5 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a
       'placeholder' => ts('- select -'),
     );
   }
+
 }
index 2d622b544c96ddbbe2b2aa2729342bdef76c1a50..bd7ca05529afacaebdcfc7b243557460359b89ae 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -62,246 +62,246 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
     asort($this->activityTypes);
 
     $this->_columns = array(
-        'civicrm_contact' => array(
-          'dao' => 'CRM_Contact_DAO_Contact',
-          'fields' => array(
-            'contact_source' => array(
-              'name' => 'sort_name',
-              'title' => ts('Source Contact Name'),
-              'alias' => 'civicrm_contact_source',
-              'no_repeat' => TRUE,
-            ),
-            'contact_assignee' => array(
-              'name' => 'sort_name',
-              'title' => ts('Assignee Contact Name'),
-              'alias' => 'civicrm_contact_assignee',
-              'dbAlias' => "civicrm_contact_assignee.sort_name",
-              'default' => TRUE,
-            ),
-            'contact_target' => array(
-              'name' => 'sort_name',
-              'title' => ts('Target Contact Name'),
-              'alias' => 'civicrm_contact_target',
-              'dbAlias' => "civicrm_contact_target.sort_name",
-              'default' => TRUE,
-            ),
-            'contact_source_id' => array(
-              'name' => 'id',
-              'alias' => 'civicrm_contact_source',
-              'dbAlias' => "civicrm_contact_source.id",
-              'no_display' => TRUE,
-              'default' => TRUE,
-              'required' => TRUE,
-            ),
-            'contact_assignee_id' => array(
-              'name' => 'id',
-              'alias' => 'civicrm_contact_assignee',
-              'dbAlias' => "civicrm_contact_assignee.id",
-              'no_display' => TRUE,
-              'default' => TRUE,
-              'required' => TRUE,
-            ),
-            'contact_target_id' => array(
-              'name' => 'id',
-              'alias' => 'civicrm_contact_target',
-              'dbAlias' => "civicrm_contact_target.id",
-              'no_display' => TRUE,
-              'default' => TRUE,
-              'required' => TRUE,
-            ),
+      'civicrm_contact' => array(
+        'dao' => 'CRM_Contact_DAO_Contact',
+        'fields' => array(
+          'contact_source' => array(
+            'name' => 'sort_name',
+            'title' => ts('Source Contact Name'),
+            'alias' => 'civicrm_contact_source',
+            'no_repeat' => TRUE,
+          ),
+          'contact_assignee' => array(
+            'name' => 'sort_name',
+            'title' => ts('Assignee Contact Name'),
+            'alias' => 'civicrm_contact_assignee',
+            'dbAlias' => "civicrm_contact_assignee.sort_name",
+            'default' => TRUE,
+          ),
+          'contact_target' => array(
+            'name' => 'sort_name',
+            'title' => ts('Target Contact Name'),
+            'alias' => 'civicrm_contact_target',
+            'dbAlias' => "civicrm_contact_target.sort_name",
+            'default' => TRUE,
+          ),
+          'contact_source_id' => array(
+            'name' => 'id',
+            'alias' => 'civicrm_contact_source',
+            'dbAlias' => "civicrm_contact_source.id",
+            'no_display' => TRUE,
+            'default' => TRUE,
+            'required' => TRUE,
+          ),
+          'contact_assignee_id' => array(
+            'name' => 'id',
+            'alias' => 'civicrm_contact_assignee',
+            'dbAlias' => "civicrm_contact_assignee.id",
+            'no_display' => TRUE,
+            'default' => TRUE,
+            'required' => TRUE,
           ),
-          'filters' => array(
-            'contact_source' => array(
-              'name' => 'sort_name',
-              'alias' => 'civicrm_contact_source',
-              'title' => ts('Source Contact Name'),
-              'operator' => 'like',
-              'type' => CRM_Report_Form::OP_STRING,
-            ),
-            'contact_assignee' => array(
-              'name' => 'sort_name',
-              'alias' => 'civicrm_contact_assignee',
-              'title' => ts('Assignee Contact Name'),
-              'operator' => 'like',
-              'type' => CRM_Report_Form::OP_STRING,
-            ),
-            'contact_target' => array(
-              'name' => 'sort_name',
-              'alias' => 'civicrm_contact_target',
-              'title' => ts('Target Contact Name'),
-              'operator' => 'like',
-              'type' => CRM_Report_Form::OP_STRING,
-            ),
-            'current_user' => array(
-              'name' => 'current_user',
-              'title' => ts('Limit To Current User'),
-              'type' => CRM_Utils_Type::T_INT,
-              'operatorType' => CRM_Report_Form::OP_SELECT,
-              'options' => array('0' => ts('No'), '1' => ts('Yes')),
-            ),
+          'contact_target_id' => array(
+            'name' => 'id',
+            'alias' => 'civicrm_contact_target',
+            'dbAlias' => "civicrm_contact_target.id",
+            'no_display' => TRUE,
+            'default' => TRUE,
+            'required' => TRUE,
           ),
-          'grouping' => 'contact-fields',
         ),
-        'civicrm_email' => array(
-          'dao' => 'CRM_Core_DAO_Email',
-          'fields' => array(
-            'contact_source_email' => array(
-              'name' => 'email',
-              'title' => ts('Source Contact Email'),
-              'alias' => 'civicrm_email_source',
-            ),
-            'contact_assignee_email' => array(
-              'name' => 'email',
-              'title' => ts('Assignee Contact Email'),
-              'alias' => 'civicrm_email_assignee',
-            ),
-            'contact_target_email' => array(
-              'name' => 'email',
-              'title' => ts('Target Contact Email'),
-              'alias' => 'civicrm_email_target',
-            ),
+        'filters' => array(
+          'contact_source' => array(
+            'name' => 'sort_name',
+            'alias' => 'civicrm_contact_source',
+            'title' => ts('Source Contact Name'),
+            'operator' => 'like',
+            'type' => CRM_Report_Form::OP_STRING,
+          ),
+          'contact_assignee' => array(
+            'name' => 'sort_name',
+            'alias' => 'civicrm_contact_assignee',
+            'title' => ts('Assignee Contact Name'),
+            'operator' => 'like',
+            'type' => CRM_Report_Form::OP_STRING,
+          ),
+          'contact_target' => array(
+            'name' => 'sort_name',
+            'alias' => 'civicrm_contact_target',
+            'title' => ts('Target Contact Name'),
+            'operator' => 'like',
+            'type' => CRM_Report_Form::OP_STRING,
           ),
-          'order_bys' => array(
-            'source_contact_email' => array(
-              'name' => 'email',
-              'title' => ts('Source Contact Email'),
-              'dbAlias' => 'civicrm_email_contact_source_email',
-            ),
+          'current_user' => array(
+            'name' => 'current_user',
+            'title' => ts('Limit To Current User'),
+            'type' => CRM_Utils_Type::T_INT,
+            'operatorType' => CRM_Report_Form::OP_SELECT,
+            'options' => array('0' => ts('No'), '1' => ts('Yes')),
           ),
         ),
-        'civicrm_activity' => array(
-          'dao' => 'CRM_Activity_DAO_Activity',
-          'fields' => array(
-            'id' => array(
-              'no_display' => TRUE,
-              'title' => ts('Activity ID'),
-              'required' => TRUE,
-            ),
-            'source_record_id' => array(
-              'no_display' => TRUE,
-              'required' => TRUE,
-            ),
-            'activity_type_id' => array(
-              'title' => ts('Activity Type'),
-              'required' => TRUE,
-              'type' => CRM_Utils_Type::T_STRING,
-            ),
-            'activity_subject' => array(
-              'title' => ts('Subject'),
-              'default' => TRUE,
-            ),
-            'activity_date_time' => array(
-              'title' => ts('Activity Date'),
-              'required' => TRUE,
-            ),
-            'status_id' => array(
-              'title' => ts('Activity Status'),
-              'default' => TRUE,
-              'type' => CRM_Utils_Type::T_STRING,
-            ),
-            'duration' => array(
-              'title' => ts('Duration'),
-              'type' => CRM_Utils_Type::T_INT,
-            ),
-            'details' => array(
-              'title' => ts('Activity Details'),
-            ),
+        'grouping' => 'contact-fields',
+      ),
+      'civicrm_email' => array(
+        'dao' => 'CRM_Core_DAO_Email',
+        'fields' => array(
+          'contact_source_email' => array(
+            'name' => 'email',
+            'title' => ts('Source Contact Email'),
+            'alias' => 'civicrm_email_source',
           ),
-          'filters' => array(
-            'activity_date_time' => array(
-              'default' => 'this.month',
-              'operatorType' => CRM_Report_Form::OP_DATE,
-            ),
-            'activity_subject' => array('title' => ts('Activity Subject')),
-            'activity_type_id' => array(
-              'title' => ts('Activity Type'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => $this->activityTypes,
-            ),
-            'status_id' => array(
-              'title' => ts('Activity Status'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Core_PseudoConstant::activityStatus(),
-            ),
-            'details' => array(
-              'title' => ts('Activity Details'),
-              'type' => CRM_Utils_Type::T_TEXT,
-            ),
+          'contact_assignee_email' => array(
+            'name' => 'email',
+            'title' => ts('Assignee Contact Email'),
+            'alias' => 'civicrm_email_assignee',
           ),
-          'order_bys' => array(
-            'activity_date_time' => array(
-              'title' => ts('Activity Date'),
-              'default_weight' => '1',
-              'dbAlias' => 'civicrm_activity_activity_date_time',
-            ),
-            'activity_type_id' => array(
-              'title' => ts('Activity Type'),
-              'default_weight' => '2',
-              'dbAlias' => "option_value_civireport",
-            ),
+          'contact_target_email' => array(
+            'name' => 'email',
+            'title' => ts('Target Contact Email'),
+            'alias' => 'civicrm_email_target',
           ),
-          'grouping' => 'activity-fields',
-          'alias' => 'activity',
         ),
-        'civicrm_activity_contact' => array(
-          'dao' => 'CRM_Activity_DAO_ActivityContact',
-          'fields' => array(// so we have $this->_alias populated
+        'order_bys' => array(
+          'source_contact_email' => array(
+            'name' => 'email',
+            'title' => ts('Source Contact Email'),
+            'dbAlias' => 'civicrm_email_contact_source_email',
           ),
         ),
-        'civicrm_option_value' => array(
-          'dao' => 'CRM_Core_DAO_OptionValue',
-          'fields' => array(// so we have $this->_alias populated
+      ),
+      'civicrm_activity' => array(
+        'dao' => 'CRM_Activity_DAO_Activity',
+        'fields' => array(
+          'id' => array(
+            'no_display' => TRUE,
+            'title' => ts('Activity ID'),
+            'required' => TRUE,
+          ),
+          'source_record_id' => array(
+            'no_display' => TRUE,
+            'required' => TRUE,
+          ),
+          'activity_type_id' => array(
+            'title' => ts('Activity Type'),
+            'required' => TRUE,
+            'type' => CRM_Utils_Type::T_STRING,
+          ),
+          'activity_subject' => array(
+            'title' => ts('Subject'),
+            'default' => TRUE,
+          ),
+          'activity_date_time' => array(
+            'title' => ts('Activity Date'),
+            'required' => TRUE,
+          ),
+          'status_id' => array(
+            'title' => ts('Activity Status'),
+            'default' => TRUE,
+            'type' => CRM_Utils_Type::T_STRING,
+          ),
+          'duration' => array(
+            'title' => ts('Duration'),
+            'type' => CRM_Utils_Type::T_INT,
           ),
-          'status_id' =>
-            array(
-              'title' => ts('Activity Status'),
-              'default' => TRUE,
-              'type' => CRM_Utils_Type::T_STRING,
-            ),
-          'duration' =>
-            array(
-              'title' => ts('Duration'),
-              'type' => CRM_Utils_Type::T_INT,
-            ),
-          'location' =>
-            array(
-              'title' => ts('Location'),
-              'type' => CRM_Utils_Type::T_STRING,
-            ),
           'details' => array(
             'title' => ts('Activity Details'),
-          )
+          ),
         ),
         'filters' => array(
           'activity_date_time' => array(
             'default' => 'this.month',
             'operatorType' => CRM_Report_Form::OP_DATE,
           ),
-          'activity_subject' =>
-            array('title' => ts('Activity Subject')),
-          'location' =>
-            array(
-              'title' => ts('Location'),
-              'type' => CRM_Utils_Type::T_TEXT,
-            ),
-          'activity_type_id' =>
-            array(
-              'title' => ts('Activity Type'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => $this->activityTypes,
-            ),
-          'status_id' =>
-            array(
-              'title' => ts('Activity Status'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Core_PseudoConstant::activityStatus(),
-            ),
+          'activity_subject' => array('title' => ts('Activity Subject')),
+          'activity_type_id' => array(
+            'title' => ts('Activity Type'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => $this->activityTypes,
+          ),
+          'status_id' => array(
+            'title' => ts('Activity Status'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Core_PseudoConstant::activityStatus(),
+          ),
           'details' => array(
             'title' => ts('Activity Details'),
             'type' => CRM_Utils_Type::T_TEXT,
-          )
+          ),
         ),
-      ) + $this->addressFields(TRUE);
+        'order_bys' => array(
+          'activity_date_time' => array(
+            'title' => ts('Activity Date'),
+            'default_weight' => '1',
+            'dbAlias' => 'civicrm_activity_activity_date_time',
+          ),
+          'activity_type_id' => array(
+            'title' => ts('Activity Type'),
+            'default_weight' => '2',
+            'dbAlias' => "option_value_civireport",
+          ),
+        ),
+        'grouping' => 'activity-fields',
+        'alias' => 'activity',
+      ),
+      'civicrm_activity_contact' => array(
+        'dao' => 'CRM_Activity_DAO_ActivityContact',
+        'fields' => array(// so we have $this->_alias populated
+        ),
+      ),
+      'civicrm_option_value' => array(
+        'dao' => 'CRM_Core_DAO_OptionValue',
+        'fields' => array(// so we have $this->_alias populated
+        ),
+        'status_id' =>
+        array(
+          'title' => ts('Activity Status'),
+          'default' => TRUE,
+          'type' => CRM_Utils_Type::T_STRING,
+        ),
+        'duration' =>
+        array(
+          'title' => ts('Duration'),
+          'type' => CRM_Utils_Type::T_INT,
+        ),
+        'location' =>
+        array(
+          'title' => ts('Location'),
+          'type' => CRM_Utils_Type::T_STRING,
+        ),
+        'details' => array(
+          'title' => ts('Activity Details'),
+        ),
+      ),
+      'filters' => array(
+        'activity_date_time' => array(
+          'default' => 'this.month',
+          'operatorType' => CRM_Report_Form::OP_DATE,
+        ),
+        'activity_subject' =>
+        array('title' => ts('Activity Subject')),
+        'location' =>
+        array(
+          'title' => ts('Location'),
+          'type' => CRM_Utils_Type::T_TEXT,
+        ),
+        'activity_type_id' =>
+        array(
+          'title' => ts('Activity Type'),
+          'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+          'options' => $this->activityTypes,
+        ),
+        'status_id' =>
+        array(
+          'title' => ts('Activity Status'),
+          'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+          'options' => CRM_Core_PseudoConstant::activityStatus(),
+        ),
+        'details' => array(
+          'title' => ts('Activity Details'),
+          'type' => CRM_Utils_Type::T_TEXT,
+        ),
+      ),
+    ) + $this->addressFields(TRUE);
 
     if ($campaignEnabled) {
       // Add display column and filter for Survey Results, Campaign and Engagement Index if CiviCampaign is enabled
@@ -344,7 +344,8 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
     parent::__construct();
   }
 
-  /** adding address fields with dbAlias for order clause
+  /**
+   * Adding address fields with dbAlias for order clause.
    * @return array
    *   address fields
    */
@@ -563,8 +564,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
                 empty($this->_params['activity_type_id_value'])
               ) {
                 $actTypes = array_flip(CRM_Core_PseudoConstant::activityType(TRUE, FALSE, FALSE, 'label', TRUE));
-                $clause =
-                  "( {$this->_aliases['civicrm_activity']}.activity_type_id IN (" .
+                $clause = "( {$this->_aliases['civicrm_activity']}.activity_type_id IN (" .
                   implode(',', $actTypes) . ") )";
               }
             }
@@ -985,4 +985,5 @@ GROUP BY civicrm_activity_id {$this->_having} {$this->_orderBy} {$this->_limit}"
       $this->assign('sectionTotals', $totals);
     }
   }
+
 }
index ed707061017e75e934fb1eba92e7e941d06c83fd..cb57d817fe85e35c6767f5ab2b0d375b3df31700 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -528,4 +528,5 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form {
       }
     }
   }
+
 }
index 5ba8f798415189f085760a43e5b88385211177b0..248f8c3582fff899168d4fdadc481560a4d6f398 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -965,4 +965,5 @@ INNER  JOIN  civicrm_custom_field cf ON ( cg.id = cf.custom_group_id )
       $this->_aliases[$resTable] = $this->_columns[$resTable]['alias'];
     }
   }
+
 }
index a2ba234cbac6bd7e7a693f64d2964947dc2b76ca..7a5c02cc4880d95030e06a1926061cc8a4171302 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -125,7 +125,7 @@ class CRM_Report_Form_Case_Demographics extends CRM_Report_Form {
                                         'operatorType' => CRM_Report_Form::OP_MULTISELECT,
                                         'options' => CRM_Core_PseudoConstant::stateProvince( ), ),
                                  ),
-    */
+         */
       ),
       'civicrm_phone' => array(
         'dao' => 'CRM_Core_DAO_Phone',
@@ -461,4 +461,5 @@ SELECT v.label
     );
     return CRM_Core_DAO::singleValueQuery($query, $params);
   }
+
 }
index b97050596e77fef977f31ba6ce654ea405cf4fa8..25722bb239d4b143e65ec3ffcf5200047f1a52ae 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -673,4 +673,5 @@ class CRM_Report_Form_Case_Detail extends CRM_Report_Form {
       }
     }
   }
+
 }
index 8e0601ab57c20fd3c3dea3bf8a0322673da117f7..eaf22ce8a445c588978bd5eacf4518e44025639f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -405,4 +405,5 @@ inner join civicrm_contact $c2 on ${c2}.id=${ccc}.contact_id
       }
     }
   }
+
 }
index d4ebad28b7cda98564f182d592642cc9116785c6..2c4b9f299a6a8578aa2874efdee69bb49c7b3c94 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -355,4 +355,5 @@ GROUP BY {$this->_aliases['civicrm_contact']}.id,
       }
     }
   }
+
 }
index 13ad8c1980c5c01cef31010e2304644f49186807..5891d939391fc11d2e98d09bd35c8bba62e17ad7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -277,9 +277,7 @@ FROM civicrm_contact {$this->_aliases['civicrm_contact']}
       $this->_where = "WHERE {$this->_aliases['civicrm_contact']}.employer_id!='null' ";
     }
     else {
-      $this->_where =
-        "WHERE ({$this->_aliases['civicrm_contact']}.employer_id!='null') AND " .
-        implode(' AND ', $clauses);
+      $this->_where = "WHERE ({$this->_aliases['civicrm_contact']}.employer_id!='null') AND " . implode(' AND ', $clauses);
     }
 
     if ($this->_aclWhere) {
@@ -385,4 +383,5 @@ FROM civicrm_contact {$this->_aliases['civicrm_contact']}
       }
     }
   }
+
 }
index cbb686ca214dc585e3a4a218d5e259cf77919168..5da23323b27d2545728cc69ea8b173f5e96ec7b6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -931,4 +931,5 @@ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form {
       }
     }
   }
+
 }
index 0e16723f370520c827cb3a305a12cbc7899b20d1..3e40d2b6c7521e612f152e51924de6ccb9698c53 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -297,4 +297,5 @@ ORDER BY {$this->_aliases['civicrm_log']}.modified_date DESC, {$this->_aliases['
       }
     }
   }
+
 }
index ddf5cea27248887b501cbe9cefdcd0cb084662fb..d643e53a253522371d44c98011e1f04a3a5e8415 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -75,4 +75,5 @@ class CRM_Report_Form_Contact_LoggingDetail extends CRM_Logging_ReportDetail {
       $this->assign('backURL', CRM_Report_Utils_Report::getNextUrl('logging/contact/summary', 'reset=1', FALSE, TRUE));
     }
   }
+
 }
index a4438b3775db204f39768274d2ac8e1a41df8174..16fd62ac21d90e1d6ddb2dd8b303d42f9eb2b08d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -268,4 +268,5 @@ FROM `{$this->loggingDB}`.$tableName entity_log_civireport
 LEFT  JOIN civicrm_contact altered_by_contact_civireport
         ON (entity_log_civireport.log_user_id = altered_by_contact_civireport.id)";
   }
+
 }
index d8b46dc0559902aa53b73dc3951fe10e2d811c71..65f4f2b6e36dbd20952de79e9b010aa5088369c7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -628,4 +628,5 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
       }
     }
   }
+
 }
index cb5140fc8397941371d5674ea06c762b95be0c4f..c9a02a7ea087f29d8b47f6f3393ae709059119f8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -318,4 +318,5 @@ class CRM_Report_Form_Contact_Summary extends CRM_Report_Form {
       }
     }
   }
+
 }
index 03546321cd538514a84b5d4a03df89e33ac34b54..eda3a2fe165cf44b650378e9d5b6f6deb2d2dc5c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -507,4 +507,5 @@ class CRM_Report_Form_Contribute_Bookkeeping extends CRM_Report_Form {
       }
     }
   }
+
 }
index 42b37694d75fc9c08f99622dd34f070fe18f71e3..d012d3edc3a4dc431785f94f842bd13550eef00d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -59,233 +59,233 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form {
       asort($this->activeCampaigns);
     }
     $this->_columns = array(
-        'civicrm_contact' => array(
-          'dao' => 'CRM_Contact_DAO_Contact',
-          'fields' => array(
-            'sort_name' => array(
-              'title' => ts('Donor Name'),
-              'required' => TRUE,
-            ),
-            'first_name' => array(
-              'title' => ts('First Name'),
-            ),
-            'last_name' => array(
-              'title' => ts('Last Name'),
-            ),
-            'id' => array(
-              'no_display' => TRUE,
-              'required' => TRUE,
-            ),
-            'contact_type' => array(
-              'title' => ts('Contact Type'),
-            ),
-            'contact_sub_type' => array(
-              'title' => ts('Contact Subtype'),
-            ),
+      'civicrm_contact' => array(
+        'dao' => 'CRM_Contact_DAO_Contact',
+        'fields' => array(
+          'sort_name' => array(
+            'title' => ts('Donor Name'),
+            'required' => TRUE,
           ),
-          'filters' => array(
-            'sort_name' => array(
-              'title' => ts('Donor Name'),
-              'operator' => 'like',
-            ),
-            'id' => array(
-              'title' => ts('Contact ID'),
-              'no_display' => TRUE,
-              'type' => CRM_Utils_Type::T_INT,
-            ),
+          'first_name' => array(
+            'title' => ts('First Name'),
           ),
-          'order_bys' => array(
-            'sort_name' => array(
-              'title' => ts('Last Name, First Name'),
-              'default' => '1',
-              'default_weight' => '0',
-              'default_order' => 'ASC',
-            ),
+          'last_name' => array(
+            'title' => ts('Last Name'),
+          ),
+          'id' => array(
+            'no_display' => TRUE,
+            'required' => TRUE,
+          ),
+          'contact_type' => array(
+            'title' => ts('Contact Type'),
+          ),
+          'contact_sub_type' => array(
+            'title' => ts('Contact Subtype'),
           ),
-          'grouping' => 'contact-fields',
         ),
-        'civicrm_email' => array(
-          'dao' => 'CRM_Core_DAO_Email',
-          'fields' => array(
-            'email' => array(
-              'title' => ts('Donor Email'),
-              'default' => TRUE,
-            ),
+        'filters' => array(
+          'sort_name' => array(
+            'title' => ts('Donor Name'),
+            'operator' => 'like',
+          ),
+          'id' => array(
+            'title' => ts('Contact ID'),
+            'no_display' => TRUE,
+            'type' => CRM_Utils_Type::T_INT,
           ),
-          'grouping' => 'contact-fields',
         ),
-        'civicrm_phone' => array(
-          'dao' => 'CRM_Core_DAO_Phone',
-          'fields' => array(
-            'phone' => array(
-              'title' => ts('Donor Phone'),
-              'default' => TRUE,
-              'no_repeat' => TRUE,
-            ),
+        'order_bys' => array(
+          'sort_name' => array(
+            'title' => ts('Last Name, First Name'),
+            'default' => '1',
+            'default_weight' => '0',
+            'default_order' => 'ASC',
           ),
-          'grouping' => 'contact-fields',
         ),
-        'civicrm_contribution' => array(
-          'dao' => 'CRM_Contribute_DAO_Contribution',
-          'fields' => array(
-            'contribution_id' => array(
-              'name' => 'id',
-              'no_display' => TRUE,
-              'required' => TRUE,
-            ),
-            'list_contri_id' => array(
-              'name' => 'id',
-              'title' => ts('Contribution ID'),
-            ),
-            'financial_type_id' => array(
-              'title' => ts('Financial Type'),
-              'default' => TRUE,
-            ),
-            'contribution_status_id' => array(
-              'title' => ts('Contribution Status'),
-            ),
-            'contribution_page_id' => array(
-              'title' => ts('Contribution Page'),
-            ),
-            'source' => array(
-              'title' => ts('Source'),
-            ),
-            'payment_instrument_id' => array(
-              'title' => ts('Payment Type'),
-            ),
-            'check_number' => array(
-              'title' => ts('Check Number'),
-            ),
-            'currency' => array(
-              'required' => TRUE,
-              'no_display' => TRUE,
-            ),
-            'trxn_id' => NULL,
-            'receive_date' => array('default' => TRUE),
-            'receipt_date' => NULL,
-            'total_amount' => array(
-              'title' => ts('Amount'),
-              'required' => TRUE,
-              'statistics' => array('sum' => ts('Amount')),
-            ),
-            'fee_amount' => NULL,
-            'net_amount' => NULL,
-            'contribution_or_soft' => array(
-              'title' => ts('Contribution OR Soft Credit?'),
-              'dbAlias' => "'Contribution'",
-            ),
-            'soft_credits' => array(
-              'title' => ts('Soft Credits'),
-              'dbAlias' => "NULL",
-            ),
-            'soft_credit_for' => array(
-              'title' => ts('Soft Credit For'),
-              'dbAlias' => "NULL",
-            ),
+        'grouping' => 'contact-fields',
+      ),
+      'civicrm_email' => array(
+        'dao' => 'CRM_Core_DAO_Email',
+        'fields' => array(
+          'email' => array(
+            'title' => ts('Donor Email'),
+            'default' => TRUE,
           ),
-          'filters' => array(
-            'contribution_or_soft' => array(
-              'title' => ts('Contribution OR Soft Credit?'),
-              'clause' => "(1)",
-              'operatorType' => CRM_Report_Form::OP_SELECT,
-              'type' => CRM_Utils_Type::T_STRING,
-              'options' => array(
-                'both' => ts('Both'),
-                'contributions_only' => ts('Contributions Only'),
-                'soft_credits_only' => ts('Soft Credits Only'),
-              ),
-            ),
-            'receive_date' => array('operatorType' => CRM_Report_Form::OP_DATE),
-            'currency' => array(
-              'title' => 'Currency',
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
-              'default' => NULL,
-              'type' => CRM_Utils_Type::T_STRING,
-            ),
-            'financial_type_id' => array(
-              'title' => ts('Financial Type'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Contribute_PseudoConstant::financialType(),
-              'type' => CRM_Utils_Type::T_INT,
-            ),
-            'contribution_page_id' => array(
-              'title' => ts('Contribution Page'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Contribute_PseudoConstant::contributionPage(),
-              'type' => CRM_Utils_Type::T_INT,
-            ),
-            'payment_instrument_id' => array(
-              'title' => ts('Payment Type'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Contribute_PseudoConstant::paymentInstrument(),
-              'type' => CRM_Utils_Type::T_INT,
-            ),
-            'contribution_status_id' => array(
-              'title' => ts('Contribution Status'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Contribute_PseudoConstant::contributionStatus(),
-              'default' => array(1),
-              'type' => CRM_Utils_Type::T_INT,
-            ),
-            'total_amount' => array('title' => ts('Contribution Amount')),
+        ),
+        'grouping' => 'contact-fields',
+      ),
+      'civicrm_phone' => array(
+        'dao' => 'CRM_Core_DAO_Phone',
+        'fields' => array(
+          'phone' => array(
+            'title' => ts('Donor Phone'),
+            'default' => TRUE,
+            'no_repeat' => TRUE,
+          ),
+        ),
+        'grouping' => 'contact-fields',
+      ),
+      'civicrm_contribution' => array(
+        'dao' => 'CRM_Contribute_DAO_Contribution',
+        'fields' => array(
+          'contribution_id' => array(
+            'name' => 'id',
+            'no_display' => TRUE,
+            'required' => TRUE,
+          ),
+          'list_contri_id' => array(
+            'name' => 'id',
+            'title' => ts('Contribution ID'),
+          ),
+          'financial_type_id' => array(
+            'title' => ts('Financial Type'),
+            'default' => TRUE,
+          ),
+          'contribution_status_id' => array(
+            'title' => ts('Contribution Status'),
+          ),
+          'contribution_page_id' => array(
+            'title' => ts('Contribution Page'),
+          ),
+          'source' => array(
+            'title' => ts('Source'),
+          ),
+          'payment_instrument_id' => array(
+            'title' => ts('Payment Type'),
+          ),
+          'check_number' => array(
+            'title' => ts('Check Number'),
+          ),
+          'currency' => array(
+            'required' => TRUE,
+            'no_display' => TRUE,
+          ),
+          'trxn_id' => NULL,
+          'receive_date' => array('default' => TRUE),
+          'receipt_date' => NULL,
+          'total_amount' => array(
+            'title' => ts('Amount'),
+            'required' => TRUE,
+            'statistics' => array('sum' => ts('Amount')),
+          ),
+          'fee_amount' => NULL,
+          'net_amount' => NULL,
+          'contribution_or_soft' => array(
+            'title' => ts('Contribution OR Soft Credit?'),
+            'dbAlias' => "'Contribution'",
           ),
-          'order_bys' => array(
-            'financial_type_id' => array('title' => ts('Financial Type')),
-            'contribution_status_id' => array('title' => ts('Contribution Status')),
-            'payment_instrument_id' => array('title' => ts('Payment Instrument')),
-            'receive_date' => array('title' => ts('Receive Date')),
+          'soft_credits' => array(
+            'title' => ts('Soft Credits'),
+            'dbAlias' => "NULL",
+          ),
+          'soft_credit_for' => array(
+            'title' => ts('Soft Credit For'),
+            'dbAlias' => "NULL",
           ),
-          'grouping' => 'contri-fields',
         ),
-        'civicrm_contribution_soft' => array(
-          'dao' => 'CRM_Contribute_DAO_ContributionSoft',
-          'fields' => array(
-            'soft_credit_type_id' => array('title' => ts('Soft Credit Type')),
-          ),
-          'filters' => array(
-            'soft_credit_type_id' => array(
-              'title' => 'Soft Credit Type',
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Core_OptionGroup::values('soft_credit_type'),
-              'default' => NULL,
-              'type' => CRM_Utils_Type::T_STRING,
+        'filters' => array(
+          'contribution_or_soft' => array(
+            'title' => ts('Contribution OR Soft Credit?'),
+            'clause' => "(1)",
+            'operatorType' => CRM_Report_Form::OP_SELECT,
+            'type' => CRM_Utils_Type::T_STRING,
+            'options' => array(
+              'both' => ts('Both'),
+              'contributions_only' => ts('Contributions Only'),
+              'soft_credits_only' => ts('Soft Credits Only'),
             ),
           ),
+          'receive_date' => array('operatorType' => CRM_Report_Form::OP_DATE),
+          'currency' => array(
+            'title' => 'Currency',
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
+            'default' => NULL,
+            'type' => CRM_Utils_Type::T_STRING,
+          ),
+          'financial_type_id' => array(
+            'title' => ts('Financial Type'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Contribute_PseudoConstant::financialType(),
+            'type' => CRM_Utils_Type::T_INT,
+          ),
+          'contribution_page_id' => array(
+            'title' => ts('Contribution Page'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Contribute_PseudoConstant::contributionPage(),
+            'type' => CRM_Utils_Type::T_INT,
+          ),
+          'payment_instrument_id' => array(
+            'title' => ts('Payment Type'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Contribute_PseudoConstant::paymentInstrument(),
+            'type' => CRM_Utils_Type::T_INT,
+          ),
+          'contribution_status_id' => array(
+            'title' => ts('Contribution Status'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Contribute_PseudoConstant::contributionStatus(),
+            'default' => array(1),
+            'type' => CRM_Utils_Type::T_INT,
+          ),
+          'total_amount' => array('title' => ts('Contribution Amount')),
         ),
-        'civicrm_contribution_ordinality' => array(
-          'dao' => 'CRM_Contribute_DAO_Contribution',
-          'alias' => 'cordinality',
-          'filters' => array(
-            'ordinality' => array(
-              'title' => ts('Contribution Ordinality'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => array(
-                0 => 'First by Contributor',
-                1 => 'Second or Later by Contributor',
-              ),
-              'type' => CRM_Utils_Type::T_INT,
-            ),
+        'order_bys' => array(
+          'financial_type_id' => array('title' => ts('Financial Type')),
+          'contribution_status_id' => array('title' => ts('Contribution Status')),
+          'payment_instrument_id' => array('title' => ts('Payment Instrument')),
+          'receive_date' => array('title' => ts('Receive Date')),
+        ),
+        'grouping' => 'contri-fields',
+      ),
+      'civicrm_contribution_soft' => array(
+        'dao' => 'CRM_Contribute_DAO_ContributionSoft',
+        'fields' => array(
+          'soft_credit_type_id' => array('title' => ts('Soft Credit Type')),
+        ),
+        'filters' => array(
+          'soft_credit_type_id' => array(
+            'title' => 'Soft Credit Type',
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Core_OptionGroup::values('soft_credit_type'),
+            'default' => NULL,
+            'type' => CRM_Utils_Type::T_STRING,
           ),
         ),
-        'civicrm_note' => array(
-          'dao' => 'CRM_Core_DAO_Note',
-          'fields' => array(
-            'contribution_note' => array(
-              'name' => 'note',
-              'title' => ts('Contribution Note'),
-            ),
+      ),
+      'civicrm_contribution_ordinality' => array(
+        'dao' => 'CRM_Contribute_DAO_Contribution',
+        'alias' => 'cordinality',
+        'filters' => array(
+          'ordinality' => array(
+            'title' => ts('Contribution Ordinality'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => array(
+              0 => 'First by Contributor',
+              1 => 'Second or Later by Contributor',
+            ),
+            'type' => CRM_Utils_Type::T_INT,
           ),
-          'filters' => array(
-            'note' => array(
-              'name' => 'note',
-              'title' => ts('Contribution Note'),
-              'operator' => 'like',
-              'type' => CRM_Utils_Type::T_STRING,
-            ),
+        ),
+      ),
+      'civicrm_note' => array(
+        'dao' => 'CRM_Core_DAO_Note',
+        'fields' => array(
+          'contribution_note' => array(
+            'name' => 'note',
+            'title' => ts('Contribution Note'),
           ),
         ),
-      ) + $this->addAddressFields(FALSE);
+        'filters' => array(
+          'note' => array(
+            'name' => 'note',
+            'title' => ts('Contribution Note'),
+            'operator' => 'like',
+            'type' => CRM_Utils_Type::T_STRING,
+          ),
+        ),
+      ),
+    ) + $this->addAddressFields(FALSE);
 
     $this->_groupFilter = TRUE;
     $this->_tagFilter = TRUE;
@@ -468,8 +468,7 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form {
     $dao = CRM_Core_DAO::executeQuery($sql);
 
     while ($dao->fetch()) {
-      $totalAmount[] =
-        CRM_Utils_Money::format($dao->amount, $dao->currency) . " (" .
+      $totalAmount[] = CRM_Utils_Money::format($dao->amount, $dao->currency) . " (" .
         $dao->count . ")";
       $average[] = CRM_Utils_Money::format($dao->avg, $dao->currency);
       $count += $dao->count;
@@ -507,8 +506,7 @@ SELECT COUNT(contribution_soft_civireport.amount ) as count,
 GROUP BY {$this->_aliases['civicrm_contribution']}.currency";
       $dao = CRM_Core_DAO::executeQuery($sql);
       while ($dao->fetch()) {
-        $totalAmount[] =
-          CRM_Utils_Money::format($dao->amount, $dao->currency) . " (" .
+        $totalAmount[] = CRM_Utils_Money::format($dao->amount, $dao->currency) . " (" .
           $dao->count . ")";
         $average[] = CRM_Utils_Money::format($dao->avg, $dao->currency);
         $count += $dao->count;
@@ -550,8 +548,7 @@ GROUP BY {$this->_aliases['civicrm_contribution']}.currency";
 
     // 1. use main contribution query to build temp table 1
     $sql = $this->buildQuery();
-    $tempQuery =
-      'CREATE TEMPORARY TABLE civireport_contribution_detail_temp1 AS ' . $sql;
+    $tempQuery = 'CREATE TEMPORARY TABLE civireport_contribution_detail_temp1 AS ' . $sql;
     CRM_Core_DAO::executeQuery($tempQuery);
     $this->setPager();
 
@@ -565,8 +562,7 @@ GROUP BY {$this->_aliases['civicrm_contribution']}.currency";
     $select = str_ireplace("'Contribution' as", "'Soft Credit' as", $select);
     // we inner join with temp1 to restrict soft contributions to those in temp1 table
     $sql = "{$select} {$this->_from} {$this->_where} {$this->_groupBy}";
-    $tempQuery =
-      'CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS ' . $sql;
+    $tempQuery = 'CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS ' . $sql;
     CRM_Core_DAO::executeQuery($tempQuery);
     if (CRM_Utils_Array::value('contribution_or_soft_value', $this->_params) ==
       'soft_credits_only'
@@ -827,9 +823,9 @@ WHERE  civicrm_contribution_contribution_id={$row['civicrm_contribution_contribu
       }
 
       /* Group (un-limited) report by all aliases and get counts. This might
-      * be done more efficiently when the contents of $sql are known, ie. by
-      * overriding this method in the report class.
-      */
+       * be done more efficiently when the contents of $sql are known, ie. by
+       * overriding this method in the report class.
+       */
 
       $addtotals = '';
 
@@ -906,4 +902,5 @@ WHERE  civicrm_contribution_contribution_id={$row['civicrm_contribution_contribu
       }
     }
   }
+
 }
index 686e0d92e7674c2a12c6a5b6a1b9b56483b7834f..6731c58ad4081e088102c09be2058dbc0ffe3fd1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -772,4 +772,5 @@ class CRM_Report_Form_Contribute_History extends CRM_Report_Form {
       }
     }
   }
+
 }
index 8f2a0db86f4e808a1313dc599bd6a794dc36e7d3..f405edacc0148ee7300b5668d58860f009b95267 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -281,9 +281,7 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form {
             $op = CRM_Utils_Array::value("{$fieldName}_op", $this->_params);
             if ($op) {
               if ($fieldName == 'relationship_type_id') {
-                $clause =
-                  "{$this->_aliases['civicrm_relationship']}.relationship_type_id=" .
-                  $this->relationshipId;
+                $clause = "{$this->_aliases['civicrm_relationship']}.relationship_type_id=" . $this->relationshipId;
               }
               else {
                 $clause = $this->whereClause($field,
@@ -452,10 +450,7 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form {
               $this->_absoluteUrl
             );
 
-            $rows[$rowNum]['civicrm_contact_household_household_name'] =
-              "<a href='$url' title='" .
-              ts('View contact summary for this househould') . "'>" . $value .
-              '</a>';
+            $rows[$rowNum]['civicrm_contact_household_household_name'] = "<a href='$url' title='" . ts('View contact summary for this househould') . "'>" . $value . '</a>';
           }
           $entryFound = TRUE;
         }
@@ -560,4 +555,5 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form {
       $lastKey = $rowNum;
     }
   }
+
 }
index e7b5320b467b6fb3d9f37f3f8de94edc43f6a2c1..9a977b020b45cde3ebf72afc3d63fadf7a2e9966 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -52,4 +52,5 @@ class CRM_Report_Form_Contribute_LoggingDetail extends CRM_Logging_ReportDetail
     // link back to summary report
     $this->assign('backURL', CRM_Report_Utils_Report::getNextUrl('logging/contribute/summary', 'reset=1', FALSE, TRUE));
   }
+
 }
index 28c79bd7f9cab0d74313928edf32ac82d6affc62..15e32f36e214b0e5c695094f5b2df01330bb1957 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -230,4 +230,5 @@ class CRM_Report_Form_Contribute_LoggingSummary extends CRM_Logging_ReportSummar
             AND civicrm_option_group.name = 'contribution_status')
         ";
   }
+
 }
index 1fa3a79327deec7a098b52e5b62a7e0d41f5058a..07f5b3035d2daa76bc9f0a7ac840727f79bee35e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -512,4 +512,5 @@ class CRM_Report_Form_Contribute_Lybunt extends CRM_Report_Form {
     }
     return parent::getOperationPair($type, $fieldName);
   }
+
 }
index b7a766d54d7dc9e02def55d8b48c425e23f6445f..80ea71ff5b57a3aa5883e70bddf2715f36fc7d08 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -561,4 +561,5 @@ class CRM_Report_Form_Contribute_OrganizationSummary extends CRM_Report_Form {
       $lastKey = $rowNum;
     }
   }
+
 }
index 72709a3ea61011a8e4d8cb8559f625c7674e8aa9..be9321aa9b1d14c643e3a53f01e91b66c11010b4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -264,11 +264,11 @@ LEFT JOIN civicrm_contribution_page {$this->_aliases['civicrm_contribution_page'
   public function statistics(&$rows) {
     $statistics = parent::statistics($rows);
 
-    $select =
-      "SELECT SUM({$this->_aliases['civicrm_pcp']}.goal_amount) as goal_total, " .
-      "SUM({$this->_aliases['civicrm_contribution_soft']}.amount) as committed_total, " .
-      "COUNT({$this->_aliases['civicrm_contribution_soft']}.id) as donors_total, " .
-      "SUM(IF( contribution_civireport.contribution_status_id > 1, 0, contribution_soft_civireport.amount)) AS received_total ";
+    $select
+      "SELECT SUM({$this->_aliases['civicrm_pcp']}.goal_amount) as goal_total, " .
+        "SUM({$this->_aliases['civicrm_contribution_soft']}.amount) as committed_total, " .
+        "COUNT({$this->_aliases['civicrm_contribution_soft']}.id) as donors_total, " .
+        "SUM(IF( contribution_civireport.contribution_status_id > 1, 0, contribution_soft_civireport.amount)) AS received_total ";
     $sql = "{$select} {$this->_from} {$this->_where}";
     $dao = CRM_Core_DAO::executeQuery($sql);
     $dao->fetch();
@@ -340,4 +340,5 @@ LEFT JOIN civicrm_contribution_page {$this->_aliases['civicrm_contribution_page'
       }
     }
   }
+
 }
index 0428bd1552c1e401ec405ca0da898d850ea891e4..9bf843ce573a9d86361b5d2ed60b3c4858160404 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -325,4 +325,5 @@ class CRM_Report_Form_Contribute_Recur extends CRM_Report_Form {
 
     }
   }
+
 }
index 6a5782519bea7a988e243983754725342d4aa7cb..e4f6c2739a13aa459cf0e89b31dde68b0892ac56 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -972,4 +972,5 @@ currency varchar(3)
     }
     // foreach ends
   }
+
 }
index 88c0859d42a092585fd16dc65bbc581fcab920b2..ff9e1e76c74f39eb03b6d1b6c6278bd6da48035c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -539,4 +539,5 @@ GROUP BY   {$this->_aliases['civicrm_contribution']}.currency
 
     $this->removeDuplicates($rows);
   }
+
 }
index 4fc51f6ec300782e2d9f202341c991a30efcd83a..9cd7d364df7e1ef9bccfe6faf219741e0dbf52a7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -45,8 +45,6 @@ class CRM_Report_Form_Contribute_Summary extends CRM_Report_Form {
 
   public $_drilldownReport = array('contribute/detail' => 'Link to Detail Report');
 
-  /**
-   */
   /**
    */
   public function __construct() {
@@ -61,186 +59,186 @@ class CRM_Report_Form_Contribute_Summary extends CRM_Report_Form {
     }
 
     $this->_columns = array(
-        'civicrm_contact' => array(
-          'dao' => 'CRM_Contact_DAO_Contact',
-          'fields' => array(
-            'sort_name' => array(
-              'title' => ts('Contact Name'),
-              'no_repeat' => TRUE,
-            ),
-            'postal_greeting_display' => array('title' => ts('Postal Greeting')),
-            'id' => array(
-              'no_display' => TRUE,
-              'required' => TRUE,
-            ),
-            'contact_type' => array(
-              'title' => ts('Contact Type'),
-            ),
-            'contact_sub_type' => array(
-              'title' => ts('Contact Subtype'),
-            ),
+      'civicrm_contact' => array(
+        'dao' => 'CRM_Contact_DAO_Contact',
+        'fields' => array(
+          'sort_name' => array(
+            'title' => ts('Contact Name'),
+            'no_repeat' => TRUE,
           ),
-          'grouping' => 'contact-fields',
-          'group_bys' => array(
-            'id' => array('title' => ts('Contact ID')),
-            'sort_name' => array(
-              'title' => ts('Contact Name'),
-            ),
+          'postal_greeting_display' => array('title' => ts('Postal Greeting')),
+          'id' => array(
+            'no_display' => TRUE,
+            'required' => TRUE,
+          ),
+          'contact_type' => array(
+            'title' => ts('Contact Type'),
+          ),
+          'contact_sub_type' => array(
+            'title' => ts('Contact Subtype'),
           ),
         ),
-        'civicrm_email' => array(
-          'dao' => 'CRM_Core_DAO_Email',
-          'fields' => array(
-            'email' => array(
-              'title' => ts('Email'),
-              'no_repeat' => TRUE,
-            ),
+        'grouping' => 'contact-fields',
+        'group_bys' => array(
+          'id' => array('title' => ts('Contact ID')),
+          'sort_name' => array(
+            'title' => ts('Contact Name'),
           ),
-          'grouping' => 'contact-fields',
         ),
-        'civicrm_phone' => array(
-          'dao' => 'CRM_Core_DAO_Phone',
-          'fields' => array(
-            'phone' => array(
-              'title' => ts('Phone'),
-              'no_repeat' => TRUE,
-            ),
+      ),
+      'civicrm_email' => array(
+        'dao' => 'CRM_Core_DAO_Email',
+        'fields' => array(
+          'email' => array(
+            'title' => ts('Email'),
+            'no_repeat' => TRUE,
           ),
-          'grouping' => 'contact-fields',
         ),
-        'civicrm_financial_type' => array(
-          'dao' => 'CRM_Financial_DAO_FinancialType',
-          'fields' => array('financial_type' => NULL),
-          'grouping' => 'contri-fields',
-          'group_bys' => array(
-            'financial_type' => array('title' => ts('Financial Type')),
+        'grouping' => 'contact-fields',
+      ),
+      'civicrm_phone' => array(
+        'dao' => 'CRM_Core_DAO_Phone',
+        'fields' => array(
+          'phone' => array(
+            'title' => ts('Phone'),
+            'no_repeat' => TRUE,
           ),
         ),
-        'civicrm_contribution' => array(
-          'dao' => 'CRM_Contribute_DAO_Contribution',
+        'grouping' => 'contact-fields',
+      ),
+      'civicrm_financial_type' => array(
+        'dao' => 'CRM_Financial_DAO_FinancialType',
+        'fields' => array('financial_type' => NULL),
+        'grouping' => 'contri-fields',
+        'group_bys' => array(
+          'financial_type' => array('title' => ts('Financial Type')),
+        ),
+      ),
+      'civicrm_contribution' => array(
+        'dao' => 'CRM_Contribute_DAO_Contribution',
           //'bao'           => 'CRM_Contribute_BAO_Contribution',
-          'fields' => array(
-            'contribution_source' => array('title' => ts('Source')),
-            'currency' => array(
-              'required' => TRUE,
-              'no_display' => TRUE,
-            ),
-            'total_amount' => array(
-              'title' => ts('Contribution Amount Stats'),
-              'default' => TRUE,
-              'statistics' => array(
-                'sum' => ts('Contribution Aggregate'),
-                'count' => ts('Contributions'),
-                'avg' => ts('Contribution Avg'),
-              ),
-            ),
+        'fields' => array(
+          'contribution_source' => array('title' => ts('Source')),
+          'currency' => array(
+            'required' => TRUE,
+            'no_display' => TRUE,
           ),
-          'grouping' => 'contri-fields',
-          'filters' => array(
-            'receive_date' => array('operatorType' => CRM_Report_Form::OP_DATE),
-            'contribution_status_id' => array(
-              'title' => ts('Contribution Status'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Contribute_PseudoConstant::contributionStatus(),
-              'default' => array(1),
-              'type' => CRM_Utils_Type::T_INT,
-            ),
-            'currency' => array(
-              'title' => 'Currency',
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
-              'default' => NULL,
-              'type' => CRM_Utils_Type::T_STRING,
-            ),
-            'financial_type_id' => array(
-              'title' => ts('Financial Type'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Contribute_PseudoConstant::financialType(),
-              'type' => CRM_Utils_Type::T_INT,
-            ),
-            'contribution_page_id' => array(
-              'title' => ts('Contribution Page'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Contribute_PseudoConstant::contributionPage(),
-              'type' => CRM_Utils_Type::T_INT,
-            ),
-            'total_amount' => array(
-              'title' => ts('Contribution Amount'),
-            ),
-            'total_sum' => array(
-              'title' => ts('Contribution Aggregate'),
-              'type' => CRM_Report_Form::OP_INT,
-              'dbAlias' => 'civicrm_contribution_total_amount_sum',
-              'having' => TRUE,
-            ),
-            'total_count' => array(
-              'title' => ts('Contribution Count'),
-              'type' => CRM_Report_Form::OP_INT,
-              'dbAlias' => 'civicrm_contribution_total_amount_count',
-              'having' => TRUE,
-            ),
-            'total_avg' => array(
-              'title' => ts('Contribution Avg'),
-              'type' => CRM_Report_Form::OP_INT,
-              'dbAlias' => 'civicrm_contribution_total_amount_avg',
-              'having' => TRUE,
+          'total_amount' => array(
+            'title' => ts('Contribution Amount Stats'),
+            'default' => TRUE,
+            'statistics' => array(
+              'sum' => ts('Contribution Aggregate'),
+              'count' => ts('Contributions'),
+              'avg' => ts('Contribution Avg'),
             ),
           ),
-          'group_bys' => array(
-            'receive_date' => array(
-              'frequency' => TRUE,
-              'default' => TRUE,
-              'chart' => TRUE,
-            ),
-            'contribution_source' => NULL,
+        ),
+        'grouping' => 'contri-fields',
+        'filters' => array(
+          'receive_date' => array('operatorType' => CRM_Report_Form::OP_DATE),
+          'contribution_status_id' => array(
+            'title' => ts('Contribution Status'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Contribute_PseudoConstant::contributionStatus(),
+            'default' => array(1),
+            'type' => CRM_Utils_Type::T_INT,
+          ),
+          'currency' => array(
+            'title' => 'Currency',
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Core_OptionGroup::values('currencies_enabled'),
+            'default' => NULL,
+            'type' => CRM_Utils_Type::T_STRING,
+          ),
+          'financial_type_id' => array(
+            'title' => ts('Financial Type'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Contribute_PseudoConstant::financialType(),
+            'type' => CRM_Utils_Type::T_INT,
+          ),
+          'contribution_page_id' => array(
+            'title' => ts('Contribution Page'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Contribute_PseudoConstant::contributionPage(),
+            'type' => CRM_Utils_Type::T_INT,
+          ),
+          'total_amount' => array(
+            'title' => ts('Contribution Amount'),
+          ),
+          'total_sum' => array(
+            'title' => ts('Contribution Aggregate'),
+            'type' => CRM_Report_Form::OP_INT,
+            'dbAlias' => 'civicrm_contribution_total_amount_sum',
+            'having' => TRUE,
+          ),
+          'total_count' => array(
+            'title' => ts('Contribution Count'),
+            'type' => CRM_Report_Form::OP_INT,
+            'dbAlias' => 'civicrm_contribution_total_amount_count',
+            'having' => TRUE,
+          ),
+          'total_avg' => array(
+            'title' => ts('Contribution Avg'),
+            'type' => CRM_Report_Form::OP_INT,
+            'dbAlias' => 'civicrm_contribution_total_amount_avg',
+            'having' => TRUE,
           ),
         ),
-        'civicrm_contribution_soft' => array(
-          'dao' => 'CRM_Contribute_DAO_ContributionSoft',
-          'fields' => array(
-            'soft_amount' => array(
-              'title' => ts('Soft Credit Amount Stats'),
-              'name' => 'amount',
-              'statistics' => array(
-                'sum' => ts('Soft Credit Aggregate'),
-                'count' => ts('Soft Credits'),
-                'avg' => ts('Soft Credit Avg'),
-              ),
-            ),
+        'group_bys' => array(
+          'receive_date' => array(
+            'frequency' => TRUE,
+            'default' => TRUE,
+            'chart' => TRUE,
           ),
-          'grouping' => 'contri-fields',
-          'filters' => array(
-            'amount' => array(
-              'title' => ts('Soft Credit Amount'),
-            ),
-            'soft_credit_type_id' => array(
-              'title' => 'Soft Credit Type',
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Core_OptionGroup::values('soft_credit_type'),
-              'default' => NULL,
-              'type' => CRM_Utils_Type::T_STRING,
-            ),
-            'soft_sum' => array(
-              'title' => ts('Soft Credit Aggregate'),
-              'type' => CRM_Report_Form::OP_INT,
-              'dbAlias' => 'civicrm_contribution_soft_soft_amount_sum',
-              'having' => TRUE,
-            ),
-            'soft_count' => array(
-              'title' => ts('Soft Credits Count'),
-              'type' => CRM_Report_Form::OP_INT,
-              'dbAlias' => 'civicrm_contribution_soft_soft_amount_count',
-              'having' => TRUE,
-            ),
-            'soft_avg' => array(
-              'title' => ts('Soft Credit Avg'),
-              'type' => CRM_Report_Form::OP_INT,
-              'dbAlias' => 'civicrm_contribution_soft_soft_amount_avg',
-              'having' => TRUE,
+          'contribution_source' => NULL,
+        ),
+      ),
+      'civicrm_contribution_soft' => array(
+        'dao' => 'CRM_Contribute_DAO_ContributionSoft',
+        'fields' => array(
+          'soft_amount' => array(
+            'title' => ts('Soft Credit Amount Stats'),
+            'name' => 'amount',
+            'statistics' => array(
+              'sum' => ts('Soft Credit Aggregate'),
+              'count' => ts('Soft Credits'),
+              'avg' => ts('Soft Credit Avg'),
             ),
           ),
         ),
-      ) + $this->addAddressFields();
+        'grouping' => 'contri-fields',
+        'filters' => array(
+          'amount' => array(
+            'title' => ts('Soft Credit Amount'),
+          ),
+          'soft_credit_type_id' => array(
+            'title' => 'Soft Credit Type',
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Core_OptionGroup::values('soft_credit_type'),
+            'default' => NULL,
+            'type' => CRM_Utils_Type::T_STRING,
+          ),
+          'soft_sum' => array(
+            'title' => ts('Soft Credit Aggregate'),
+            'type' => CRM_Report_Form::OP_INT,
+            'dbAlias' => 'civicrm_contribution_soft_soft_amount_sum',
+            'having' => TRUE,
+          ),
+          'soft_count' => array(
+            'title' => ts('Soft Credits Count'),
+            'type' => CRM_Report_Form::OP_INT,
+            'dbAlias' => 'civicrm_contribution_soft_soft_amount_count',
+            'having' => TRUE,
+          ),
+          'soft_avg' => array(
+            'title' => ts('Soft Credit Avg'),
+            'type' => CRM_Report_Form::OP_INT,
+            'dbAlias' => 'civicrm_contribution_soft_soft_amount_avg',
+            'having' => TRUE,
+          ),
+        ),
+      ),
+    ) + $this->addAddressFields();
 
     // If we have a campaign, build out the relevant elements
     if ($campaignEnabled && !empty($this->activeCampaigns)) {
@@ -316,8 +314,7 @@ class CRM_Report_Form_Contribute_Summary extends CRM_Report_Form {
             }
             if (!empty($this->_params['group_bys_freq'][$fieldName])) {
               $this->_interval = $field['title'];
-              $this->_columnHeaders["{$tableName}_{$fieldName}_start"]['title'] =
-                $field['title'] . ' Beginning';
+              $this->_columnHeaders["{$tableName}_{$fieldName}_start"]['title'] = $field['title'] . ' Beginning';
               $this->_columnHeaders["{$tableName}_{$fieldName}_start"]['type'] = $field['type'];
               $this->_columnHeaders["{$tableName}_{$fieldName}_start"]['group_by'] = $this->_params['group_bys_freq'][$fieldName];
 
@@ -546,15 +543,15 @@ ROUND(AVG({$this->_aliases['civicrm_contribution_soft']}.amount), 2) as civicrm_
     $totalAmount = $average = $softTotalAmount = $softAverage = array();
     $count = $softCount = 0;
     while ($dao->fetch()) {
-      $totalAmount[] =
-        CRM_Utils_Money::format($dao->civicrm_contribution_total_amount_sum, $dao->currency) .
+      $totalAmount[]
+        CRM_Utils_Money::format($dao->civicrm_contribution_total_amount_sum, $dao->currency) .
         " (" . $dao->civicrm_contribution_total_amount_count . ")";
       $average[] = CRM_Utils_Money::format($dao->civicrm_contribution_total_amount_avg, $dao->currency);
       $count += $dao->civicrm_contribution_total_amount_count;
 
       if ($softCredit) {
-        $softTotalAmount[] =
-          CRM_Utils_Money::format($dao->civicrm_contribution_soft_soft_amount_sum, $dao->currency) .
+        $softTotalAmount[]
+          CRM_Utils_Money::format($dao->civicrm_contribution_soft_soft_amount_sum, $dao->currency) .
           " (" . $dao->civicrm_contribution_soft_soft_amount_count . ")";
         $softAverage[] = CRM_Utils_Money::format($dao->civicrm_contribution_soft_soft_amount_avg, $dao->currency);
         $softCount += $dao->civicrm_contribution_soft_soft_amount_count;
@@ -747,4 +744,5 @@ ROUND(AVG({$this->_aliases['civicrm_contribution_soft']}.amount), 2) as civicrm_
       }
     }
   }
+
 }
index 67f6f21f215485e6b9e0ea30dd5defff251b067b..6b3d80fa19599e0f0431b8e06790fe72a6597ee9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -63,101 +63,101 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
     }
 
     $this->_columns = array(
-        'civicrm_contact' => array(
-          'dao' => 'CRM_Contact_DAO_Contact',
-          'grouping' => 'contact-field',
-          'fields' => array(
-            'sort_name' => array(
-              'title' => ts('Donor Name'),
-              'required' => TRUE,
-            ),
-            'first_name' => array(
-              'title' => ts('First Name'),
-            ),
-            'last_name' => array(
-              'title' => ts('Last Name'),
-            ),
-            'contact_type' => array(
-              'title' => ts('Contact Type'),
-            ),
-            'contact_sub_type' => array(
-              'title' => ts('Contact Subtype'),
-            ),
+      'civicrm_contact' => array(
+        'dao' => 'CRM_Contact_DAO_Contact',
+        'grouping' => 'contact-field',
+        'fields' => array(
+          'sort_name' => array(
+            'title' => ts('Donor Name'),
+            'required' => TRUE,
+          ),
+          'first_name' => array(
+            'title' => ts('First Name'),
+          ),
+          'last_name' => array(
+            'title' => ts('Last Name'),
+          ),
+          'contact_type' => array(
+            'title' => ts('Contact Type'),
           ),
-          'filters' => array(
-            'sort_name' => array(
-              'title' => ts('Donor Name'),
-              'operator' => 'like',
-            ),
+          'contact_sub_type' => array(
+            'title' => ts('Contact Subtype'),
           ),
         ),
-        'civicrm_email' => array(
-          'dao' => 'CRM_Core_DAO_Email',
-          'grouping' => 'contact-field',
-          'fields' => array(
-            'email' => array(
-              'title' => ts('Email'),
-              'default' => TRUE,
-            ),
+        'filters' => array(
+          'sort_name' => array(
+            'title' => ts('Donor Name'),
+            'operator' => 'like',
           ),
         ),
-        'civicrm_phone' => array(
-          'dao' => 'CRM_Core_DAO_Phone',
-          'grouping' => 'contact-field',
-          'fields' => array(
-            'phone' => array(
-              'title' => ts('Phone'),
-              'default' => TRUE,
-            ),
+      ),
+      'civicrm_email' => array(
+        'dao' => 'CRM_Core_DAO_Email',
+        'grouping' => 'contact-field',
+        'fields' => array(
+          'email' => array(
+            'title' => ts('Email'),
+            'default' => TRUE,
           ),
         ),
-      )
-      + $this->addAddressFields()
-      + array(
-        'civicrm_contribution' => array(
-          'dao' => 'CRM_Contribute_DAO_Contribution',
-          'fields' => array(
-            'contact_id' => array(
-              'title' => ts('contactId'),
-              'no_display' => TRUE,
-              'required' => TRUE,
-              'no_repeat' => TRUE,
-            ),
-            'total_amount' => array(
-              'title' => ts('Total Amount'),
-              'no_display' => TRUE,
-              'required' => TRUE,
-              'no_repeat' => TRUE,
-            ),
-            'receive_date' => array(
-              'title' => ts('Year'),
-              'no_display' => TRUE,
-              'required' => TRUE,
-              'no_repeat' => TRUE,
-            ),
+      ),
+      'civicrm_phone' => array(
+        'dao' => 'CRM_Core_DAO_Phone',
+        'grouping' => 'contact-field',
+        'fields' => array(
+          'phone' => array(
+            'title' => ts('Phone'),
+            'default' => TRUE,
+          ),
+        ),
+      ),
+    );
+    $this->_columns += $this->addAddressFields();
+    $this->_columns += array(
+      'civicrm_contribution' => array(
+        'dao' => 'CRM_Contribute_DAO_Contribution',
+        'fields' => array(
+          'contact_id' => array(
+            'title' => ts('contactId'),
+            'no_display' => TRUE,
+            'required' => TRUE,
+            'no_repeat' => TRUE,
+          ),
+          'total_amount' => array(
+            'title' => ts('Total Amount'),
+            'no_display' => TRUE,
+            'required' => TRUE,
+            'no_repeat' => TRUE,
           ),
-          'filters' => array(
-            'yid' => array(
-              'name' => 'receive_date',
-              'title' => ts('This Year'),
-              'operatorType' => CRM_Report_Form::OP_SELECT,
-              'options' => $optionYear,
-              'default' => date('Y'),
-            ),
-            'financial_type_id' => array(
-              'title' => ts('Financial Type'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Contribute_PseudoConstant::financialType(),
-            ),
-            'contribution_status_id' => array(
-              'title' => ts('Contribution Status'),
-              'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-              'options' => CRM_Contribute_PseudoConstant::contributionStatus(),
-              'default' => array('1'),
-            ),
+          'receive_date' => array(
+            'title' => ts('Year'),
+            'no_display' => TRUE,
+            'required' => TRUE,
+            'no_repeat' => TRUE,
           ),
         ),
-      );
+        'filters' => array(
+          'yid' => array(
+            'name' => 'receive_date',
+            'title' => ts('This Year'),
+            'operatorType' => CRM_Report_Form::OP_SELECT,
+            'options' => $optionYear,
+            'default' => date('Y'),
+          ),
+          'financial_type_id' => array(
+            'title' => ts('Financial Type'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Contribute_PseudoConstant::financialType(),
+          ),
+          'contribution_status_id' => array(
+            'title' => ts('Contribution Status'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Contribute_PseudoConstant::contributionStatus(),
+            'default' => array('1'),
+          ),
+        ),
+      ),
+    );
 
     // If we have a campaign, build out the relevant elements
     if ($campaignEnabled && !empty($this->activeCampaigns)) {
@@ -315,8 +315,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
 
   public function groupBy() {
     $this->assign('chartSupported', TRUE);
-    $this->_groupBy =
-      "Group BY {$this->_aliases['civicrm_contribution']}.contact_id, " .
+    $this->_groupBy = "Group BY {$this->_aliases['civicrm_contribution']}.contact_id, " .
       self::fiscalYearOffset($this->_aliases['civicrm_contribution'] .
         '.receive_date') . " WITH ROLLUP ";
   }
@@ -376,7 +375,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
         $sql = "{$this->_select} {$this->_from} {$this->_where} {$this->_groupBy}";
       }
       else {
-        $sql =
+        $sql = "" .
           "{$this->_select} {$this->_from} WHERE {$this->_aliases['civicrm_contact']}.id IN (" .
           implode(',', $contactIds) .
           ") AND {$this->_aliases['civicrm_contribution']}.is_test = 0 {$this->_statusClause} {$this->_groupBy} ";
@@ -412,8 +411,8 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
           $rows[$dao->civicrm_contribution_contact_id]['civicrm_life_time_total'] = $dao->civicrm_contribution_total_amount;
           if (($dao->civicrm_contribution_total_amount - $contributionSum) > 0
           ) {
-            $rows[$dao->civicrm_contribution_contact_id]["civicrm_upto_{$upTo_year}"] =
-              $dao->civicrm_contribution_total_amount - $contributionSum;
+            $rows[$dao->civicrm_contribution_contact_id]["civicrm_upto_{$upTo_year}"]
+              $dao->civicrm_contribution_total_amount - $contributionSum;
           }
           $contributionSum = 0;
         }
@@ -448,18 +447,18 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
     $interval["upto_{$upto}"] = "Up To {$upto}";
 
     foreach ($rows as $key => $row) {
-      $display["upto_{$upto}"] =
-        CRM_Utils_Array::value("upto_{$upto}", $display) +
-        CRM_Utils_Array::value("civicrm_upto_{$upto}", $row);
-      $display[$previous_year] =
-        CRM_Utils_Array::value($previous_year, $display) +
-        CRM_Utils_Array::value($previous_year, $row);
-      $display[$previous_two_year] =
-        CRM_Utils_Array::value($previous_two_year, $display) +
-        CRM_Utils_Array::value($previous_two_year, $row);
-      $display[$previous_three_year] =
-        CRM_Utils_Array::value($previous_three_year, $display) +
-        CRM_Utils_Array::value($previous_three_year, $row);
+      $display["upto_{$upto}"]
+        = CRM_Utils_Array::value("upto_{$upto}", $display)
+        CRM_Utils_Array::value("civicrm_upto_{$upto}", $row);
+      $display[$previous_year]
+        = CRM_Utils_Array::value($previous_year, $display)
+        CRM_Utils_Array::value($previous_year, $row);
+      $display[$previous_two_year]
+        = CRM_Utils_Array::value($previous_two_year, $display)
+        CRM_Utils_Array::value($previous_two_year, $row);
+      $display[$previous_three_year]
+        = CRM_Utils_Array::value($previous_three_year, $display)
+        CRM_Utils_Array::value($previous_three_year, $row);
     }
 
     $graphRows['value'] = $display;
@@ -532,4 +531,5 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
     }
     return parent::getOperationPair($type, $fieldName);
   }
+
 }
index 3c93823395c0bbcc08bea13c1521b73317e37e12..ee6b7e4eba8c346bc63ae39868e83a974a5b2ed9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -451,4 +451,5 @@ ORDER BY civicrm_contribution_total_amount_sum DESC
       }
     }
   }
+
 }
index cd0cbcc9ed588154f271abf3270004a1904b94ad..7952b71aea9112b1dfaebe91805d66fb87386f57 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -35,4 +35,5 @@
 class CRM_Report_Form_Event extends CRM_Report_Form {
   // Nothing here.
   // FIXME: Do these reports really have nothing in common? Really?
+
 }
index 1e9acca825846f9f4bd724bcb9bf0e280c92d541..1a4b5041c6bce3cd927036c69fff33ad86e18c17 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -374,4 +374,5 @@ class CRM_Report_Form_Event_Income extends CRM_Report_Form_Event {
 
     parent::endPostProcess();
   }
+
 }
index 0c4e7697931e6ddbb20310ef21edf3dc779a815f..8e4bc8f576bebfb99ef7e61ade26d799d7d0b73a 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -431,4 +431,5 @@ class CRM_Report_Form_Event_IncomeCountSummary extends CRM_Report_Form_Event {
       }
     }
   }
+
 }
index ef459e0d2b5762d16a82bb7d10ff48c57d6427da..f81fadc16072c6a804e13a931f5c5490ab7e1b0e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,    |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing      |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -541,4 +541,5 @@ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form_Event {
       }
     }
   }
+
 }
index 238fb5128a0a933988ef3e5a8cb749ae4e3480f5..418ee97507738ff008cf8786ffe4befb912e046d 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -786,4 +786,5 @@ ORDER BY  cv.label
       }
     }
   }
+
 }
index c146b146ec3af9e96d00a082ba1b7c480edcad3c..7c21537ac81506da38710708ed9cb2a59d7f0937 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -409,4 +409,5 @@ class CRM_Report_Form_Event_Summary extends CRM_Report_Form_Event {
       }
     }
   }
+
 }
index 9fcd9dd1e16092087c389ba4be92b0fd66cad11d..ef11ba6594b4cbfd53e9786c1b5a58bb1bac6185 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1404,4 +1404,5 @@ WHERE   line_item_civireport.id IS NOT NULL
     $paymentInstruments = CRM_Contribute_PseudoConstant::paymentInstrument();
     return $paymentInstruments[$value];
   }
+
 }
index d834c063d1d6f7de5ec7045b4a6062a1d141cfc5..fda6d41083c441bfa8ad82f64f3bd2dc4a262d59 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -360,4 +360,5 @@ class CRM_Report_Form_Grant_Detail extends CRM_Report_Form {
       }
     }
   }
+
 }
index a2e1990143d62c43f09d66c73a0cf7062885f7ec..6b26966be95d9604178b3c8efb76e0eeda6004c1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -573,4 +573,5 @@ SELECT COUNT({$this->_aliases['civicrm_grant']}.id) as count ,
           $awardedGrants) * 100);
     }
   }
+
 }
index bdd122edbb632736ceef81f66c6f65bc86d3ba80..e4d8b838bda313c2920f970de44a5f605b1dd6ea 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -336,4 +336,5 @@ class CRM_Report_Form_Instance {
       CRM_Utils_System::redirect(CRM_Utils_System::url("civicrm/report/instance/{$instance->id}", "reset=1"));
     }
   }
+
 }
index d3d69c8b59bd8d0459489578b88c26c1f9720c06..ccea88b922ca5f823401a5894d7b53c3545384f9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -378,4 +378,5 @@ class CRM_Report_Form_Mailing_Bounce extends CRM_Report_Form {
       }
     }
   }
+
 }
index d0c1f431cc8f232e71190732ae3602102f77283b..b5b12afdcbe7eb78f1ab4f0552e68763208f20d5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -326,4 +326,5 @@ class CRM_Report_Form_Mailing_Clicks extends CRM_Report_Form {
       }
     }
   }
+
 }
index 1420e2d320e13bc7611f84a34726d71b65067e26..e17aafbe725764373394c0238dea0bd6793ee4d8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -470,4 +470,5 @@ class CRM_Report_Form_Mailing_Detail extends CRM_Report_Form {
       }
     }
   }
+
 }
index 0c4d5610d0e6034969578e98a684c9b8c3cb89ff..bb981a6e18988d333eb59fe32aba76b222671720 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -313,4 +313,5 @@ class CRM_Report_Form_Mailing_Opened extends CRM_Report_Form {
       }
     }
   }
+
 }
index f564082d70a1c0aeeda34ebde21d6300d25d0c85..a604330a9fc4f94714cdde26b5131dbef8073c50 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -490,7 +490,7 @@ class CRM_Report_Form_Mailing_Summary extends CRM_Report_Form {
         'bounce_rate',
         'open_rate',
         'CTR',
-        'CTO'
+        'CTO',
       ))) {
         $isError = FALSE;
       }
@@ -499,7 +499,7 @@ class CRM_Report_Form_Mailing_Summary extends CRM_Report_Form {
     if ($isError) {
       $errors['_qf_default'] = ts('For Chart view, please select at least one field from %1 OR %2.', array(
           1 => implode(', ', $criterias['count']),
-          2 => implode(', ', $criterias['rate'])
+          2 => implode(', ', $criterias['rate']),
         ));
     }
 
@@ -612,4 +612,5 @@ class CRM_Report_Form_Mailing_Summary extends CRM_Report_Form {
       }
     }
   }
+
 }
index fa4d910e5c9ea917f550522df94a06e53f1294d4..d301c8ce95915efa404088fdde743f6b1510e471 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -812,4 +812,5 @@ class CRM_Report_Form_Member_ContributionDetail extends CRM_Report_Form {
       $lastKey = $rowNum;
     }
   }
+
 }
index 40b45d5e749c15135c646cdbcb89eebf5acdcfbf..1a6d9e184eba6160a31992bd0a62b20d5d500762 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -475,4 +475,5 @@ class CRM_Report_Form_Member_Detail extends CRM_Report_Form {
       }
     }
   }
+
 }
index 63b1a84049f0b3fbfdd2ceb6ffe0afa0bc7de7c8..6b50f92cc05426c9f3f85d6ffc376ef243de6c48 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -438,4 +438,5 @@ class CRM_Report_Form_Member_Lapse extends CRM_Report_Form {
       }
     }
   }
+
 }
index 81e2f42238648007989b27e5597702fc0927c6ee..134e688f661ca0e998ca95b3b8172f0a2bb0d1d9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -241,8 +241,7 @@ class CRM_Report_Form_Member_Summary extends CRM_Report_Form {
             }
             if (!empty($this->_params['group_bys_freq'][$fieldName])) {
               $this->_interval = $field['title'];
-              $this->_columnHeaders["{$tableName}_{$fieldName}_start"]['title'] =
-                $field['title'] . ' Beginning';
+              $this->_columnHeaders["{$tableName}_{$fieldName}_start"]['title'] = $field['title'] . ' Beginning';
               $this->_columnHeaders["{$tableName}_{$fieldName}_start"]['type'] = $field['type'];
               $this->_columnHeaders["{$tableName}_{$fieldName}_start"]['group_by'] = $this->_params['group_bys_freq'][$fieldName];
 
@@ -339,8 +338,6 @@ class CRM_Report_Form_Member_Summary extends CRM_Report_Form {
                          ON payment.contribution_id = {$this->_aliases['civicrm_contribution']}.id";
   }
 
-  // end of from
-
   public function where() {
     $this->_whereClauses[] = "{$this->_aliases['civicrm_membership']}.is_test = 0 AND
                               {$this->_aliases['civicrm_contact']}.is_deleted = 0";
@@ -413,9 +410,7 @@ GROUP BY    {$this->_aliases['civicrm_contribution']}.currency
     $totalAmount = $average = array();
     $count = $memberCount = 0;
     while ($dao->fetch()) {
-      $totalAmount[] =
-        CRM_Utils_Money::format($dao->amount, $dao->currency) . "(" .
-        $dao->count . ")";
+      $totalAmount[] = CRM_Utils_Money::format($dao->amount, $dao->currency) . "(" . $dao->count . ")";
       $average[] = CRM_Utils_Money::format($dao->avg, $dao->currency);
       $count += $dao->count;
       $memberCount += $dao->memberCount;
@@ -639,4 +634,5 @@ GROUP BY    {$this->_aliases['civicrm_contribution']}.currency
       }
     }
   }
+
 }
index 387abf456675086a9de2696decefdb1e1005a5bb..a3a2411c359afcb60ac91bfd1f6f0b04547f13e7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -448,4 +448,5 @@ LEFT  JOIN civicrm_contribution  {$this->_aliases['civicrm_contribution']}
       }
     }
   }
+
 }
index 3d3a6c0f5b252e8346f5b4adc200fe862db95834..11b7a5f27b0882d8a09856ab49f92c6ee73facc2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
@@ -577,4 +577,5 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form {
       }
     }
   }
+
 }
index e0c9a0bc9f7007d1daa7a6a71b16d5ebb79a242e..062ee279508538aff2a0156108c3a0073c01b85a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -329,8 +329,7 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
       //handle the Financial Type Ids
       if (array_key_exists('civicrm_pledge_financial_type_id', $row)) {
         if ($value = $row['civicrm_pledge_financial_type_id']) {
-          $rows[$rowNum]['civicrm_pledge_financial_type_id'] =
-            CRM_Contribute_PseudoConstant::financialType($value, FALSE);
+          $rows[$rowNum]['civicrm_pledge_financial_type_id'] = CRM_Contribute_PseudoConstant::financialType($value, FALSE);
         }
         $entryFound = TRUE;
       }
@@ -388,4 +387,5 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
       }
     }
   }
+
 }
index 59e091b35de64ee68d50e658b4293563a16c6488..d91fc6bfd2bdf0ecb06cd7bc6c1286d84fc74d9a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -403,4 +403,5 @@ class CRM_Report_Form_Pledge_Summary extends CRM_Report_Form {
       }
     }
   }
+
 }
index 3de997e5a87fedd0364262c26ca28bb6e462a73f..a04b98c73b1fd9cec077d8073e86e6ec10e29460 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -204,4 +204,5 @@ class CRM_Report_Form_Register extends CRM_Core_Form {
       CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/report/options/report_template', "reset=1"));
     }
   }
+
 }
index 106efc2e627ef29ff6e892a397e7e1ada70bdba6..07fab668fb67fc14472998f6be6452aa08820031 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -284,4 +284,5 @@ FROM       civicrm_contact {$this->_aliases['civicrm_contact']} {$this->_aclFrom
       }
     }
   }
+
 }
index 8ed743cd3b4714db58d3e3580355a823a1139a2f..d6e09597d05855b22cb83c0643f979ec37cc8194 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class introduces component to the system and provides all the
@@ -177,4 +177,5 @@ class CRM_Report_Info extends CRM_Core_Component_Info {
    */
   public function creatNewShortcut(&$shortCuts) {
   }
+
 }
index 313a60076d9c166f570b8e2fd2544ef8ddfa64a8..bf4fbaed518b263558ca1c59a9db768cb55a86b4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -107,4 +107,5 @@ interface CRM_Report_Interface {
    * Returns an array of column headers and field names and sort options
    */
   public function &columns();
+
 }
index 1789f2e872f2caf3f15414aedee6779df5f3293d..f9d4fe63cf98c22075a9c3c10fd89626e112dc91 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -106,4 +106,5 @@ class CRM_Report_Page_Instance extends CRM_Core_Page {
     }
     return CRM_Utils_System::redirect($reportUrl);
   }
+
 }
index c603af071e93e0e172eac32b1b5ff7f4fda045b3..ad4aacec091bab09078c833eb0bc08428a752330 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -212,4 +212,5 @@ class CRM_Report_Page_InstanceList extends CRM_Core_Page {
     }
     return parent::run();
   }
+
 }
index 5d00af1b87014b4d605945a06bf3205ab3f55163..bbedb64db56dcd2e664d462d6f6dd59859f1ce24 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -219,4 +219,5 @@ class CRM_Report_Page_Options extends CRM_Core_Page_Basic {
   public function userContextParams($mode = NULL) {
     return 'reset=1&action=browse';
   }
+
 }
index c6da9f50400a132ad74cf619a51d7fa79fcd002a..6c7b3a599668de0b9c416da918f2419f66d2a117 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -81,4 +81,5 @@ class CRM_Report_Page_Report extends CRM_Core_Page {
     }
     return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/report/list', 'reset=1'));
   }
+
 }
index 8ec1a3cb7c7cd77ca42e4d9fe702b2f75a8964bb..9f18cbd57eff15bc00a67c602606d1918ee1b59a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -119,4 +119,5 @@ LEFT  JOIN civicrm_component comp
 
     return parent::run();
   }
+
 }
index 9ce1496e31405fa45f2bdba4e59bcd1faa8d6fcc..8b822552125c56a6d0e8f39799a0328b38180400 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -305,4 +305,5 @@ class CRM_Report_Utils_Get {
       }
     }
   }
+
 }
index 8c7ab85c5eb74b0af82ddf7b9b1d6232215b7f48..2841776f57e9fb2960cfaec0496fe0c7ba33f9a9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -558,4 +558,5 @@ WHERE  report_id = %1";
     }
     return $instanceDetails[$reportUrl];
   }
+
 }
index 7d3ac22c6fd36a81a0ae3900a751355f7ffe8a34..f6cae91390d3660aff7f2753b535d6bda63991d1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -182,4 +182,5 @@ class CRM_SMS_BAO_Provider extends CRM_SMS_DAO_Provider {
     }
     return $providerInfo[$providerID];
   }
+
 }
index 48037399b7b6975d08e230e2b4f8188b3e62090a..2f93152d448dde5397835f2b28d0e3a3d1168cad 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -72,4 +72,5 @@ class CRM_SMS_Controller_Send extends CRM_Core_Controller {
       $uploadNames
     );
   }
+
 }
index f65ee7629f8639af8cffe3a22476f11d1904c60f..45064eac361110f8e9b361e5a97414adc99f76d3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -192,7 +192,7 @@ class CRM_SMS_Form_Group extends CRM_Contact_Form_Task {
     foreach (array(
                'name',
                'group_id',
-               'is_sms'
+               'is_sms',
              ) as $n) {
       if (!empty($values[$n])) {
         $params[$n] = $values[$n];
@@ -253,7 +253,7 @@ class CRM_SMS_Form_Group extends CRM_Contact_Form_Task {
       // delete previous includes/excludes, if mailing already existed
       foreach (array(
                  'groups',
-                 'mailings'
+                 'mailings',
                ) as $entity) {
         $mg = new CRM_Mailing_DAO_MailingGroup();
         $mg->mailing_id = $ids['mailing_id'];
@@ -346,4 +346,5 @@ class CRM_SMS_Form_Group extends CRM_Contact_Form_Task {
 
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index 59ed8bdf02c1a7e00c5b83b177ce8d02bdd0b4b4..cbb888a281fd45ad39653caa277b919f6b7eb15c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -180,4 +180,5 @@ class CRM_SMS_Form_Provider extends CRM_Core_Form {
       CRM_SMS_BAO_Provider::saveRecord($recData);
     }
   }
+
 }
index 83c285b007ff3c0a87873e854f3f00299d2fc633..901d25b2474e678adfb919afb26de4ce11c03f38 100644 (file)
@@ -121,9 +121,9 @@ class CRM_SMS_Form_Schedule extends CRM_Core_Form {
    * @param $files
    * @param $self
    *
-   * @return boolean
-   *   True if either we deliver immediately, or the
-   *                          date is properly set.
+   * @return bool
+   *   True if either we deliver immediately, or the date is properly
+   *   set.
    */
   public static function formRule($params, $files, $self) {
     if (!empty($params['_qf_Schedule_submit'])) {
@@ -211,4 +211,5 @@ class CRM_SMS_Form_Schedule extends CRM_Core_Form {
   public function getTitle() {
     return ts('Schedule or Send');
   }
+
 }
index 033b1803059d411ec781eb66924102efec5859ff..565182bae9c28b88b700f4654937a0371061ba5a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -378,7 +378,7 @@ class CRM_SMS_Form_Upload extends CRM_Core_Form {
       $dataErrors = array();
 
       /* Do a full token replacement on a dummy verp, the current
-             * contact and domain, and the first organization. */
+       * contact and domain, and the first organization. */
 
       // here we make a dummy mailing object so that we
       // can retrieve the tokens that we need to replace
@@ -434,4 +434,5 @@ class CRM_SMS_Form_Upload extends CRM_Core_Form {
   public function getTitle() {
     return ts('SMS Content');
   }
+
 }
index 6e9d533de7be6ca975a57391c75a1bf2033342c1..21bb08be3d03360b3f3ce634b15a1eefcbca7636 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -44,4 +44,5 @@ class CRM_SMS_Page_Callback {
       $provider->inbound();
     }
   }
+
 }
index 4414709c2925e395e4fa64984d549451c2cdb71b..de6cceef75e55f78871d2c43a19680631befa930 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -192,4 +192,5 @@ class CRM_SMS_Page_Provider extends CRM_Core_Page_Basic {
   public function userContext($mode = NULL) {
     return 'civicrm/admin/sms/provider';
   }
+
 }
index 200c8747e824b331a7b3cfdd6ba4279e9c035071..d6d1c5df11ab7ba9c0ff4419015f0a2aa4429c0d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -89,7 +89,7 @@ abstract class CRM_SMS_Provider {
   /**
    * Send an SMS Message via the API Server
    */
-  abstract function send($recipients, $header, $message, $dncID = NULL);
+  abstract public function send($recipients, $header, $message, $dncID = NULL);
 
   /**
    * Return message text. Child class could override this function to have better control over the message being sent.
@@ -120,7 +120,7 @@ abstract class CRM_SMS_Provider {
    * @param int $jobID
    * @param int $userID
    *
-   * @return $this|null|object
+   * @return self|null|object
    * @throws CRM_Core_Exception
    */
   public function createActivity($apiMsgID, $message, $headers = array(), $jobID = NULL, $userID = NULL) {
@@ -186,7 +186,7 @@ INNER JOIN civicrm_mailing_job mj ON mj.mailing_id = m.id AND mj.id = %1";
    * @param null $to
    * @param int $trackID
    *
-   * @return $this|null|object
+   * @return self|null|object
    * @throws CRM_Core_Exception
    */
   public function processInbound($from, $body, $to = NULL, $trackID = NULL) {
@@ -209,14 +209,14 @@ INNER JOIN civicrm_mailing_job mj ON mj.mailing_id = m.id AND mj.id = %1";
           1 => array(
             'location_type_id' => $phoneloc,
             'email' => $stripFrom . '@mobile.sms',
-          )
+          ),
         ),
         'phone' => array(
           1 => array(
             'phone_type_id' => $phonetype,
             'location_type_id' => $phoneloc,
             'phone' => $stripFrom,
-          )
+          ),
         ),
       );
       $fromContact = CRM_Contact_BAO_Contact::create($contactparams, FALSE, TRUE, FALSE);
@@ -355,4 +355,5 @@ INNER JOIN civicrm_mailing_job mj ON mj.mailing_id = m.id AND mj.id = %1";
     }
     return $uri;
   }
+
 }
index c51f4dee7bfd722862834cfd4a5ec98aadc532a4..67ee66496114c2ee74809de16a83e3144fa1bd3c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -58,4 +58,5 @@ class CRM_SMS_StateMachine_Send extends CRM_Core_StateMachine {
 
     $this->addSequentialPages($this->_pages, $action);
   }
+
 }
index 02082299ed2c007e94dceef08f43d681a2952a59..e8c6cc7b598f84965231d646cf30973281f75b17 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -127,4 +127,5 @@ class CRM_Tag_Form_Tag extends CRM_Core_Form {
 
     CRM_Core_Session::setStatus(ts('Your update(s) have been saved.'), ts('Saved'), 'success');
   }
+
 }
index 4ac9b6093ea39a8f46b8223d19d5caffc720e664..4e4840efb1194c8747d90eecc1edb714fe6efc58 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -117,4 +117,5 @@ class CRM_UF_Form_AbstractPreview extends CRM_Core_Form {
   public function getTemplateFileName() {
     return 'CRM/UF/Form/Preview.tpl';
   }
+
 }
index ee9e89933af04e9d88476eeca74cbd186cf8082f..858b98c530831d499922b091e8a2b5830819c967 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -58,9 +58,7 @@ class CRM_UF_Form_AdvanceSetting extends CRM_UF_Form_Group {
     $form->addElement('text', 'cancel_URL', ts('Cancel Redirect URL'), CRM_Core_DAO::getAttribute('CRM_Core_DAO_UFGroup', 'cancel_URL'));
 
     // add select for groups
-    $group = array(
-        '' => ts('- select -')
-      ) + $form->_group;
+    $group = array('' => ts('- select -')) + $form->_group;
     $form->_groupElement = &$form->addElement('select', 'group', ts('Limit listings to a specific Group?'), $group);
 
     //add notify field
@@ -101,4 +99,5 @@ class CRM_UF_Form_AdvanceSetting extends CRM_UF_Form_Group {
 
     $form->addGroup($proxOptions, 'is_proximity_search', ts('Proximity Search'));
   }
+
 }
index 123af298eeaff19832cdbc6d5cb88fd0432c5298..968bdf57e6e4f776aa80d7ce4b6536c9ceb781ca 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -111,7 +111,7 @@ class CRM_UF_Form_Field extends CRM_Core_Form {
         array(
           'title' => ts('CiviCRM Profile Fields'),
           'url' => $url,
-        )
+        ),
       );
       CRM_Utils_System::appendBreadCrumb($breadCrumb);
     }
@@ -294,8 +294,8 @@ class CRM_UF_Form_Field extends CRM_Core_Form {
       $defaultLocation = $this->_location_types[$defaultLocationType->id];
       unset($this->_location_types[$defaultLocationType->id]);
       $this->_location_types = array(
-          $defaultLocationType->id => $defaultLocation,
-        ) + $this->_location_types;
+        $defaultLocationType->id => $defaultLocation,
+      ) + $this->_location_types;
     }
 
     $this->_location_types = array('Primary') + $this->_location_types;
@@ -615,18 +615,14 @@ class CRM_UF_Form_Field extends CRM_Core_Form {
   /**
    * Validation rule for subtype.
    *
-   * @param array $groupType
-   *   Contains all groupTypes.
-   *
    * @param string $fieldType
    *   Type of field.
-   *
+   * @param array $groupType
+   *   Contains all groupTypes.
    * @param array $errors
-   *
-   * @return array
-   *   list of errors to be posted back to the form
+   *   List of errors to be posted back to the form.
    */
-  public static function formRuleSubType($fieldType, $groupType, $errors) {
+  public static function formRuleSubType($fieldType, $groupType, &$errors) {
     if (in_array($fieldType, array(
       'Participant',
       'Contribution',
@@ -1015,4 +1011,5 @@ class CRM_UF_Form_Field extends CRM_Core_Form {
     }
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index 77c3c3aa5c3cd1a04064625cce25c77f8005c276..a38c77b76e71b0577e3bb42775f863a17c2cfa5d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -385,4 +385,5 @@ class CRM_UF_Form_Group extends CRM_Core_Form {
     // update cms integration with registration / my account
     CRM_Utils_System::updateCategories();
   }
+
 }
index 6ace64ffe6c0c8a3ffbd4b431b433a8b18e423fd..e28b631226c6083bbf523f20faa116255622329c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 3d25fe9fc53344c3a7aa5774681d3b6cf5440952..894aeda9ca87e8089bd81badf99dadac8eb40b77 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 591f29f8304cd9834235dbf758293e06d038a765..b27c3d96539a96065b5933a09959ebe959954d26 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 785048df900bc963eb6bb78246dfac1b619579fd..5edb2d497917a46489d05f6f47f9a14949582341 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -49,4 +49,5 @@ class CRM_UF_Page_AJAX {
     $isMultiple = array('is_multi' => $isMultiple);
     CRM_Utils_JSON::output($isMultiple);
   }
+
 }
index 5425905ca84cda58310d386bfa0495ef9d52a5e0..a6467ca2b505efef67ff043a8ac0ea13856e944b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -295,4 +295,5 @@ class CRM_UF_Page_Field extends CRM_Core_Page {
     $controller->process();
     $controller->run();
   }
+
 }
index f5c63382e4c21c76abc860ba122821a7b6374525..bdae6cdd75eb21bd91c6fa0e1881ac6e8b4d95f5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -490,4 +490,5 @@ class CRM_UF_Page_Group extends CRM_Core_Page {
     }
     return $returnGroupTypes;
   }
+
 }
index 0e5a84782b6ff0de4471ab6308c456c9e887877b..025fea737e82edf35bbaedc0d1621010e125670f 100644 (file)
@@ -270,4 +270,5 @@ class CRM_UF_Page_ProfileEditor extends CRM_Core_Page {
     }
     return $result;
   }
+
 }
index b35d67486084074e01b8903e064cf23c747e9edc..e25bd216a69da75dd68894494efdb6e1fffab4db 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -56,4 +56,5 @@ class CRM_Upgrade_Controller extends CRM_Core_Controller {
     $config = CRM_Core_Config::singleton();
     $this->addActions();
   }
+
 }
index 803bf2e7d2a33339feb964f51013686f983aab90..6f40d682b11509b36aee97abb9edc4f3f8c4a56b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -360,7 +360,7 @@ SET    version = '$version'
 
     // sample test list
     /*         $revList = array(
-      '2.1.0', '2.2.beta2', '2.2.beta1', '2.2.alpha1', */
+    '2.1.0', '2.2.beta2', '2.2.beta1', '2.2.alpha1', */
 
     /*                          '2.2.alpha3', '2.2.0', '2.2.2', '2.1.alpha1', '2.1.3'); */
 
@@ -785,4 +785,5 @@ SET    version = '$version'
       }
     }
   }
+
 }
index 9ac4c313d1a1dc25de8980cee3236b8f754c7e9c..a63c15ba7ff14cc27673947affea6796c2f5a527 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Perform an upgrade without using the web-frontend
@@ -81,4 +81,5 @@ class CRM_Upgrade_Headless {
       'message' => file_get_contents($postUpgradeMessageFile),
     );
   }
+
 }
index 19f538f52dc3b930b7416113dc7137181fdb87c0..25c3271553b3d060122419dd0ec2101d6bc3f9b8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -596,4 +596,5 @@ SELECT  count( id ) as statusCount
     $upgrade = new CRM_Upgrade_Form();
     $upgrade->processSQL($rev);
   }
+
 }
index a8b451f529e37debe62116ddaf01a2865f48dfec..8e81e4605bc3ccc459323c60a96b2ddda6755bd4 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -142,7 +142,7 @@ DROP KEY `{$dao->CONSTRAINT_NAME}`";
         $endId = $startId + self::BATCH_SIZE - 1;
         $title = ts("Upgrade DB to 4.5.beta9: Fix line items for {$label} (%1 => %2)", array(
             1 => $startId,
-            2 => $endId
+            2 => $endId,
           ));
         $this->addTask($title, 'task_4_5_0_fixLineItem', $startId, $endId, $label);
       }
@@ -272,7 +272,7 @@ DROP KEY `{$dao->CONSTRAINT_NAME}`";
     $dao = CRM_Core_DAO::executeQuery($query);
 
     if ($dao->N) {
-      $domain = new CRM_Core_DAO_Domain;
+      $domain = new CRM_Core_DAO_Domain();
       $domain->find(TRUE);
       while ($dao->fetch()) {
         $honorParams = array('soft_credit' => array('soft_credit_types' => $honorTypes));
@@ -345,4 +345,5 @@ DROP KEY `{$dao->CONSTRAINT_NAME}`";
     );
     $queue->createItem($task, array('weight' => -1));
   }
+
 }
index 6d7f437960192fab580abcb5a92c1ce88d43527e..853797202fa44a0f1191326d59201d3c63c17199 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -832,4 +832,5 @@ CREATE TABLE IF NOT EXISTS `civicrm_word_replacement` (
     }
     return $result;
   }
+
 }
index c66c3cf0e7593d1d836d48edc58701a82da73772..79b1741bfa7ea721bc3434c443dbd44dcd34dcf6 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -428,4 +428,5 @@ AND    v.is_active = 1
   public function getTemplateMessage() {
     return "Blah";
   }
+
 }
index 9e62f02e604d278cd60e8b031d2fa94dc984b4ae..dd4cd007e60628a1848143f8907d33a3d2582cba 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -108,4 +108,5 @@ class CRM_Upgrade_Incremental_php_FourSix {
     );
     $queue->createItem($task, array('weight' => -1));
   }
+
 }
index 79306f3dca6d368acb86d551d6a70032c760e17f..7a726c2ba210d6664d0f3cefc5dbea4f73a99f40 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1350,4 +1350,5 @@ ADD INDEX UI_entity_financial_trxn_entity_id (entity_id);
     );
     $queue->createItem($task, array('weight' => -1));
   }
+
 }
index 8f91366a4ec0e2d420161002f7695831badb5242..526796408c4fb6c1314137965d842f2020ecf307 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 6e8b4a778adaf2f1901b96c2f053758360f54545..fa996684579399073d3cf98988471e790baa5b34 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -47,4 +47,5 @@ class CRM_Upgrade_Incremental_php_FourZero {
   public function upgrade_4_0_alpha1($rev) {
     // do nothing, db is already upgraded to 3.4.alpha1.
   }
+
 }
index d34f811c08a7736f05976a1522a53b5e9cd2bc31..b5d4180b582c00cf24314e70614f9380252da94a 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -411,4 +411,5 @@ VALUES
     $upgrade = new CRM_Upgrade_Form();
     $upgrade->processSQL($rev);
   }
+
 }
index dc98c089a23fd78f3e3d77b7c028cd653fbea0f1..fe2c9107ce4a4ca3fcccfbfdfceef0c85516b538 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -416,4 +416,5 @@ INNER JOIN  civicrm_option_group grp ON ( grp.id = val.option_group_id )
     $upgrade->assign('alterContactDashboard', $alterContactDashboard);
     $upgrade->processSQL($rev);
   }
+
 }
index bdabdb38f53b79f98cce9e51f26790f079f24b76..5872c1d7c49b02499987bb5f5a683089a06b1767 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -288,4 +288,5 @@ UPDATE  civicrm_membership_status
     $upgrade->assign('addActivityTypeIndex', $addActivityTypeIndex);
     $upgrade->processSQL($rev);
   }
+
 }
index ff4888080e982eca8bd237ae93806cfa1ce5a8ff..e719ac8938e4df231e69f06f811e676abee8b55e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Upgrade_Page_Cleanup
@@ -42,7 +42,7 @@ class CRM_Upgrade_Page_Cleanup extends CRM_Core_Page {
       "Start Date",
       "End Date",
       "Membership Status",
-      "Action"
+      "Action",
     );
     $template->assign('columnHeaders', $columnHeaders);
     $template->assign('rows', $rows);
@@ -53,11 +53,12 @@ class CRM_Upgrade_Page_Cleanup extends CRM_Core_Page {
     $postMessage = ts('You can <a href="%1">click here</a> to try running the 4.2 upgrade script again. <a href="%2" target="_blank">(Review upgrade documentation)</a>',
       array(
         1 => CRM_Utils_System::url('civicrm/upgrade', 'reset=1'),
-        2 => 'http://wiki.civicrm.org/confluence/display/CRMDOC/Installation+and+Upgrades'
+        2 => 'http://wiki.civicrm.org/confluence/display/CRMDOC/Installation+and+Upgrades',
       ));
     $template->assign('postMessage', $postMessage);
 
     $content = $template->fetch('CRM/common/upgradeCleanup.tpl');
     echo CRM_Utils_System::theme($content, FALSE, TRUE);
   }
+
 }
index 02949cad44041efb7f4110dc5f56c738e04f88af..0caf1f1838f805d22730885d5fe69a898d295087 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -203,4 +203,5 @@ class CRM_Upgrade_Page_Upgrade extends CRM_Core_Page {
     $content = $template->fetch('CRM/common/success.tpl');
     echo CRM_Utils_System::theme($content, $this->_print, TRUE);
   }
+
 }
index eb36f2259a38b4bea22859a732a36375c1f4e39a..6f0b69ae32b456a91337fd086cc9fca63c568531 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -635,4 +635,5 @@ WHERE  id IN (" . implode(',', array_keys($priceFields)) . ')';
       $error['_qf_default'] = ts("Please select at least one option from price set.");
     }
   }
+
 }
index 6d81879fce2a536c6fec247b571e88748961fff1..67460368b96b6042a0a2efd3137ef4d3f022999d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -221,4 +221,5 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_FieldValue extends CRM_Upgrade_Snapsho
     $fieldValueDAO->id = $id;
     return $fieldValueDAO->delete();
   }
+
 }
index 709886d7fecfc29b0fda9d5f0d498ee0717b2c97..c78dfd152d1077a417f0565c29746a88585beea5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -311,4 +311,5 @@ WHERE  $where
 
     CRM_Core_DAO::executeQuery($query, $params);
   }
+
 }
index 212c23d1f47236b5bdf5b34f02bb44ac87369db6..a29a93781f26dcc9c0a36d29ecdacbd286fda225 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1141,4 +1141,5 @@ GROUP BY     mt.member_of_contact_id";
   public static function setIsQuickConfig($id, $isQuickConfig) {
     return CRM_Core_DAO::setFieldValue('CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set', $id, 'is_quick_config', $isQuickConfig);
   }
+
 }
index 072901d67d40a4eb471fa45fb6b2e9c85d8979f4..e01714d3939a62fbcfd4e4d06faac3135b718db1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -56,4 +56,5 @@ class CRM_Upgrade_StateMachine extends CRM_Core_StateMachine {
 
     $this->addSequentialPages($this->_pages, $action);
   }
+
 }
index 87bbfefca077db95f88df06929e70c804f04cf09..d4efe23d1664e5267ba64d26275a1f707b39aeb7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Base class for writing API_Wrappers which generically manipulate the content
@@ -144,4 +144,5 @@ abstract class CRM_Utils_API_AbstractFieldCoder implements API_Wrapper {
   protected function isApiControlField($key) {
     return (FALSE !== strpos($key, '.'));
   }
+
 }
index 345765825f1b578e7c7ce3917d2de683448db04e..4e7b9fa27b4199ea104a9b21ed24924b6c75e873 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class captures the encoding practices of CRM-5667 in a reusable
@@ -146,4 +146,5 @@ class CRM_Utils_API_HTMLInputCoder extends CRM_Utils_API_AbstractFieldCoder {
       $values = str_replace(array('&lt;', '&gt;'), array('<', '>'), $values);
     }
   }
+
 }
index dcdc487930744a649327e447bce5aa3769ce4e0e..59b06593da1ce4adcc9a0f44b43d7096b22a9d37 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Implement the "match" and "match-mandatory" options. If the submitted record doesn't have an ID
@@ -187,4 +187,5 @@ class CRM_Utils_API_MatchOption implements API_Wrapper {
     }
     return $params;
   }
+
 }
index 3fa7956a69e19f638ec1b5e2ed8f90148ddce09f..d84bfc89e59bb9e5ce44b046c2b86dd7b569496b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Work-around for CRM-13120 - The "create" action incorrectly returns string literal "null"
@@ -103,4 +103,5 @@ class CRM_Utils_API_NullOutputCoder extends CRM_Utils_API_AbstractFieldCoder {
       return $result;
     }
   }
+
 }
index 0dd6fdf7c88596e1cfd9d01abfda6fd4b0fef081..4d2c4916422e57d03f805dcd33cc3d04ffc7a30b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Implement the "reload" option. This option can be used with "create" to force
@@ -129,4 +129,5 @@ class CRM_Utils_API_ReloadOption implements API_Wrapper {
     );
     return $returnKeys;
   }
+
 }
index b73f4e76648cc39bc02a58843f7fa8e336529be1..b4c3a209091e139a95f0738a7a1933c56fb6dbad 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Address utilties
@@ -55,7 +55,7 @@ class CRM_Utils_Address {
    *   formatted address string
    *
    */
-  static function format(
+  public static function format(
     $fields,
     $format = NULL,
     $microformat = FALSE,
@@ -66,13 +66,11 @@ class CRM_Utils_Address {
     static $config = NULL;
 
     if (!$format) {
-      $format =
-        CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'address_format');
+      $format = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'address_format');
     }
 
     if ($mailing) {
-      $format =
-        CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'mailing_format');
+      $format = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'mailing_format');
     }
 
     $formatted = $format;
@@ -308,4 +306,5 @@ class CRM_Utils_Address {
     $newSequence = array_unique($newSequence);
     return $newSequence;
   }
+
 }
index 5a890d4b5110162a4524a3039e27be893350ea77..4e3f24f7bb8ea23c412fffb6e9481683b41bc1dc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * A PHP cron script to format all the addresses in the database. Currently
@@ -256,16 +256,16 @@ class CRM_Utils_Address_BatchUpdate {
     }
 
     $this->returnMessages[] = ts("Addresses Evaluated: %1", array(
-        1 => $totalAddresses
+      1 => $totalAddresses,
       )) . "\n";
     if ($processGeocode) {
       $this->returnMessages[] = ts("Addresses Geocoded: %1", array(
-          1 => $totalGeocoded
+          1 => $totalGeocoded,
         )) . "\n";
     }
     if ($parseStreetAddress) {
       $this->returnMessages[] = ts("Street Addresses Parsed: %1", array(
-          1 => $totalAddressParsed
+          1 => $totalAddressParsed,
         )) . "\n";
       if ($unparseableContactAddress) {
         $this->returnMessages[] = "<br />\n" . ts("Following is the list of contacts whose address is not parsed:") . "<br />\n";
@@ -287,4 +287,5 @@ class CRM_Utils_Address_BatchUpdate {
     $result['messages'] = implode("", $this->returnMessages);
     return $result;
   }
+
 }
index d4105a186a9424e17f3fe2f3e184355480121ad3..76204171753dc00e0c8f44057bf2591144222770 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -121,4 +121,5 @@ class CRM_Utils_Address_USPS {
 
     return TRUE;
   }
+
 }
index e96d320c770a3128f5b6a39ecdb2ead4e4683de3..f5b1d02c6a5433c4248f1f2f67b3a928987e6a13 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Utils_Api
@@ -80,4 +80,5 @@ class CRM_Utils_Api {
     }
     return _civicrm_api_get_entity_name_from_camel($shortName);
   }
+
 }
index 11c169f204ec90158f8cc82fdd109e6b1b01b56b..6b591597d6a04645118ec18400ccf79884a6f345 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Provides a collection of static methods for array manipulation.
@@ -830,4 +830,5 @@ class CRM_Utils_Array {
     }
     return $output;
   }
+
 }
index 61bc10b2a921361211c9fcf3ce2a4e3207cc8b38..a6a8fa95218a97eee0b4ab279e0ca83b500d9010 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -162,4 +162,5 @@ class CRM_Utils_Cache {
     }
     return $defaults;
   }
+
 }
index 1a6434cc6c4963d0c5796b8aad570554c66bcd39..50b4b2e3bbc06c36af5bed043f3e18148ad690cd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -110,9 +110,11 @@ class CRM_Utils_Cache_APCcache {
 
     foreach ($keys as $key) {
       $name = $key['info'];
-      if ($prefix == substr($name, 0, $lp)) {  // Ours?
+      if ($prefix == substr($name, 0, $lp)) {
+        // Ours?
         apc_delete($this->_prefix . $name);
       }
     }
   }
+
 }
index 65c8f7a2e59f56cf80d76b3d1e213173dd6a8576..096ab477b5317f15b6da5f79320d852d326cb9af 100644 (file)
@@ -50,4 +50,5 @@ class CRM_Utils_Cache_Arraycache implements CRM_Utils_Cache_Interface {
     unset($this->_cache);
     $this->_cache = array();
   }
+
 }
index 8b7e99e30039027d5873cf0098458f96bd3ecc75..7d21c11c6f158bbb3ce18ff9d63ad6b9cb09a6df 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -66,4 +66,5 @@ interface CRM_Utils_Cache_Interface {
    * @return void
    */
   public function flush();
+
 }
index 1bee39c583b02e887aea261afbe70ef7ac0044a7..c586b258101f0d356827cf85514d301df5ba7b60 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -146,4 +146,5 @@ class CRM_Utils_Cache_Memcache {
   public function flush() {
     return $this->_cache->flush();
   }
+
 }
index f347b1079162727acf2c828e734d9517571c2790..cad43187c2f8ac43404e71e8a4e78dbe558537bc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -168,4 +168,5 @@ class CRM_Utils_Cache_Memcached {
   public function flush() {
     return $this->_cache->flush();
   }
+
 }
index 693383cf59057cd7bb76c8dec5d641f04c0654da..5c014ba4295e2f687635c99565ec9baa75517eca 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -87,4 +87,5 @@ class CRM_Utils_Cache_NoCache implements CRM_Utils_Cache_Interface {
   public function flush() {
     return FALSE;
   }
+
 }
index 91c27ec5ba633a4de8095d25b33094242e8725e0..4ea0fe7bc5c1a6afb010781be8e0824b92ec03b8 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Utils_Cache_SerializeCache
@@ -115,4 +115,5 @@ class CRM_Utils_Cache_SerializeCache implements CRM_Utils_Cache_Interface {
     unset($this->_cache);
     $this->_cache = array();
   }
+
 }
index 845f6f512011a3567c6ed243f6b3ba43d87edaf4..085deda8e0a417ff47de5b5a4a0e2b05e8cf80e4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -135,4 +135,5 @@ class CRM_Utils_Cache_SqlGroup implements CRM_Utils_Cache_Interface {
   public function prefetch() {
     $this->frontCache = CRM_Core_BAO_Cache::getItems($this->group, $this->componentID);
   }
+
 }
index 5dcaff841afc5eaeaf1f19a61768649e731a824a..678172bcd09c7391417f3960dad36bbcda071c57 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 4727bed3cd2071a2bb88c30a6f80c01e45828398..456dca727bad78d40d0315771eee601f535dad5d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -114,4 +114,5 @@ class CRM_Utils_Check_Case {
 
     return $messages;
   }
+
 }
index c12ca3e41dcf95452f02a5b9e7b58047bf3b7219..df0a99d12f3860cb08a9b27ff2f99eadccccb38a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -114,4 +114,5 @@ class CRM_Utils_Check_Env {
 
     return $messages;
   }
+
 }
index 97fee53a68117c1905699ce753fdb87a28ead375..6bb6bafb4b37301a7fd3a98ac52efa531beb0f84 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -90,4 +90,5 @@ class CRM_Utils_Check_Message {
       'title' => $this->title,
     );
   }
+
 }
index bc77749d37d9c9b49fac37e348ec7d70ddead2d8..53937524ab7a72af75074c76e0cb62e88c63dcdd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -300,4 +300,5 @@ class CRM_Utils_Check_Security {
     list ($ignore, $heuristicSuffix) = explode($filePathMarker, str_replace('\\', '/', $targetDir));
     return $heuristicBaseUrl . $filePathMarker . $heuristicSuffix;
   }
+
 }
index 05c68bf7d6f3b60ea34857d30e1a367eb514053e..ef698fb89e26b49810c6d87313db036c94a49604 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Utils_Constant
@@ -48,4 +48,5 @@ class CRM_Utils_Constant {
       return $default;
     }
   }
+
 }
index 370774b747b06a0969c1805eb473331b71d952dc..87300ef8e81c4160b40f4303a5d3abf288bf20dd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -110,4 +110,5 @@ class CRM_Utils_Crypt {
 
     return $string;
   }
+
 }
index a456f4538686f13821092aff335b666a2500d75d..1c4dc6e03c260185836ea82494ccb7286d21b955 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1729,14 +1729,14 @@ class CRM_Utils_Date {
     // 'm/d/Y' format. So that submitted value is alwats mm/dd/YY format
     // note that for date display we dynamically create text field
     /*
-      if ( !$format ) {
-      $format = $config->dateInputFormat;
-      }
+    if ( !$format ) {
+    $format = $config->dateInputFormat;
+    }
 
-      // get actual format
-      $actualPHPFormats = CRM_Core_SelectValues::datePluginToPHPFormats( );
-      $dateFormat       = CRM_Utils_Array::value( $format, $actualPHPFormats );
-    */
+    // get actual format
+    $actualPHPFormats = CRM_Core_SelectValues::datePluginToPHPFormats( );
+    $dateFormat       = CRM_Utils_Array::value( $format, $actualPHPFormats );
+     */
 
     $dateFormat = 'm/d/Y';
     $date = date($dateFormat, strtotime($mysqlDate));
index d34ee9876f866ba76fe0986080567f91fa343546..d09734c486041b11bbcbc891ccc249f1b9c84c4c 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /*
  * These functions have been deprecated out of API v3 Utils folder as they are not part of the
@@ -764,18 +764,18 @@ function _civicrm_api3_deprecated_activity_formatted_param(&$params, &$values, $
  */
 function _civicrm_api3_deprecated_add_formatted_param(&$values, &$params) {
   /* Crawl through the possible classes:
-     * Contact
-     *      Individual
-     *      Household
-     *      Organization
-     *          Location
-     *              Address
-     *              Email
-     *              Phone
-     *              IM
-     *      Note
-     *      Custom
-     */
+   * Contact
+   *      Individual
+   *      Household
+   *      Organization
+   *          Location
+   *              Address
+   *              Email
+   *              Phone
+   *              IM
+   *      Note
+   *      Custom
+   */
 
   /* Cache the various object fields */
   static $fields = NULL;
@@ -989,7 +989,7 @@ function _civicrm_api3_deprecated_add_formatted_location_blocks(&$values, &$para
              'Email',
              'IM',
              'OpenID',
-             'Phone_Ext'
+             'Phone_Ext',
            ) as $block) {
     $name = strtolower($block);
     if (!array_key_exists($name, $values)) {
index a38f6f7fb73fa4c96192c402c73db4fda8cc03fc..7052d6867c5a4616a4bcd245f7dd71023cd91041 100644 (file)
@@ -33,4 +33,5 @@ class CRM_Utils_FakeObject {
       throw new Exception("Call to unimplemented method: $name");
     }
   }
+
 }
index d9a115e9a2990102dd165cbecdfa134957aa3570..30df4ea03328f7ca94096800b25e32057929681e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -700,4 +700,5 @@ HTACCESS;
     }
     return TRUE;
   }
+
 }
index d1b98eea75090fb19eeeb2399f5768ce2654421c..f224b63ec1777db133d3eea7d7afcccecbea4dc4 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -157,4 +157,5 @@ class CRM_Utils_Geocode_Google {
     $values['geo_code_1'] = $values['geo_code_2'] = 'null';
     return FALSE;
   }
+
 }
index 86a75fbceb6914583db7b2198d1c0fc9f590c9bd..e5e634441587d7b3fe6056f25a70e293dd6379cc 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -185,11 +185,11 @@ class CRM_Utils_Geocode_Yahoo {
           $values['postal_code'] = $ret['postal'];
 
           /* the following logic to split the string was borrowed from
-             CRM/Core/BAO/Address.php -- CRM_Core_BAO_Address::fixAddress.
-             This is actually the function that calls the geocoding
-             script to begin with, but the postal code business takes
-             place before geocoding gets called.
-          */
+          CRM/Core/BAO/Address.php -- CRM_Core_BAO_Address::fixAddress.
+          This is actually the function that calls the geocoding
+          script to begin with, but the postal code business takes
+          place before geocoding gets called.
+           */
 
           if (preg_match('/^(\d{4,5})[+-](\d{4})$/',
             $ret['postal'],
@@ -208,4 +208,5 @@ class CRM_Utils_Geocode_Yahoo {
     $values['geo_code_1'] = $values['geo_code_2'] = 'null';
     return FALSE;
   }
+
 }
index 3f32cf799c65cede75c5f2d52ece27a8d864b969..b6d4a089ccf105ea2bc06fb27b8118a5205086c2 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Temporarily change a global variable.
@@ -111,4 +111,5 @@ class CRM_Utils_GlobalStack {
       }
     }
   }
+
 }
index 1eed74bac6cc2a80924ed45f0cb7ef41a171eb38..ad995572aff8900657e2f8430b9954a463267e5f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1914,4 +1914,5 @@ abstract class CRM_Utils_Hook {
       'civicrm_fileSearches'
     );
   }
+
 }
index 37ecfa82ef1889001993d755af6b8a6ff5195247..281923bc701049ff60af0fbe11ce82e4f618b3de 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 4a2d91cb33587f597e7d051863553883b8dbc297..07606a25944e29093d223d68730497e25679d050 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index a2a14f5a339bfa3ffa853165b18475f0fcc8998b..af2aaaf60d27450ba44b2a2315f27e099c8e8655 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 3ae3c1b045be35117eb50b7004e9f08b17937d4a..02ef926108f5268eb7b244673fbb0369ddff1eab 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -75,7 +75,7 @@ class CRM_Utils_Hook_DrupalBase extends CRM_Utils_Hook {
    *
    * @return array|bool
    */
-  function invoke(
+  public function invoke(
     $numParams,
     &$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6,
     $fnSuffix) {
@@ -129,4 +129,5 @@ class CRM_Utils_Hook_DrupalBase extends CRM_Utils_Hook {
       }
     }
   }
+
 }
index 48b2529642c3bfebdc5e38aeb6f5067a63149604..8e63b71e112807d376da8b4332b13123b1b40a76 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -126,4 +126,5 @@ class CRM_Utils_Hook_Joomla extends CRM_Utils_Hook {
       return $result;
     }
   }
+
 }
index a454a10bf24dd39be88fb7ea02e98554d824a7c3..8d359f9163f55f8ae4a254a488a16e0bac55f3ee 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -75,4 +75,5 @@ class CRM_Utils_Hook_Soap extends CRM_Utils_Hook {
     // suppress all hok calls during soap
     return NULL;
   }
+
 }
index 72f1c46f371194dbedced379d9ea1c56d4ef4e19..0fe98057f0a18b430d7a196217e05151b184ff04 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -125,4 +125,5 @@ class CRM_Utils_Hook_UnitTests extends CRM_Utils_Hook {
       call_user_func_array($this->adhocHooks[$fnSuffix], $params);
     }
   }
+
 }
index 74f91697d8fc5d37b6a3d74d0fc3004869f0f59a..49198679a82c56f630b4c0f6213a53a51d8b4b59 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -219,5 +219,4 @@ class CRM_Utils_Hook_WordPress extends CRM_Utils_Hook {
     }
   }
 
-
 }
index 48db39999a32f6e38965cb1b91660e67e784724e..921649bc2f263dac5e92eb2914f10c440aea5723 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class handles HTTP downloads
index 53230169a4c349c1aae05097e8703abb3775fd9d..b15171998b3503ec3d9bcedf65b424825c1ff8a0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -123,4 +123,5 @@ class CRM_Utils_ICalendar {
 
     echo $calendar;
   }
+
 }
index 4276ac3cb4a1536f09b5e1d9eeada6c8ba765ab2..5b7a3572e0dcdf0a64198ad3e40eb7696cfd4485 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Parse Javascript content and extract translatable strings.
@@ -64,4 +64,5 @@ class CRM_Utils_JS {
     }
     return array_values($strings);
   }
+
 }
index 20117a58860173ce7e42ce2ea9cf09b8a8de74d9..c756f74351dca35ff14ad86f4bae0d287fac3100 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -164,4 +164,5 @@ class CRM_Utils_JSON {
 
     return $sOutput;
   }
+
 }
index 54fda7e2fd8a871932093119ea0378257919bd1b..f3363298e271be4696ec7d6ba54f932a5c206107 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -416,4 +416,5 @@ class CRM_Utils_Mail {
       'cleanName' => $fileName,
     );
   }
+
 }
index d15ab20ec0750ef4579537b3f299a1fde6e146ae..28f822f02c1e3ebb876a15aa9d0e15210150aadb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -415,4 +415,5 @@ class CRM_Utils_Mail_EmailProcessor {
       $store->expunge();
     }
   }
+
 }
index 612214c53f57dceee4c18751f9831e862a377897..fe611f03a0c3ae20c4e5c82c2e04aafd58896aaa 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -454,4 +454,5 @@ class CRM_Utils_Mail_Incoming {
       CRM_Core_DAO::$_nullArray
     );
   }
+
 }
index 1f416f6a024bc1a2b1a32706521c09fb7a84eb6a..67f03cdcf5728bfc0bcf2f8f67f959618cc1040a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -579,4 +579,5 @@ class CRM_Utils_Migrate_Export {
     }
     return $prefix . "<$name>" . htmlentities($value) . "</$name>";
   }
+
 }
index 6d7e589a2b6c8cb686c4da7b42cacc80776e1103..373de66e548bdbb6ed5f64baf05da927e32e09a2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -638,4 +638,5 @@ WHERE  date >= $lastExportTime
 
     // print_r( json_decode( $json ) );
   }
+
 }
index 4b7b327cf87caafd78c1cf0a26517644eb1b23db..08b447e2246952972f69c6e0facb006800c7936c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -472,4 +472,5 @@ AND        f.column_name = %2
       }
     }
   }
+
 }
index 943d1871eb88ad0a3757de25d53dbf9e7ff30e17..219200da09c74985ff50c652b8aaa3aa2ea40d8c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -299,4 +299,5 @@ WHERE entity_table = '{$tableName}'
       $this->_lookupCache[$dao->slave_id] = $dao->master_id;
     }
   }
+
 }
index 916c892938c710ded1e03456647e06650c1a7247..9836b2a12f3642ea2558657ae03b10328615f874 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -126,4 +126,5 @@ class CRM_Utils_Money {
     );
     return strtr($format, $replacements);
   }
+
 }
index f7999318c8da8cbac40bcbfd3cc1f523e167863a..eac7df86fa7d28744a081af16ee29596390beb42 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -85,4 +85,5 @@ class CRM_Utils_Network {
     error_reporting($old_error_reporting);
     return FALSE;
   }
+
 }
index 783ae758e6d1ae832ef9be996ebff2062f0d5630..c197e4b7cc6c55bd003c5e840fc3624e673f22d0 100644 (file)
@@ -45,4 +45,5 @@ class CRM_Utils_Number {
       return $sign * $val;
     }
   }
+
 }
index 21f140d9ab6e562b2ba0030920c9864870cd0912..63173bae52e50a2543f916a90a40acfd5b40c2d9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -568,4 +568,5 @@ class CRM_Utils_OpenFlashChart {
 
     return $openFlashChart;
   }
+
 }
index e51baf5dd154b186500f5fa00c2214471b72d213..824d4d46b7efc8037b1b547d1daff87ae1003746 100644 (file)
@@ -145,5 +145,4 @@ class CRM_Utils_OptionBag implements ArrayAccess, IteratorAggregate, Countable {
     return count($this->data);
   }
 
-
 }
index 8646a92d6c8cc627ba7118dfc0a10ad4dcec8313..c6c83eda23443139bd9dcdc0c339fad55d6585e8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *  Class to print labels in Avery or custom formats
@@ -284,4 +284,5 @@ class CRM_Utils_PDF_Label extends TCPDF {
 
     return $list;
   }
+
 }
index d20ef8cae1de21baf9afbeccf341f7dd77a51d79..0e9f00c6d8d14868531c9f73075bffec6b8431b2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -405,4 +405,5 @@ class CRM_Utils_PDF_Utils {
       CRM_Core_Error::statusBounce("PDFlib Error: " . $excp->get_errmsg());
     }
   }
+
 }
index c9f40a79aa4a054b208b2a80a70502c8dfc753af..41a97a49b2168e5fe90fbf9a84db18c4ccbf181a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -344,4 +344,5 @@ class CRM_Utils_Pager extends Pager_Sliding {
   private function formatLink($href, $title, $image) {
     return sprintf('<a class="crm-pager-link action-item crm-hover-button" href="%s" title="%s">%s</a>', $href, $title, $image);
   }
+
 }
index 6496b0ee258d22c2a791fe8150381c19b6da932c..08ce2cf4f5a474614bc56a8164ad7da9c5eda648 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -90,7 +90,7 @@ class CRM_Utils_PagerAToZ {
       'W',
       'X',
       'Y',
-      'Z'
+      'Z',
     );
     return $staticAlphabets;
   }
@@ -198,4 +198,5 @@ class CRM_Utils_PagerAToZ {
     $aToZBar[] = array('item' => $url);
     return $aToZBar;
   }
+
 }
index 33224a346a28fc0ab48130a3e2cb1fa297b7d646..e64774edcf1208dd23a6927a07e89fa1c7750beb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Utilities for manipulating/inspecting CRM_*_PseudoConstant classes
@@ -166,4 +166,5 @@ class CRM_Utils_PseudoConstant {
     }
     CRM_Core_PseudoConstant::flush();
   }
+
 }
index a3577ab5da221602af0dd79f4b4a2fd8c6f813f2..81023a58c0fbc9ba70298009837a5960fcbb0788 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Utils_QueryFormatter
@@ -354,4 +354,5 @@ class CRM_Utils_QueryFormatter {
 
     echo $buf;
   }
+
 }
index dbe4740e3a721336fed4a0b6f26ebe63b05c8e84..6271bafc91514d46ee9c8ceba6873805d7182a32 100644 (file)
@@ -712,4 +712,5 @@ class CRM_Utils_REST {
       return self::error('ERROR: No CMS user associated with given api-key');
     }
   }
+
 }
index cdefd36e62bbb79431ec77446e9ca121adc64ac1..2d48759f59c23d8cc3f0185ed9106b576f4c65a7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -125,4 +125,5 @@ class CRM_Utils_ReCAPTCHA {
     );
     return $resp->is_valid;
   }
+
 }
index f81cb4bfeb249ca3c93e80e411136b32929a0796..aa66d55454c8da18e66b9a40969ba8b402a5bdea 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -198,4 +198,5 @@ class CRM_Utils_Recent {
     $session = CRM_Core_Session::singleton();
     $session->set(self::STORE_NAME, self::$_recent);
   }
+
 }
index d18b764cadff331fb6f4998611c5cb57913a8e8d..e429fa4d567dd802e5338ac1eef0048b023e5a62 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -132,4 +132,5 @@ class CRM_Utils_Request {
     }
     return $result;
   }
+
 }
index c9b791157adb69af4c1f1f04664a93b506ced839..30d49df23a2831febe3c659075e8c601e8226760 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -429,7 +429,8 @@ class CRM_Utils_Rule {
       'currency', array(
         'keyColumn' => 'name',
         'labelColumn' => 'symbol',
-      ));
+      )
+    );
     $value = str_replace($currencySymbols, '', $value);
 
     if ($config->monetaryThousandSeparator) {
@@ -798,4 +799,5 @@ class CRM_Utils_Rule {
   public static function qfKey($key) {
     return ($key) ? CRM_Core_Key::valid($key) : FALSE;
   }
+
 }
index 9ec754374a111a92f6b8b0e193ed4a4a3309ca81..11b005208008e94220cf822d9fd0822afbb323d3 100644 (file)
@@ -134,4 +134,5 @@ class CRM_Utils_SQL_Insert {
 
     return $sql;
   }
+
 }
index 16f41ae96a326fd8b8d6bd72f2d3cf88e8fa2283..cdbb1b926aebdbeb6c1ba2be4f768e53e1933514 100644 (file)
@@ -269,4 +269,5 @@ class CRM_Utils_SQL_Select {
     }
     return $sql;
   }
+
 }
index 1116cfbad181bd03478da873723d00dc4bc86ce3..ce2c8eda10a30e58df69f2b8c7681517d72ec64d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -136,4 +136,5 @@ class CRM_Utils_Signer {
     // many times on certain admin pages; so instead we'll re-use the hash.
     return $this->defaultSalt;
   }
+
 }
index ef81824aac7c4acdaad6927dccf2269a1393cdcb..6a972beb0551d044c9f45755f9db8a4f7162c91e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -332,4 +332,5 @@ class CRM_Utils_SoapServer {
     $params['version'] = 3;
     return civicrm_api('contact', 'get', $params);
   }
+
 }
index 8bc250f0364a94901f2e811808fe8b1799f8e655..8f4bdd77f9c0d9cebbcbef86e1a98f2fbb81efe2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -303,4 +303,5 @@ class CRM_Utils_Sort {
     // however, as I understand we don't want equality here:
     return -1;
   }
+
 }
index 5703bd978de9124a94b82cf6174298c89def280a..08d2470716f2ffd0c20ac04e194f86cabb29b1ba 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -319,9 +319,9 @@ class CRM_Utils_String {
       $str = preg_replace('/\s+/', '', $str);
 
       /* pattern stolen from the php.net function documentation for
-             * utf8decode();
-             * comment by JF Sebastian, 30-Mar-2005
-             */
+       * utf8decode();
+       * comment by JF Sebastian, 30-Mar-2005
+       */
 
       return preg_match('/^([\x00-\x7f]|[\xc2-\xdf][\x80-\xbf]|\xe0[\xa0-\xbf][\x80-\xbf]|[\xe1-\xec][\x80-\xbf]{2}|\xed[\x80-\x9f][\x80-\xbf]|[\xee-\xef][\x80-\xbf]{2}|f0[\x90-\xbf][\x80-\xbf]{2}|[\xf1-\xf3][\x80-\xbf]{3}|\xf4[\x80-\x8f][\x80-\xbf]{2})*$/', $str);
       // ||
@@ -778,4 +778,5 @@ class CRM_Utils_String {
   public static function unstupifyUrl($htmlUrl) {
     return str_replace('&amp;', '&', $htmlUrl);
   }
+
 }
index fe9f45a4d02cf4e95c7557a9721b65ebd9e1a46d..060ffa82c61dc7d15a98bdfd145e6b82b40feb58 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -183,4 +183,5 @@ class CRM_Utils_Sunlight {
 
     return $result;
   }
+
 }
index 1b04f30272b6f681febab80dfeb62209bc5b051d..e5c245eeba9434f79b0230232fbaff3cc26f92c4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -1872,4 +1872,5 @@ class CRM_Utils_System {
 
     return NULL;
   }
+
 }
index 3ec8a101edc9afba3703b7db178a2bef7a8ec00c..4e994800c98c68e36460313f14080963713a9f43 100644 (file)
@@ -401,4 +401,5 @@ abstract class CRM_Utils_System_Base {
    */
   public function appendCoreResources(&$list) {
   }
+
 }
index 52a1f139c9c60fdfc8f56f045c820b12471b2e93..c79ff64111a8af1e00e7d3b79ab9bc4d8dc65bbd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -72,10 +72,10 @@ class CRM_Utils_System_Drupal extends CRM_Utils_System_DrupalBase {
     $form_state['method'] = 'post';
     $form_state['build_info']['args'] = array();
     /*
-    * if we want to submit this form more than once in a process (e.g. create more than one user)
-    * we must force it to validate each time for this form. Otherwise it will not validate
-    * subsequent submissions and the manner in which the password is passed in will be invalid
-    */
+     * if we want to submit this form more than once in a process (e.g. create more than one user)
+     * we must force it to validate each time for this form. Otherwise it will not validate
+     * subsequent submissions and the manner in which the password is passed in will be invalid
+     */
     $form_state['must_validate'] = TRUE;
     $config = CRM_Core_Config::singleton();
 
@@ -1017,4 +1017,5 @@ AND    u.status = 1
   public function flush() {
     drupal_flush_all_caches();
   }
+
 }
index 01371fe3c8302c7a0e90f9cd6130dd688dc69e9b..78727b27baeb3f2fa7dde308c5386d6d7e6f57fd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -878,12 +878,13 @@ class CRM_Utils_System_Drupal6 extends CRM_Utils_System_DrupalBase {
       $perms = $perms + drupal_map_assoc($newPerms);
       $permList = implode(', ', $perms);
       db_query('UPDATE {permission} SET perm = "%s" WHERE rid = %d', $permList, $rid);
-      /*
+      /* @codingStandardsIgnoreStart
         if ( ! empty( $roles ) ) {
             $rids = implode(',', array_keys($roles));
             db_query( 'UPDATE {permission} SET perm = CONCAT( perm, \', edit all events\') WHERE rid IN (' . implode(',', array_keys($roles)) . ')' );
             db_query( "UPDATE {permission} SET perm = REPLACE( perm, '%s', '%s' ) WHERE rid IN ($rids)",
-                $oldPerm, implode(', ', $newPerms) );*/
+                $oldPerm, implode(', ', $newPerms) );
+      @codingStandardsIgnoreEnd */
     }
   }
 
@@ -973,4 +974,5 @@ class CRM_Utils_System_Drupal6 extends CRM_Utils_System_DrupalBase {
   public function flush() {
     drupal_flush_all_caches();
   }
+
 }
index 2f957e4f9b77777d065c31de5546d41f739a7503..e4e1b0b7b84ab53085c3047197a824bb7e7b15b2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -665,4 +665,5 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase {
   public function getDefaultBlockLocation() {
     return 'sidebar_first';
   }
+
 }
index bcc763040586d80991397c12ff8cbc4dbd2d0cf6..7b821545fede9df330a0fa65bd9feff89a22b38c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -502,4 +502,5 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base {
     }
     return $this->url($_GET['q']);
   }
+
 }
index 17ca098f6803d8b660e8b300ae1d448c5e780846..19ce3ccced990e4390bd1667a1efb0bd5827e5d7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -904,4 +904,5 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
   public function appendCoreResources(&$list) {
     $list[] = 'js/crm.joomla.js';
   }
+
 }
index c8aa0e2408eee6b60958107547e8c9532e96fb4a..a98269380af8a83a1f49da03da2730113c5278fe 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -203,4 +203,5 @@ class CRM_Utils_System_Soap extends CRM_Utils_System_Base {
   public function getLoginURL($destination = '') {
     throw new Exception("Method not implemented: getLoginURL");
   }
+
 }
index 895b3e2db156f786a0f6e5932b28c4f9e03a2c67..46ab1904adc82043cb931e7deb0eb48d4722e7bd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -335,4 +335,5 @@ class CRM_Utils_System_UnitTests extends CRM_Utils_System_Drupal {
     // UGH. Obscure Drupal-specific implementation. Why does UnitTests extend Drupal?
     // You should delete this function if the base-classes are properly rearranged.
   }
+
 }
index d748d112597aa2cb9fdcf31b067906bf81ca8742..0b3c3eefd22061e368e0a2edb5d0f0c0d3940896 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -795,4 +795,5 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
       return CRM_Core_Config::singleton()->userFrameworkBaseURL . "wp-admin/user-edit.php?user_id=" . $uid;
     }
   }
+
 }
index ee18da9ea10f741fb221f8df6a3f186caaf59cf7..f8103bc013cda8e60ef8efdb91452bb032ff073d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -58,4 +58,5 @@ class CRM_Utils_SystemLogger extends Psr\Log\AbstractLogger implements \Psr\Log\
     $rec->context = json_encode($context);
     $rec->save();
   }
+
 }
index 3f44375572aee85844a98cf5993d4c6d2d06a49b..50a829d0a47c9d792c4d1af29395fa06e5991eaf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -104,4 +104,5 @@ class CRM_Utils_Time {
     $diff = strtotime($b) - strtotime($a);
     return (abs($diff) <= $threshold);
   }
+
 }
index 6e566cec97dbbadf23d5f9004a76594661d28855..ae0b29f170023ab205fe2e604924acdb41a073bd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -592,7 +592,7 @@ class CRM_Utils_Token {
     $escapeSmarty = FALSE
   ) {
     /* If the token is an email action, use it.  Otherwise, find the
-         * appropriate URL */
+     * appropriate URL */
 
     if (!in_array($token, self::$_tokens['action'])) {
       $value = "{action.$token}";
@@ -1836,4 +1836,5 @@ class CRM_Utils_Token {
 
     return $output;
   }
+
 }
index ce7140275c0ba0d95e6fc2f60b100d55f1e1f909..19ecf80bf29620a00fffc7a53f8a0a32cb3bb37e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -222,4 +222,5 @@ class CRM_Utils_Tree {
   public function display() {
     print_r($this->tree);
   }
+
 }
index ab2ffe6e5ce4d8b463bf934b6e36da25b3e4fb99..62da0e4c3aee280659db8c2d3b4a4eb12ab706ab 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -364,4 +364,5 @@ class CRM_Utils_Type {
 
     return NULL;
   }
+
 }
index 628f7dccd746bf6d5ab4f092f8ffca7fc5e24a13..afe1a6849cd87a0df44303d355689449ce6eec0b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class to handle encoding and decoding Variable Enveleope Return Path (VERP)
@@ -113,4 +113,5 @@ class CRM_Utils_Verp {
 
     return array("$slocal@$sdomain", "$rlocal@$rdomain");
   }
+
 }
index 874d8290951039b3faf125e40504580faab09068..d1e8fa12e16dce46fc9be9ed63121a18991c4cd0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 13cdec8f3361a73d3ba6d608e021c9f19355448e..77d36873b6df0dbd50ada2a61e96b5135c9cc515 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Class CRM_Utils_Weight
@@ -303,7 +303,7 @@ class CRM_Utils_Weight {
 
     require_once str_replace('_', DIRECTORY_SEPARATOR, $daoName) . ".php";
 
-    $dao = new $daoName;
+    $dao = new $daoName();
     $table = $dao->getTablename();
     $fields = &$dao->fields();
     $fieldlist = array_keys($fields);
@@ -514,4 +514,5 @@ class CRM_Utils_Weight {
       'userContext' => $url,
     ));
   }
+
 }
index 956215b234f73622f0036687b1ae31ffb822e899..3f573db37235a73e6957bd19eba3c2ad73cba488 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * The Contact Wrapper is a wrapper class which is called by
@@ -52,11 +52,12 @@ class CRM_Utils_Wrapper {
    * The heart of the callback processing is done by this method.
    * forms are of different type and have different operations.
    *
-   * @param string formName name of the form processing this action
-   * @param string formLabel label for the above form
-   * @param int mode mode of operation.
-   * @param bool addSequence should we add a unique sequence number to the end of the key
-   * @param bool ignoreKey should we not set a qfKey for this controller (for standalone forms)
+   * @param string $formName name of the form processing this action
+   * @param string $formLabel label for the above form
+   * @param array $arguments
+   *  - int mode: mode of operation.
+   *  - bool addSequence: should we add a unique sequence number to the end of the key
+   *  - bool ignoreKey: should we not set a qfKey for this controller (for standalone forms)
    *
    * @return void
    */
@@ -113,4 +114,5 @@ class CRM_Utils_Wrapper {
     $this->_controller->process();
     return $this->_controller->run();
   }
+
 }
index 149b663831338a936610b6caed97969f81c82fe0..cd60cd3a0e646817b379e2c91a91a3ecb88b212a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @package CRM
@@ -146,4 +146,5 @@ class CRM_Utils_XML {
     }
     return $arr;
   }
+
 }
index cf6c90186d8469699ffaff7c484e132eda5a8ba9..d81b3ed05c2eb1584950fac223d0369791fb9051 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -152,4 +152,5 @@ class CRM_Utils_Zip {
     }
     return TRUE;
   }
+
 }
index 020738e5fb7871c87e10b6e413fc21a1344cfa06..cf22c5933391a883f757236b76c566824a2c7a69 100644 (file)
@@ -193,4 +193,5 @@ WHERE  id = %1";
     return "<embed>.......................</embed>" .
     print_r(func_get_args(), 1);
   }
+
 }
index eea048c608d1b9a9f548184d24afd45bcde07940..eb6b99c930bd0f01ccbef5cabd6e2c1577773917 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Event;
 
@@ -51,4 +51,5 @@ class AuthorizeEvent extends Event {
   public function isAuthorized() {
     return $this->authorized;
   }
+
 }
index b205a6eaa47d01ca7b31c5e4ea066eb8528e37dc..6ab0f92eef68a4ae8459c7b7c9021669906995f8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Event;
 
@@ -70,4 +70,5 @@ class Event extends \Symfony\Component\EventDispatcher\Event {
   public function getApiRequest() {
     return $this->apiRequest;
   }
+
 }
index 6575257882a14fef3cea4197aa2790392966e384..7728cec1fb39fc2175372ecd4a28ffb68a12504f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Event;
 
@@ -57,4 +57,5 @@ class ExceptionEvent extends Event {
   public function getException() {
     return $this->exception;
   }
+
 }
index 0512ced78f65679dceedd3882ea43783fca24fee..a3d7e412a31e0bfab57fb1bc444b1b2335734386 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Event;
 
@@ -41,4 +41,5 @@ class PrepareEvent extends Event {
     $this->apiRequest = $apiRequest;
     return $this;
   }
+
 }
index 0629840b42104ad2c4fc32660ecf4481b870c986..d30dac6d22925bc1dd78f3c588511811a3288677 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Event;
 
@@ -55,4 +55,5 @@ class ResolveEvent extends Event {
   public function setApiRequest($apiRequest) {
     $this->apiRequest = $apiRequest;
   }
+
 }
index 0915fcd66535721ff8f7e777f6dc0133cb199a66..446f5ebc743ea282751dfbb0eb9c6befb39004ce 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Event;
 
@@ -64,4 +64,5 @@ class RespondEvent extends Event {
   public function setResponse($response) {
     $this->response = $response;
   }
+
 }
index 791739f06b7dc02d1eef6124dbcfb5d893b50747..cc51ff6258d62603be2dc61baefe64311f3f8e07 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 namespace Civi\API;
 
 /**
@@ -104,4 +104,5 @@ class Events {
       self::RESPOND,
     );
   }
+
 }
index 1022fb523a7d52ac416e9215c48b4f40a4a7ed74..f2df795ca32a1016700e38435f4396b7fab30d6d 100644 (file)
@@ -21,4 +21,5 @@ class NotImplementedException extends \API_Exception {
   public function __construct($message, $extraParams = array(), \Exception $previous = NULL) {
     parent::__construct($message, \API_Exception::NOT_IMPLEMENTED, $extraParams, $previous);
   }
+
 }
index 55ff1dfcaaffde4ffb8d89b55ff30286592b7f12..0235f1f4408e3d4aa67f2dfa8b8255db7eee1485 100644 (file)
@@ -21,4 +21,5 @@ class UnauthorizedException extends \API_Exception {
   public function __construct($message, $extraParams = array(), \Exception $previous = NULL) {
     parent::__construct($message, \API_Exception::UNAUTHORIZED, $extraParams, $previous);
   }
+
 }
index 0ed80a3bcbe61cb01edbacfaa93da1d057c6c09b..663812ffafa93e04e4f6ed701c635ac8c4cf68c0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 namespace Civi\API;
 
 use Civi\API\Event\AuthorizeEvent;
@@ -432,4 +432,5 @@ class Kernel {
     $this->dispatcher = $dispatcher;
     return $this;
   }
+
 }
index e6147c12c224ee6197e964c15d968fabb163e422..a66e6adaf04d4b6c8e95dbaae2cb80f497d97086 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Provider;
 
@@ -164,4 +164,5 @@ class AdhocProvider implements EventSubscriberInterface, ProviderInterface {
   public function matchesRequest($apiRequest) {
     return $apiRequest['entity'] == $this->entity && $apiRequest['version'] == $this->version && isset($this->actions[strtolower($apiRequest['action'])]);
   }
+
 }
index 81772020b4c28cc9115e1d7f74792b6e04efaa31..601f2f6d2e92f122847d8e0e863c2c47252e0d6a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Provider;
 
index 94432c66f7f1789264c4081e7adb9e6e34f51173..d4a7d224c2919dae153b1166ff7abd1812b09dcc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Provider;
 
@@ -59,4 +59,5 @@ interface ProviderInterface {
    * @return array<string>
    */
   public function getActionNames($version, $entity);
+
 }
index b865f9d0580adedf2e09f3eb8845129cc262f993..32e4bc96b65583c721c73f40de87725df36ddff8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Provider;
 
@@ -149,4 +149,5 @@ class ReflectionProvider implements EventSubscriberInterface, ProviderInterface
     $entity = _civicrm_api_get_camel_name($entity, $version);
     return isset($this->actions[$entity]) ? $this->actions[$entity] : $this->actions['*'];
   }
+
 }
index 9572836aece992c75f4e21ef4e6abef19fcff299..7876c0c32a550422e19408ec5e533a196ba25ebb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Provider;
 
@@ -158,4 +158,5 @@ class StaticProvider extends AdhocProvider {
     }
     return civicrm_api3_create_success(array());
   }
+
 }
index 1d5f747402eed76c3b24970602442063b2dae1dd..1cf29d2369694a8e65b79b8b9c861b073b3f371b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 namespace Civi\API;
 
 /**
index 4c615913c4260339ad67c39fbe6abc861bdd323a..30153208b582adad705d2dcbd938d467175567b1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Subscriber;
 
@@ -121,4 +121,5 @@ class APIv3SchemaAdapter implements EventSubscriberInterface {
     }
     return $required;
   }
+
 }
index 947371d0f6c7c9d73dc6d0276a44ae4227e3e397..3d17bf277addcb4797f2dfc627e6e7879aecea03 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Subscriber;
 
index e979e93ac7056674916758b442f1effc12ae2cd1..4aeef4c314cd40b88525b394b59dd900e5be4520 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Subscriber;
 
index 2aba5693ff685f7588cad488b4c569d2fa84d37c..d6f72a10eef2533e189d7cd6bd0ee68d7d61c55e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Subscriber;
 
@@ -107,4 +107,5 @@ class I18nSubscriber implements EventSubscriberInterface {
       }
     }
   }
+
 }
index 68485e301fee83fdbdecc2add9389c30457fb2b7..91d6ac9f6ce661585d49041efaf58ea7e9308147 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Subscriber;
 
@@ -86,4 +86,5 @@ class PermissionCheck implements EventSubscriberInterface {
       $event->stopPropagation();
     }
   }
+
 }
index 132533c647589942d56dfd447736724eeab24cf5..b5e867e81f738da695454b306837211332afd3c4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Subscriber;
 
@@ -172,4 +172,5 @@ class TransactionSubscriber implements EventSubscriberInterface {
       unset($this->transactions[$apiRequest['id']]);
     }
   }
+
 }
index cdf6ff006ce4ae9e8b08cea97686029bda7fd686..afba16e5c9a5417a4c37ae248e47beb8242ef163 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Subscriber;
 
@@ -103,4 +103,5 @@ class WrapperAdapter implements EventSubscriberInterface {
     }
     return $apiRequest['wrappers'];
   }
+
 }
index 2dc1ba6a00aa5e4433528a51c175c56f32375426..a05b274531950b8196851ba6e6c8facacbf1a09c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Subscriber;
 
@@ -62,4 +62,5 @@ class XDebugSubscriber implements EventSubscriberInterface {
       $event->setResponse($result);
     }
   }
+
 }
index cc5d2dd21fe9cf66a64f98f657dd051249cb6d72..b6ae7446891b0a96d6430d2a154f1ffdb3b8ec93 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 namespace Civi\CCase;
 
 class Analyzer {
@@ -217,4 +217,5 @@ class Analyzer {
     $this->activities = NULL;
     $this->indices = array();
   }
+
 }
index 668f280da151b695a6ccfd4eb5ae51df2e540965..d54bb60d0ce88c3b1c7ec6beed528148b980a4b5 100644 (file)
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 namespace Civi\CCase;
 
 interface CaseChangeListener {
   public function onCaseChange(\Civi\CCase\Event\CaseChangeEvent $event);
+
 }
index 57fda7fcb10cadf62dddfb43f9f747a30b80ada5..2112d41c807ddb7a7c9457af290db5a1368a745f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\CCase\Event;
 
@@ -40,4 +40,5 @@ class CaseChangeEvent extends \Symfony\Component\EventDispatcher\Event {
   public function __construct($analyzer) {
     $this->analyzer = $analyzer;
   }
+
 }
index 86855b730b027fa8065b531d7c4e6bead11947b8..b31adcded567a7fe54563288aaf291c09a0f706b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 namespace Civi\CCase;
 
 class Events {
@@ -98,4 +98,5 @@ class Events {
       $listener->onCaseChange($event);
     }
   }
+
 }
index 7f83ebb6fe75d73afb5d631412003fad2bd432a3..d2d9858035de4fed0db85813e4a99fe955e7a9b0 100644 (file)
@@ -102,4 +102,5 @@ class SequenceListener implements CaseChangeListener {
     $r = civicrm_api3('Activity', 'create', $params);
     $analyzer->flush();
   }
+
 }
index c0acfbb3e3f67b77decc5c31a3289bc94a31bc99..2c28c1383c74d5cb893e166037880940e7106efe 100644 (file)
@@ -9,4 +9,5 @@ class Arrays {
     }
     return $r;
   }
+
 }
index 4f1bbfd44b2d26b858cb91f3363cbe2d22cee471..46441305b35f2605e6872a48f4dac5c54b58382a 100644 (file)
@@ -67,4 +67,5 @@ class AntagonistCommand {
     }
     return NULL;
   }
+
 }
index 262ee617f8c8e4a6ca25f058ecc334719dacf552..03c8b8d72a52514a38131af3fcfb419c787bdaed 100644 (file)
@@ -68,4 +68,5 @@ class CompareCommand {
       }
     }
   }
+
 }
index 95bfc6511ceeac7118c90c6063b0e56b0a9a4680..c265d1e13036b6c24182539292eca7b8bcdf36b8 100644 (file)
@@ -9,4 +9,5 @@ class LsCommand {
       printf("%s %s %s\n", $test['file'], $test['class'], $test['method']);
     }
   }
+
 }
index fffadfb20a7b7718af4f4dce3d23e881e68525ee..bb75ad68ac841430af5dc21597126899b8f79970 100644 (file)
@@ -43,4 +43,5 @@ class ComparisonPrinter {
     }
     print "\n";
   }
+
 }
index 8d4a73fac9d9456b5dc3c7c5a4f0c90ab055a26f..9fe7d97fef50b7bfe538dd4f4eaacc2350d1e63f 100644 (file)
@@ -29,4 +29,5 @@ class CsvPrinter {
     array_unshift($row, $test);
     fputcsv($this->file, $row);
   }
+
 }
index 876c4e010b7d8a4a8941820c4dd910a0420214b3..6ab005fc489fbd6ed9166a36fd40e0607e78fc41 100644 (file)
@@ -29,4 +29,5 @@ class EnvTestRunner {
     unlink($jsonFile);
     return $results;
   }
+
 }
index 00d5230db139186e18700e653a28e7ea4b5b32c8..8ca35b0d84885a178a62f7fedfbfc2d4ea787e15 100644 (file)
@@ -31,4 +31,5 @@ class JenkinsParser {
     }
     return $results;
   }
+
 }
index 85805da00964470a5f9812a50787cdb8dcffc0d8..cd7a1b9a2ecdc0625e19d17727718a9c420b5971 100644 (file)
@@ -93,4 +93,5 @@ class PHPUnitScanner {
     }
     return $r;
   }
+
 }
index fa56a554c7ff86840275021cc06829b29d44cdb7..94c8188375f337ee326ee8ea44abbf524c712a2c 100644 (file)
@@ -148,4 +148,5 @@ class Container {
 
     return $kernel;
   }
+
 }
index 07df28e08e595bb4de03bf447a205a5c8334fe8a..5ba051a7e2c3d8cfa00eb7eb8f689439fef9a4f6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\Core\DAO\Event;
 
index a1c1cfecbca182b5b81aa0e111c82894512cdb40..fcbd6081bbb4c2e469b5190e65dab56172212fb1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\Core\DAO\Event;
 
index cfa6484366a035dc7f1ab3f2308f9f18d4d30b8e..d71de10b68418d3fe50dc7b6681b7642a2c84aab 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\Core\Event;
 
@@ -59,4 +59,5 @@ class PostEvent extends \Symfony\Component\EventDispatcher\Event {
     $this->id = $id;
     $this->object = $object;
   }
+
 }
index 936cdf6af2b8e3dfa13fdb50cc7b17ee21da5f5b..8a59f8847a8215f3c22a00e672d63bbccddfa279 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\Core\Event;
 
@@ -59,4 +59,5 @@ class PreEvent extends \Symfony\Component\EventDispatcher\Event {
     $this->id = $id;
     $this->params = $params;
   }
+
 }
index d45cd89c413d866e38fcb29c46f5e62748d6ac73..547f882f7c2a48cfbce12fee9e6e08a0c6bb6735 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\Core\Event;
 
@@ -47,4 +47,5 @@ class UnhandledExceptionEvent extends \Symfony\Component\EventDispatcher\Event {
     $this->request = $request;
     $this->exception = $e;
   }
+
 }
index 8e565f2b93e04fe835eb78ca3512c599e3b3eed5..cb085c3ba40485514c2b295670bc367b3b2134f1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\Core\Transaction;
 
index 8e38800620ec14d440b04ae62eb5b4b4c4dd4a44..cca5409de572565adb5f29533bbb6a30d47a80f1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\Core\Transaction;
 
index 9736b5a26d2e2113974f495891322c1bdf4aee58..643906fc3fd2d5ea124adfc540f68fc0a8832089 100644 (file)
@@ -544,4 +544,5 @@ class Requirements {
 
     return $results;
   }
+
 }
index 99ed9104ae79dbc1a59988b0775fb042941a2ce1..f4f2fede0cc2e39d6eedd0c6c34a03eca80228b8 100644 (file)
@@ -76,4 +76,5 @@ class System {
     $processor = civicrm_api3('payment_processor', 'get_single', array('name' => $name, 'is_test' => $is_test));
     return self::getByProcessor($processor);
   }
+
 }
index 7f0186b88f10be4119bef6ec1a9e2c34c58dc468..8629359f219541ed41e2e930bdee26f6ac64dc68 100644 (file)
@@ -74,6 +74,7 @@ class API_Exception extends Exception {
       self::NOT_IMPLEMENTED => 'Entity or method is not implemented',
     );
   }
+
 }
 
 /**
@@ -122,4 +123,5 @@ class CiviCRM_API3_Exception extends Exception {
   public function getExtraParams() {
     return $this->extraParams;
   }
+
 }
index f53c8fdb835d6fcc6d7f80c35938bfd9461261bf..4df24d242fba6b3267bda14a6bc90b1110a1fe51 100644 (file)
@@ -21,4 +21,5 @@ interface API_Wrapper {
    *   modified $result
    */
   public function toApiOutput($apiRequest, $result);
+
 }
index 3d526247ecd93104440d27614136f34df86cea95..9425c81057f3784d785ba656636f93b572045aca 100644 (file)
@@ -89,7 +89,7 @@ function _civicrm_api3_api_getfields(&$apiRequest) {
  *
  * @param $result
  *
- * @return boolean
+ * @return bool
  *   true if error, false otherwise
  */
 function civicrm_error($result) {
index 2b378bc5074d7c62adfa9a75ed84ecc8b96952ff..c2ae50b8c73dca3c0baa14ed481581a0caccf787 100644 (file)
@@ -352,4 +352,5 @@ class civicrm_api3 {
   public function result() {
     return $this->lastResult;
   }
+
 }
index 6998d3982ffc4bdde87fd04631c07c471146fb52..9b681f8db2136026d9c3d218626b9a24e122d336 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 acl functions
index 26798697178f516a6b0eefa882e0efa00c97f713..7c8763ef34b2c23f80ca7284a9d07c1af5233c82 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 acl_role functions
index bd4899699fd03240fc48c46199e5ac96ede55e9f..85080da947f32f7e9a25788d6b3e5c3703bd5192 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 for Scheduled Reminders
@@ -53,7 +53,7 @@ function civicrm_api3_action_schedule_get($params) {
  *
  * @return array
  *
- * {@getfields action_schedule_create}
+ *   {@getfields action_schedule_create}
  */
 function civicrm_api3_action_schedule_create($params) {
   civicrm_api3_verify_one_mandatory($params, NULL, array('start_action_date', 'absolute_date'));
index fe3d3899c33db4929c7b98ddcf5fed6f03e9d268..349d0e1b0048c61ead8ccf95cc11a89c6c1d8264 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 activity contact functions
index 52158cfa0bb8956f789a1a2a82995369ab422e00..66bc99ab4f388af6d75c3b4443ea92091923a1ac 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @deprecated
index ac3bc0a3df387f9d19459d4c3768c3f3db1045d0..5b43c1079990d5562379c13d8e5306823b5dcd73 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 address functions
@@ -140,15 +140,11 @@ function civicrm_api3_address_delete($params) {
  * Retrieve one or more addresses on address_id, contact_id, street_name, city
  * or a combination of those
  *
- * @param mixed[] (reference ) input parameters
- *
- * {@example AddressGet.php 0}
  * @param array $params
  *   An associative array of name/value pairs.
  *
  * @return array
  *   details of found addresses else error
- * {@getfields address_get}
  */
 function civicrm_api3_address_get(&$params) {
   return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, TRUE, 'Address');
index 5c52f3a5598476d3892cb87debf6108490f6ebce..40b22ca6b18a3a4357de9d84a900b3a4eac9d6ca 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 batch functions
index 28ff9898c452a805aad0b0cde9a979c448d03a1f..63ac673ef7ccb7ce5da825ca98b95b952929cc5c 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 Case functions
@@ -39,7 +39,7 @@
 /**
  * Open a new case, add client and manager roles, and add standard timeline
  *
- * @param array (
+ * @param array $params
  * //REQUIRED:
  * 'case_type_id' => int OR
  * 'case_type' => str (provide one or the other)
@@ -182,14 +182,13 @@ function _civicrm_api3_case_delete_spec(&$params) {
  *
  * Please provide one (and only one) of the four get/search parameters:
  *
- * @param array (
- * 'id' => if set, will get all available info about a case, including contacts and activities
- *
- * // if no case_id provided, this function will use one of the following search parameters:
- * 'client_id' => finds all cases with a specific client
- * 'activity_id' => returns the case containing a specific activity
- * 'contact_id' => finds all cases associated with a contact (in any role, not just client)
+ * @param array $params
+ *   'id' => if set, will get all available info about a case, including contacts and activities
  *
+ *   // if no case_id provided, this function will use one of the following search parameters:
+ *   'client_id' => finds all cases with a specific client
+ *   'activity_id' => returns the case containing a specific activity
+ *   'contact_id' => finds all cases associated with a contact (in any role, not just client)
  *
  * @throws API_Exception
  * @return array
@@ -292,14 +291,14 @@ function _civicrm_api3_case_deprecation() {
 /**
  * Update a specified case.
  *
- * @param array (
- * //REQUIRED:
- * 'case_id' => int
+ * @param array $params
+ *   //REQUIRED:
+ *   'case_id' => int
  *
- * //OPTIONAL
- * 'status_id' => int
- * 'start_date' => str datestamp
- * 'contact_id' => int // case client
+ *   //OPTIONAL
+ *   'status_id' => int
+ *   'start_date' => str datestamp
+ *   'contact_id' => int // case client
  *
  * @throws API_Exception
  * @return array
@@ -360,15 +359,15 @@ function civicrm_api3_case_update($params) {
 /**
  * Delete a specified case.
  *
- * @param array (
- * //REQUIRED:
- * 'id' => int
+ * @param array $params
+ *   //REQUIRED:
+ *   'id' => int
  *
- * //OPTIONAL
- * 'move_to_trash' => bool (defaults to false)
+ *   //OPTIONAL
+ *   'move_to_trash' => bool (defaults to false)
  *
  * @throws API_Exception
- * @return boolean
+ * @return bool
  *   true if success, else false
  */
 function civicrm_api3_case_delete($params) {
index c165555f1128bcac373f7ee13c58557b36cde4c2..3d00eca7af84609ed8ea5a7087193889cdf7e6b1 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 Case functions
index ed59163a7bbd53f3ba7f3bcd724e9f52efa343a8..5e379c7e540e9ac6bad0aae128454d280731b4ff 100644 (file)
@@ -183,12 +183,12 @@ function _civicrm_api3_constant_get_spec(&$params) {
     'worldRegion',
     'wysiwygEditor',
   );
-  $params = (array(
-  'name' => array(
+  $params = array(
+    'name' => array(
       'title' => 'Constant Name',
       'name' => 'name',
       'api.required' => 1,
-        'options' => array_combine($options, $options),
-      ))
+      'options' => array_combine($options, $options),
+    ),
   );
 }
index bb31c023a8cc7f121cb73d16eab93ce823f61446..fed2bca617bce942cf9d038608ce75d845900832 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * new version of civicrm apis. See blog post at
index a9874d4dd05e0ba3cfc0415c80210f3479e847f1..b23a0b383135192e47362b1da482e256c3be666f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 Contribution functions
index bc2b5e6c416aa85fa4f0a3c59e858da0c987f1ef..4f510d9f3b4c5103403af77b054352cbef625e09 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /**
index 459f0c240422ad7b7a9d0041fa3047b3a457cc4f..6b82a8a660aaa51da573a3e6752fc5b9758dd9f4 100644 (file)
@@ -43,7 +43,6 @@
  *
  * @return array
  *   api result array
- * {@getfields contribution_recur_create}
  */
 function civicrm_api3_contribution_recur_create($params) {
   return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
@@ -73,7 +72,6 @@ function _civicrm_api3_contribution_recur_create_spec(&$params) {
  *
  * @return array
  *   API result Array of matching contribution_recurs
- * {@getfields contribution_recur_get}
  */
 function civicrm_api3_contribution_recur_get($params) {
   return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
@@ -85,10 +83,9 @@ function civicrm_api3_contribution_recur_get($params) {
  * @param array $params
  *   (reference) array containing id of the recurring contribution.
  *
- * @return boolean
+ * @return bool
  *   returns true is successfully cancelled
  */
-
 function civicrm_api3_contribution_recur_cancel($params) {
   civicrm_api3_verify_one_mandatory($params, NULL, array('id'));
   return CRM_Contribute_BAO_ContributionRecur::cancelRecurContribution($params['id'], CRM_Core_DAO::$_nullObject) ? civicrm_api3_create_success() : civicrm_api3_create_error(ts('Error while cancelling recurring contribution'));
@@ -106,8 +103,6 @@ function civicrm_api3_contribution_recur_cancel($params) {
  *
  * @return array
  *   API result array
- *                message otherwise
- * {@getfields contribution_recur_delete}
  */
 function civicrm_api3_contribution_recur_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
index a02bf614b8ba0bd3090c61260f41d81b2bc196d0..ca9d1829f5a8bbbe14fbb847b2e7bb6d2aca7648 100644 (file)
@@ -25,7 +25,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 soft credit functions
index 647e8aa717001420c88b1da288b225f9b9923cbd..d8edab351a796c8820fe5b1ce88aca25d3a9baac 100644 (file)
@@ -25,7 +25,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 country functions
index 5d2f03fcc4e899f904a735f39009cc1e4b68dadf..b90ec9e6271783325853c6d09f535e2e376530ee 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 custom group functions
index 11393c67226252b3349f27dbcddc236459e85e84..cfbcdfa98cdb89a91aa8eca0a6d75061e14c6a96 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 for Dashboard Contact
index e06da4281125f6164e5d0d9cf367c7915af5e38c..c8cf7f9121bc1f41f7c1c7bd6c6d6ac50bd39a54 100644 (file)
@@ -86,11 +86,11 @@ function civicrm_api3_domain_get($params) {
           CRM_Utils_Array::value(
             'phone_type_id',
           $values['location']['phone'][1]
-        )
+          )
           ),
           'phone' => CRM_Utils_Array::value(
           'phone',
-        $values['location']['phone'][1]
+          $values['location']['phone'][1]
           ),
         );
       }
index 288c4981f93dab243d1064bb7b259f5bf084449d..d288afef47f3f9536f50d61f83cff0588d8f519a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 email functions
@@ -46,7 +46,6 @@
  *
  * @return array
  *   API result array
- * {@getfields email_create}
  */
 function civicrm_api3_email_create($params) {
   return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
@@ -73,9 +72,8 @@ function _civicrm_api3_email_create_spec(&$params) {
  *
  * @example EmailDelete.php Standard Delete Example
  *
- * @return boolean
+ * @return bool
  *   | error  true if successfull, error otherwise
- * {@getfields email_delete}
  */
 function civicrm_api3_email_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
@@ -84,17 +82,11 @@ function civicrm_api3_email_delete($params) {
 /**
  * Retrieve one or more emails
  *
- * @param array input parameters
- *
- *
- * @example EmailGet.php Standard Get Example
- *
  * @param array $params
  *   An associative array of name/value pairs.
  *
  * @return array
  *   api result array
- * {@getfields email_get}
  */
 function civicrm_api3_email_get($params) {
 
index a39ded5c2dacca19b571a682ee24fb89e38b2a15..41ac2e108f781e7ce816acf06339eacf791c2086 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 entity tag functions
index 4bf680fc60b4ef15385a210984411bc099edaa66..3646d416e048666c0a7f05ea5036112bf9cc7ca5 100644 (file)
@@ -180,12 +180,12 @@ function civicrm_api3_extension_uninstall($params) {
  * @example ExtensionDownload.php
  */
 function civicrm_api3_extension_download($params) {
-  if (! array_key_exists('key', $params)) {
+  if (!array_key_exists('key', $params)) {
     throw new API_Exception('Missing required parameter: key');
   }
 
-  if (! array_key_exists('url', $params)) {
-    if (! CRM_Extension_System::singleton()->getBrowser()->isEnabled()) {
+  if (!array_key_exists('url', $params)) {
+    if (!CRM_Extension_System::singleton()->getBrowser()->isEnabled()) {
       throw new API_Exception('Automatic downloading is diabled. Try adding parameter "url"');
     }
     if ($reqs = CRM_Extension_System::singleton()->getBrowser()->checkRequirements()) {
@@ -199,7 +199,7 @@ function civicrm_api3_extension_download($params) {
     }
   }
 
-  if (! array_key_exists('url', $params)) {
+  if (!array_key_exists('url', $params)) {
     throw new API_Exception('Cannot resolve download url for extension. Try adding parameter "url"');
   }
 
@@ -207,7 +207,7 @@ function civicrm_api3_extension_download($params) {
     return civicrm_api3_create_error($requirement['message']);
   }
 
-  if (! CRM_Extension_System::singleton()->getDownloader()->download($params['key'], $params['url'])) {
+  if (!CRM_Extension_System::singleton()->getDownloader()->download($params['key'], $params['url'])) {
     return civicrm_api3_create_error('Download failed - ZIP file is unavailable or malformed');
   }
   CRM_Extension_System::singleton()->getCache()->flush();
index c71d6807cddbbd4a2a3c2be229457f1fc8dea7a5..6445ff1ea30ebc97ed8fb4f65b5b43d3a1ab610d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 financial_account functions
index 7357bb35b1b741127c0d1ae3c4f03db9e325777b..cc6466ebe55cd14a6b7079497dab638822259a2f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 financial_type functions
index c4a5f7829e41af9a1189a323dc6ea157efd030c1..d8b7fb4adb96f198910fe33d145a041fc40ea820 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @param array $apiRequest
index c17d510972dace3a6f996081c72042b4e783800b..aee2a58c13423860d5669f39697c1f09cf4bd127 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 /**
  * Generic api wrapper used for quicksearch and autocomplete
  *
index ce58034bc44a32cbde635e8cddc1ee2def8cad32..55ba8b5bdf9194e3af56b212200a381dfc5181ec 100644 (file)
@@ -22,8 +22,9 @@ function civicrm_api3_generic_setValue($apiRequest) {
 
   $fields = civicrm_api($entity, 'getFields', array('version' => 3, 'action' => 'create', "sequential"));
   // getfields error, shouldn't happen.
-  if ($fields['is_error'])
-  return $fields;
+  if ($fields['is_error']) {
+    return $fields;
+  }
   $fields = $fields['values'];
 
   $isCustom = strpos($field, 'custom_') === 0;
@@ -67,9 +68,10 @@ function civicrm_api3_generic_setValue($apiRequest) {
       break;
 
     case CRM_Utils_Type::T_DATE:
-      $value = CRM_Utils_Type::escape($value,"Date",false);
-      if (!$value)
+      $value = CRM_Utils_Type::escape($value, "Date", FALSE);
+      if (!$value) {
         return civicrm_api3_create_error("Param '$field' is not a date. format YYYYMMDD or YYYYMMDDHHMMSS");
+      }
       break;
 
     case CRM_Utils_Type::T_BOOLEAN:
index 7851fa914eb933ea825cd1d772f341a292467bc5..095018bc1be9f1120e8fd188a1b075bbeee93985 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Update function is basically a hack to get around issues listed in
index a6643f1af55311ef93dd020138318df7c902fca7..c0bf9d7e6aa3d6146399618ffdb2759a2a413418 100644 (file)
@@ -60,7 +60,6 @@ function civicrm_api3_group_nesting_get($params) {
  *
  * @return array
  *   TBD
- * {@getfields GroupNesting_create
  * @todo Work out the return value.
  */
 function civicrm_api3_group_nesting_create($params) {
index 388474666c339cf4c991fcbc648fa230c73df0dd..8101cb32e7369c20c587c8c46bee348d48f5b7ec 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 IM functions
index 0fc93821d6e46f071c9410826416a79b253cb40b..f1cc4997dee97583df954389a98c7666112bf485 100644 (file)
@@ -25,7 +25,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * new version of civicrm APIs. See blog post at
index 2bcf1a33d31cab2dba27f87c47d89eec4203036a..77095c305b510b478b8725cbe97bfde82e1ef73f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /**
  *
  * @return array
  *   api result array
- * {@getfields line_item_create}
  */
 function civicrm_api3_line_item_create($params) {
-  $params = CRM_Contribute_BAO_Contribution::checkTaxAmount($params,True);
+  $params = CRM_Contribute_BAO_Contribution::checkTaxAmount($params, TRUE);
   return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
 }
 
@@ -75,7 +74,6 @@ function _civicrm_api3_line_item_create_spec(&$params) {
  *
  * @return array
  *   Array of matching line_items
- * {@getfields line_item_get}
  */
 function civicrm_api3_line_item_get($params) {
   return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
@@ -93,7 +91,6 @@ function civicrm_api3_line_item_get($params) {
  *
  * @return array
  *   API result array
- * {@getfields line_item_delete}
  */
 function civicrm_api3_line_item_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
index 464ad93518707e8283948b2189c359ae231335b9..f360e598dc4eb568a3fa7ce4c98ff301030bec79 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /**
index 73568b998fb3b9e111b4efd2edbfd91ca246b033..05435b52654b0ea258f4e9840046921f9e6ef143 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 location type functions
index f85074236ae22355e6be4971fca5204a2497a774..ed73b8a1ed26e3f8478102d78e81c7a24d080858 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index bd825f52899280df5867a1424e86fec6a7423c76..0661d49f48f0565d7960493ce8bacc69f21c53f7 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 804975114c4073e62c453f0890a40e8e66cb99bd..4e3634c82eacd7b6cc1ef03c16ab0a4abdb21f22 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 mailing_component functions
index 60a34522e4c2c72c9aa3a42ac3f2da7ee4a327f0..039741a2fe83020e10467313cd062048e4cba05d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index ed13e1c9a015c443b5e3da7808cb357afed6752a..366312366779d1bc2f65dc8ea9c7e1c3e5e26da4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 /**
  *
  * APIv3 functions for registering/processing mailing group events.
  * $Id$
  *
  */
+
 /**
  * Handle a confirm event
  *
  * @param array $params
  *   Associative array of property.
- *                       name/value pairs to insert in new 'survey'
  *
  * @throws Exception
  * @return array
  *   api result array
- * {@getfields mailing_event_confirm_create}
  */
 function civicrm_api3_mailing_event_queue_create($params) {
   if (!array_key_exists('id', $params) && !array_key_exists('email_id', $params) && !array_key_exists('phone_id', $params)) {
@@ -52,7 +51,7 @@ function civicrm_api3_mailing_event_queue_create($params) {
   }
   civicrm_api3_verify_mandatory($params,
     'CRM_Mailing_DAO_MailingJob',
-    array('job_id','contact_id'),
+    array('job_id', 'contact_id'),
     FALSE
   );
   return _civicrm_api3_basic_create('CRM_Mailing_Event_BAO_Queue', $params);
index d0db0ed9773a2be52446ff6a3941694b44009ada..a8e06ba0b96a5d14168633261e29dd2ed4dfc21c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index c90f514d756cf1ffaebfeccefb3068aed5589e74..3c02cfcd4a011719ce8fa8a831899c2f8ce5733f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 9145d0d83899a244c0d2b9c5ac88e4e6235788e0..976bd309138cd5bc439c138f222144a048936cfa 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index b71a4ccdc2c34fbfc9c3711e2ea164848728a04f..29c3acc388237d95d1d3c7a29853a853aa6f71be 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 0315d351fe440c2f0191249e1c596df1d33c6c6f..c2c8a0cf882f4787db8b1d8aa3f3de83ca25cea9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 9fd398a2b49956d633b878c086d4509fe308413c..4a9332b4130f30a5d17f7554b8088521ebd1ae31 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index acfb043ebad4304072043a2f2d572ead85eed34e..bc6ddaf20faf22c6d0ec0061476eeb2bb7f73b01 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 membership type functions
index eef2a96ad0deb0221ee927dc4b5dd3a106ff3170..483fb710f789c640e389b86db2f827d908fe0b55 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 membership type functions
@@ -100,7 +100,7 @@ function civicrm_api3_membership_type_get($params) {
  *
  * @param array $params
  *
- * @return boolean
+ * @return bool
  *   true if success, else false
  */
 function civicrm_api3_membership_type_delete($params) {
index 7b534d3f51dd5b2052def8b43b5877eaa4f220a8..b2ca5e145a8b5214581a586fa7b792cf0caf147b 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 message_template functions
@@ -53,7 +53,7 @@ function _civicrm_api3_message_template_create_spec(&$params) {
   /*  $params['entity_id']['api.required'] = 1;
   $params['entity_table']['api.default'] = "civicrm_contribution_recur";
   $params['type']['api.default'] = "R";
-  */
+   */
 }
 
 /**
index be5ff03ba830885cbd78fcfaa1544eff315210c8..d71dbc9999562f9faf283bd410dc3d4bec1739aa 100644 (file)
  *
  * @param array $params
  *   An associative array of name/value property values of civicrm_participant_payment.
- * @example ParticipantPaymentCreate.php
- * {@example ParticipantPaymentCreate.php 0}
  *
  * @return array
  *   Array of newly created payment property values.
- * {@getfields ParticipantPayment_create}
  */
 function civicrm_api3_participant_payment_create($params) {
 
index 9385eb1473ae7cb139ed50f76399e929a4719ce8..4bb89c729da60961a0b8d036e719838e39e2f1a6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 PaymentProcessor functions
@@ -78,10 +78,9 @@ function civicrm_api3_payment_processor_delete($params) {
 /**
  * Retrieve one or more PaymentProcessor
  *
- * @param mixed[] (reference) input parameters
- * {@getfields payment_processor_get}
  * @param array $params
  *   An associative array of name/value pairs.
+ * {@getfields payment_processor_get}
  *
  * @return array
  *   details of found PaymentProcessor
index 17581d1c734f41e8b09b05b2b2f1977e39a73069..97cfee6d23296bcfdbbb791dfbbec7de777abb24 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 phone functions
index ed72e2eee94c9ca92f6cd3028dd54cc87f35e67b..1e3c340474e693eae4a702e11c23a96f331fa4af 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 Pledge functions
index 87bfe6fff9c02735b851f8ccbccf1294e2045273..0e6ce88fe32acb046eaf80976b95d82d5f7c2294 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 premium functions
index 0fcc744ddcd9f970f874d892b78804583903dbd7..048f71595c0fc7fc83a46e0ebf2c5c4917f92c8a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /**
index ae023d38b5eb8bd57869c3274bac666008016278..316df168908017deac3cc88dc21d360329f14baa 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /**
index 78e457d40bc7a5e271d95d61e71eba7c82601491..bdf0ded9d306ec1a398479f8a8fb5c7c63f9e85c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /**
index c074e5b636e2b26a8abb1de59b58caf0cbe77d34..c3f4dd27c3bdb77c76861ef56530a40d180b26c0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 print_label functions
index cf19be7b877a442ed8af056ed16e5351926eb33a..178d3a676468bb45ed7b036ea2d9475c55836284 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 product functions
index d93beafaeaab1713be055966f21658b098c2f736..034b12b36b8083f50173dbdcc19e474a655dd991 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 activity profile functions
index ff0dfd1f59ee5d2c5325f5269326fd2ef1a2d7e2..3c199adf3d869574a5d0c29e54d903e7adfbfb20 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 relationship functions
index ee4c608ba184e04942c4d19bbab53139415db0df..8fa00c97b8cd22b05c9414591e3c14b7f41186e5 100644 (file)
@@ -173,7 +173,7 @@ function _civicrm_api3_report_template_getrows_spec(&$params) {
   );
 }
 
-/*
+/* @codingStandardsIgnoreStart
 function civicrm_api3_report_template_getfields($params) {
   return civicrm_api3_create_success(array(
     'id' => array(
@@ -270,4 +270,5 @@ function civicrm_api3_report_template_getfields($params) {
       'default' => 'UL',
     ),
   ));
-}*/
+}
+@codingStandardsIgnoreEnd */
index 45ca0323e9c5bccf08b039ff3c28d83225b9e6cb..0e049ca49e11eded7e0cbf117f861aee107b31ec 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 sms_provider functions
index 11cd9170de39f83edc64c73f9ab54aba7d1a7ce4..86da40035e528eeb974cad4bc1bdfb880e7d2f38 100644 (file)
@@ -48,7 +48,6 @@ function _civicrm_api3_survey_respondant_deprecation() {
  *   (reference ) input parameters.
  *
  * @return array
- *  contribution_id of created or updated record
  */
 function civicrm_api3_survey_respondant_get(&$params) {
 
index 34472fcc96611a771f69c557ce209583a5405446..06c5f18851490cf890dc8dd8f14cbbe3c80efba6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 tag functions
index c64305b2d03d636aabacdd48aa68c283e4ebfcdf..c08a63b15de5c0861f272613270beacb1e1859f1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 user framework group functions
index 6811f0874f707f54f7e92ce579d96feecab5c386..49061d2406a76607f99570eeee52673eb16a287b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 website functions
index b25f63dd6fff499163baff82bd224de6da226757..1170e336b29d4a5214962fead7454b9b700c6166 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 domain functions
index 41ca0a5a8d4303c07c8239ef165832bb49bc7193..c2ada33f336073e367ef3603ec0bc87a0fb7f28a 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for CiviCRM APIv3 utilitity functions
index 10b4dbdc3fe84a2649d802ba852c7f51e04bf2b2..fc7d9e583727dbb940f9c19e81f66822fbcf2643 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -398,6 +398,7 @@ class CiviContributeProcessor {
         return self::csv();
     }
   }
+
 }
 
 // bootstrap the environment and run the processor
index 481bb045ef76586bff418c0aa581c3b6ad946243..f00d9ffdae6d0ce8c645e222f010c54f80b1e68f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * A PHP script which deletes extraneous civicrm_membership_payment rows
index d1db53c541d28b48bddc9c2690c3de4ba558a623..10bb27db0d472a27bd73a111659237aed45e8e18 100644 (file)
@@ -21,7 +21,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This files provides several classes for doing command line work with
@@ -307,6 +307,7 @@ class civicrm_cli {
     // that properly logs
     print "$error\n";
   }
+
 }
 
 /**
@@ -348,6 +349,7 @@ class civicrm_cli_csv_exporter extends civicrm_cli {
     fclose($out);
     echo "\n";
   }
+
 }
 
 /**
@@ -422,6 +424,7 @@ class civicrm_cli_csv_file extends civicrm_cli {
     $params['version'] = 3;
     return $params;
   }
+
 }
 
 /**
@@ -442,6 +445,7 @@ class civicrm_cli_csv_importer extends civicrm_cli_csv_file {
       echo "\nline " . $this->row . ": created " . $this->_entity . " id: " . $result['id'] . "\n";
     }
   }
+
 }
 
 /**
@@ -462,4 +466,5 @@ class civicrm_cli_csv_deleter extends civicrm_cli_csv_file {
       echo "\nline " . $this->row . ": deleted\n";
     }
   }
+
 }
index db2d622c5fde5ee8b6e493196f03b8e7bf727e4f..eb5060b2dbfae8df8c5251240f107708157e5190 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'cli.class.php';
index 1eef6574d975a4e189bc7cc871b89a743374110b..6a7a00daa8fe37aa7b5f7d2a1af22acbf5ed1dde 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once '../civicrm.config.php';
index 030939085ce3a75f1df8a9c83b50e93190e8eecc..cadd37c0bd9092deb40352508bea5cb913fe6604 100644 (file)
@@ -21,7 +21,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Delete records passed in via a csv file. You must have the record
index dcb4378e1137a501c4b10d5a15b4c685b9d99ea1..5c405ded88c013201ae8456d93ae4f303a57af74 100644 (file)
@@ -21,7 +21,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /**
index e0dd258b04b71f7028a546d76baeaa52a52c2f94..aa17e60281117e7b853a9ad48a9bfb945eccb6df 100644 (file)
@@ -21,7 +21,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Import records from a csv file passed as an argument.
index 38d0ccd5de653a79ee5327e34aed60bc2828985c..4c3c7a92696e441d0f1e1a91c8f43df69b061122 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * A PHP cron script to mail the result set of specified report to the
@@ -69,6 +69,7 @@ class CiviReportMail {
 
     $lock->release();
   }
+
 }
 
 session_start();
index 84a0e52fb59322292de1bc26a0852d106c41fc7e..8479a42482d82bd954c75b1222a23da82c48062b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 63999e25bbc722e7483ebae4667b1bb684bc363d..78557de36b0e96741ce8cd46bcf3a63088f3a20d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
@@ -257,6 +257,7 @@ LEFT JOIN  civicrm_event event ON ( event.id = participant.event_id )
       }
     }
   }
+
 }
 
 $obj = new CRM_ParticipantProcessor();
index 608e1e95ba0641f4ff46e66b8ea318ab4cd542d7..a231caca391911734205a673f23317a5fe9a5ae1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
@@ -101,6 +101,7 @@ UPDATE  civicrm_activity
 
     echo "<br /><br />Number of respondents released = {$releasedCount}";
   }
+
 }
 
 $obj = new CRM_RespondentProcessor();
index 5c67e9eaad347d1cda9a0c2e12eb14bf14b6bdd1..3b35f58ca8ae788e8af7b42a647e58b402ecb3ae 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * A PHP cron script to format all the addresses in the database. Currently
index 7414842acaf205d07ccbe63ce3fd289efc07d3f6..6e9b622ea6b3177c42db442d3dd2d02f45dbf5b3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
@@ -238,6 +238,7 @@ UPDATE civicrm_contact
       CRM_Core_DAO::executeQuery($cacheFieldQuery);
     }
   }
+
 }
 
 $obj = new CRM_UpdateGreeting();
index 8c6140fd9cc16d07189be7c725e1fa0b3a1016dd..ada18233a7963074d150c220c06c9e9875705ccb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
@@ -45,7 +45,7 @@
 class CRM_UpdateMembershipRecord {
   /**
    */
-  function __construct() {
+  public function __construct() {
     // you can run this program either from an apache command, or from the cli
     if (php_sapi_name() == "cli") {
       require_once "cli.php";
@@ -66,7 +66,7 @@ class CRM_UpdateMembershipRecord {
     }
   }
 
-  function initialize() {
+  public function initialize() {
     require_once '../civicrm.config.php';
     require_once 'CRM/Core/Config.php';
 
@@ -77,6 +77,7 @@ class CRM_UpdateMembershipRecord {
     require_once 'CRM/Member/BAO/Membership.php';
     CRM_Member_BAO_Membership::updateAllMembershipStatus();
   }
+
 }
 
 $obj = new CRM_UpdateMembershipRecord();
index c511bd3d46718c52caed8b9ecc210f8530c6e10b..003253fdc6f85d5f457610e371ce44304d6035b7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
@@ -37,7 +37,7 @@
 class CRM_UpdateMembershipReminderDate {
   /**
    */
-  function __construct() {
+  public function __construct() {
     // you can run this program either from an apache command, or from the cli
     if (php_sapi_name() == "cli") {
       require_once "cli.php";
@@ -58,7 +58,7 @@ class CRM_UpdateMembershipReminderDate {
     }
   }
 
-  function initialize() {
+  public function initialize() {
     require_once '../civicrm.config.php';
     require_once 'CRM/Core/Config.php';
 
@@ -106,6 +106,7 @@ INNER JOIN  civicrm_membership_type type ON ( type.id = membership.membership_ty
 
     CRM_Core_DAO::executeQuery($query);
   }
+
 }
 
 $reminderDate = new CRM_UpdateMembershipReminderDate();
index 1170098959e69787416845456f2da55397e73a3d..c09cd9d0ae7c6e73cd717e767d764725fdb18150 100644 (file)
@@ -42,7 +42,7 @@ require_once 'CRM/Core/Config.php';
 class CRM_UpdatePledgeRecord {
   /**
    */
-  function __construct() {
+  public function __construct() {
     $config = CRM_Core_Config::singleton();
     // this does not return on failure
     require_once 'CRM/Utils/System.php';
@@ -72,7 +72,7 @@ class CRM_UpdatePledgeRecord {
     foreach (array(
                'Completed',
                'Cancelled',
-               'Failed'
+               'Failed',
              ) as $statusKey) {
       if ($key = CRM_Utils_Array::key($statusKey, $allStatus)) {
         unset($allStatus[$key]);
@@ -301,6 +301,7 @@ SELECT  pledge.contact_id              as contact_id,
     // end if ( $sendReminders )
     echo "<br />{$updateCnt} records updated.";
   }
+
 }
 
 $obj = new CRM_UpdatePledgeRecord();
index bd24f1812fd38ed7626e3ae624168538dbeb4108..8c69ada6d04b5d1c3857a397c032bb4260f452ac 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
@@ -35,7 +35,7 @@
 class CRM_Cron_Action {
   /**
    */
-  function __construct() {
+  public function __construct() {
     // you can run this program either from an apache command, or from the cli
     if (php_sapi_name() == "cli") {
       require_once "cli.php";
@@ -56,7 +56,7 @@ class CRM_Cron_Action {
     }
   }
 
-  function initialize() {
+  public function initialize() {
     require_once '../civicrm.config.php';
     require_once 'CRM/Core/Config.php';
 
@@ -70,6 +70,7 @@ class CRM_Cron_Action {
     require_once 'CRM/Core/BAO/ActionSchedule.php';
     CRM_Core_BAO_ActionSchedule::processQueue($now);
   }
+
 }
 
 $cron = new CRM_Cron_Action();
index 522f564e5484023cfa5d9b97c615e4e6b7f3aefb..9d80e561a1f5920f175099ad7aa4764e6140babb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * A PHP cron script to run the outstanding and scheduled CiviMail jobs
index ab93c1208174c72deb60b04bfb7c3f56fdeb21b3..88c341ba16fc6c599b9f7f8e56c232b9057f3a81 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index f4b3d509ed4aba9812524e9c7dcf4a90edc29255..d73c215d24f3cc81da854fdf9fa8675938ab2027 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 2e1d993c74da8800cb243cb49609df56d11e5491..f6d84e8bad500a2165123ca246232bf804c0109c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 28915d58cd7930f5de48d12f8f1050721ddc5cdc..4415724636553dafbb655c12b9f3434bc05b3d65 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 680d55b7aee344efcf33ad3be5e49d277a676d15..61cf07d78245785b54ef5cb985b3e85092ccb577 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index c2c15d9d11deca55cc90a942679cd35196d08bdb..8d857f1bed353a0919091a522a5e1ae4523c82b1 100644 (file)
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
+
+/**
+ *
+ * @package CRM
+ * @copyright CiviCRM LLC (c) 2004-2014
+ * $Id$
+ *
+ */
 function run() {
   session_start();
 
index 5b477a7a3290e9466c503ae6541b373ed1f3ef34..69838daa40047b10840be5f56c0708664ef50019 100644 (file)
@@ -72,7 +72,7 @@ function generateJoomlaConfig($version) {
 
   $output = $targetDir . '/civicrm.xml';
   $fd = fopen($output, "w");
-  fputs($fd, $xml);
+  fwrite($fd, $xml);
   fclose($fd);
 
   require_once 'CRM/Core/Config.php';
@@ -106,6 +106,6 @@ function generateJoomlaConfig($version) {
   $output = $targetDir . '/admin/access.xml';
   $xml    = $smarty->fetch('access.tpl');
   $fd     = fopen($output, "w");
-  fputs($fd, $xml);
+  fwrite($fd, $xml);
   fclose($fd);
 }
index 88e73f5b7baceed147fdc57761244409eead4630..cd1b265578b2dd15712fa5d410cc2dbf4f9d7836 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @package CRM
index 22e5e90eff51676c7843d2f5fbbcadee391c45ce..8ebce21ebbea445116ab4b467fb10617ec312caf 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @package CRM
index 65c8e83a1d858dcf45780bea45e38427ff1df1fd..6a633307f2e638a2e98c7c8c034f97eace239574 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @package CRM
index 7b4777f1c4e06565b5fa3c459d21c120ca734af2..7c582ae96cb82fb9e816bea41101d0d809d0384e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once '../civicrm.config.php';
 $config = CRM_Core_Config::singleton();
index c1b377d0ece93f2a74e1743477521f895555d738..729de8550c7649111c4d2ee039df72fae08e7325 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 // Patch for CRM-3154
index 496b72ac3d712217a8612aa7a0eda6db1c537504..f322278c718a3925fd0f6db141671f6aa05d7ab1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 2c42c4fc994de16f4cefe932f00a0e5eb1715eea..dad7032552acdae8efd4b50448571f163979c386 100644 (file)
@@ -20,4 +20,4 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
index c15d58b33e45077afe5531b8879da8ff2ebdfbfa..389418337e7d73ba409e7145985e735c6f04d6c9 100644 (file)
@@ -24,7 +24,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index cab7d8c3d03b74ad8f45aaf7e76d6bee5faebad5..6b622b0724676b34c345f2473658bdc9ea8c9f45 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 42ad1d61f9e119efa5c7848030eed566157772dc..b105e051223b137c1980a246f7623a30b452360e 100644 (file)
@@ -1188,6 +1188,7 @@ class InstallRequirements {
   public function hasWarnings() {
     return count($this->warnings);
   }
+
 }
 
 /**
@@ -1399,6 +1400,7 @@ class Installer extends InstallRequirements {
 
     return $this->errors;
   }
+
 }
 
 function civicrm_install_set_drupal_perms() {
index 32bf646f82211b85e11bf99125bf178d7cf2081f..5a75c7138330a62bcac8cf8d67b96fe4d0d4823e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index e91bdc5d6812d9f2c4d57aad577988ed6bc15550..4f43a234cf81406245dc4ec29ba169179a372854 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index cdfdbc54ee7b4592516b0a521bffe41654e1cb4e..aa37e0b946b48dd9231087209695b558871948f4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 83310cadb1eba66c2d973d52ba153d68bd5ba77e..965df9dcc52c83d1b3e4a2dc28e6d3538d6963c1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 132090d2dc0f0520c4b91f875ea5b5afd16e0e16..988159834ffea93a11581e1c0f46facfb2d824a4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 85249c63f35b0e553e91e7afe1639dc971f841a6..d90dd41d2aea0b0f5537e457b0f36e9703da677d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index f745135acf8715a0279b259b6fc0c2f6f25fccca..0b4d834160cda37685d9b724e94b04f5bc9e267f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  */
 return array(
   'event_enable_cart' =>
-    array(
-      'name' => 'enable_cart',
-      'group_name' => 'Event Preferences',
-      'group' => 'event',
-      'type' => 'String',
-      'quick_form_type' => 'Element',
-      'default' => 0,
-      'add' => 4.1,
-      'title' => 'Enable Event Cart',
-      'is_domain' => 1,
-      'is_contact' => 1,
-      'description' => "WRITE ME",
-      'help_text' => 'WRITE ME',
-    ),
+  array(
+    'name' => 'enable_cart',
+    'group_name' => 'Event Preferences',
+    'group' => 'event',
+    'type' => 'String',
+    'quick_form_type' => 'Element',
+    'default' => 0,
+    'add' => 4.1,
+    'title' => 'Enable Event Cart',
+    'is_domain' => 1,
+    'is_contact' => 1,
+    'description' => "WRITE ME",
+    'help_text' => 'WRITE ME',
+  ),
 );
index eb274f03b5703301a42c1e47e69c4d017e64a14a..37ebf6f28d867a8d38958cf054970db2d88be4b9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 3d4e27a2b593c4ae7314769c11a82436a8744532..6a4cfe7035e7a944fd872d2cc163b1a24599e226 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index ee9b375fe9f72ffe065e6edc503bc01b48521c1f..a4039a451a91e8badf30aba05b1987bbde68ace3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 740934085aa24927823f5b95019c4f669f4804a0..864f2337617795b87ab4681ae3a1c90aaec6fe55 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index b883870054c2b312d461e0a77d4124b9d2b4edaf..aed23936d41266103de24b31cdf657d710a6cef5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index baf0cc6aadf002752696e334f7ae09f9741be47f..eb8b33b25f972ffcc8f6ac78a96f8c02cee46013 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index a2cd9d787f654d25dca286a328e41dad9cbeca94..23a54dd493a7a1e4feb066256596bc5db8ebff43 100644 (file)
@@ -59,4 +59,5 @@ class test_extension_manager_paymenttest extends CRM_Core_Payment {
 
   public function checkConfig() {
   }
+
 }
index 0c9e14731ec8e92e6e6f3026bb501488965c30a9..8d216176e4ab97f6d231a2af67feb6b3cdc1c035 100644 (file)
@@ -54,4 +54,5 @@ class test_extension_manager_reporttest extends CRM_Core_Report {
             WHERE log_action = 'Update' AND log_conn_id = %1 AND log_date = %2 ORDER BY log_date DESC LIMIT 1
         ";
   }
+
 }
index 9f30e106ef7012ac0f5a54fe2196c7c9362de9da..1b6fc5daccfc467ca74e9a0715c5fd310b3678b1 100644 (file)
@@ -59,6 +59,7 @@ class AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class AllTests
 
index e3f8bb0ba301847cd799777c20b45f3c90cc3b5b..449b915f3245a83abd2f8441ea53ce1642693667 100644 (file)
@@ -59,6 +59,7 @@ class CRM_Activity_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Activity_AllTests
 
index 86f355f471697feb9531e55dbd06b9e2f8eca5c5..66bd1c985a8b1c0029ebe2824287e49383197370 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -118,4 +118,5 @@ class CRM_Activity_BAO_ActivityAssignmentTest extends CiviUnitTestCase {
     $assignees = CRM_Activity_BAO_ActivityAssignment::getAssigneeNames(array($activity['id']));
     $this->assertEquals(count($assignees), 1, '1 assignee names retrieved');
   }
+
 }
index 398726ed429a3ecbc2eaf1e350be15ecfbe801c5..7d37416ed313c75cc008cce3663b206dbdc09fbd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -67,4 +67,5 @@ class CRM_Activity_BAO_ActivityTargetTest extends CiviUnitTestCase {
     $this->assertEquals(count($targetIDs), 1, 'One target ID match for activity');
     $this->assertEquals($targetIDs[0], $activity['target_contact_id'], 'The returned target contacts ids match');
   }
+
 }
index f0ecc8f956b7adb62b988382db373cffe67f8491..37a5ce5ac962e7e35049de9b91fba5c49e6d4ffd 100644 (file)
@@ -544,4 +544,5 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase {
     // This contact does not have any activities
     $this->assertEquals(0, count($activities), 'In line ' . __LINE__);
   }
+
 }
index f910defe84efe7fce7026d8be5b3d70ddddcba05..98eab49171ed171b52e03cde2b7890e96d2a11f5 100644 (file)
@@ -59,6 +59,7 @@ class CRM_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class AllTests
 
index 53c2d8d31922c7d01bcbd817d760ab650d81782b..32f4795c1c0865d05580e44c3ac43d277c59b9d3 100644 (file)
@@ -291,4 +291,5 @@ class CRM_Batch_Form_EntryTest extends CiviUnitTestCase {
 
     );
   }
+
 }
index 1705f48b5e570b36f6ba2626aea71e354a7f9125..6c14115420ac73f47fafb7c1862ad576cd425e8e 100644 (file)
@@ -76,4 +76,5 @@ class CRM_Bridge_OG_DrupalTest extends CiviUnitTestCase {
     civicrm_api('OptionValue', 'Get', array('version' => 3, 'label' => 'OG', 'api.option_value.delete'));
     civicrm_api('OptionValue', 'Get', array('version' => 3, 'label' => 'OG2', 'api.option_value.delete'));
   }
+
 }
index 261da7350bad287fb95b73b3d4fcfeaa020a9c9f..1497ec608787c1806d7b62f1f9a66659de452524 100644 (file)
@@ -17,7 +17,7 @@ class CRM_Case_AllTests extends CiviTestSuite {
    */
   private static function getInstance() {
     if (is_null(self::$instance)) {
-      self::$instance = new self;
+      self::$instance = new self();
     }
     return self::$instance;
   }
@@ -29,4 +29,5 @@ class CRM_Case_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
index 0bb6fceabbaca8d96ed0a05ee3d9aa6a8208c953..a45f2fc5aa034a220e3c28efa97d8856ec5329b9 100644 (file)
@@ -87,4 +87,5 @@ class CRM_Case_BAO_CaseTest extends CiviUnitTestCase {
    * function testGetRelatedCases() {
    * }
    */
+
 }
index 6e4605e9c828ff34d4b94a74816cd6c8325a9e43..130706fa17330b90da180cb99e6f74ef26eaf62f 100644 (file)
@@ -181,4 +181,5 @@ class CRM_Case_BAO_CaseTypeTest extends CiviUnitTestCase {
       )
     );
   }
+
 }
index 0bacad1d0971340de2da61bf992b08ecb849ecdc..d037a5f33b334973cff67063428602abee9c5865 100644 (file)
@@ -15,4 +15,5 @@ class CRM_Case_PseudoConstantTest extends CiviCaseTestCase {
     );
     $this->assertEquals($expectedTypes, $caseTypes);
   }
+
 }
index 62d0c300d3ca84324d3cd89bd0e8a6e9b25a2e93..8abb704c820e6c0f5a55f79e8b554f5f7b7774f6 100644 (file)
@@ -195,4 +195,5 @@ class CRM_Case_XMLRepositoryTest extends CiviUnitTestCase {
     $this->assertEquals(2, $repo->getRelationshipReferenceCount('Second Role'));
     $this->assertEquals(1, $repo->getRelationshipReferenceCount('Third Role'));
   }
+
 }
index f7471db476722b1664cc92ac2106c7fef9bb47cf..eabc8be0f5f2ebb62b3b19d7052b7597521b9299 100644 (file)
@@ -59,6 +59,7 @@ class CRM_Contacts_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Contacts_AllTests
 
index 19860615f94b1cb7826cab0dfb3442472e3dda44..8e8526a0f12eb69a55418d629e7891ddd72336c3 100644 (file)
@@ -1413,8 +1413,8 @@ class CRM_Contact_BAO_ContactTest extends CiviUnitTestCase {
           'contact_type' => 'Individual',
           'contact_id' => $contactId,
         );
-      $contact = CRM_Contact_BAO_Contact::add($params);
-      $test->assertInstanceOf('CRM_Contact_DAO_Contact', $contact, 'Check for created object');
+        $contact = CRM_Contact_BAO_Contact::add($params);
+        $test->assertInstanceOf('CRM_Contact_DAO_Contact', $contact, 'Check for created object');
       },
     ));
   }
@@ -1561,4 +1561,5 @@ class CRM_Contact_BAO_ContactTest extends CiviUnitTestCase {
 
     Contact::delete($contactId);
   }
+
 }
index 3e795f6a0742883830826f6419265a2f7abb9f0c..59e1e9c33f8c6f3ecb1b6db8228ef7eff6e035dd 100644 (file)
@@ -299,4 +299,5 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     $result = civicrm_api('contact', 'get', $params, $defaults);
     $this->assertEquals(empty($result['values']), TRUE, 'In line ' . __LINE__);
   }
+
 }
index e9ea6a4fdc96d9b5a27466651e3dfc45cc6b9ee8..59aac2aea0bf6354298c31dedada476d8036ee50 100644 (file)
@@ -283,4 +283,5 @@ DELETE FROM civicrm_contact_type
     $this->assertEquals($updatedContact->contact_sub_type, 'null', 'In line ' . __LINE__);
     CRM_Contact_BAO_Contact::deleteContact($contact->id);
   }
+
 }
index c1c649aea6a1e13190aadb6a1e78fdaa0096b478..5c001abe6e8a8fb8151a0731d8afa05b90fa0eb7 100644 (file)
@@ -227,4 +227,5 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
     $del = CRM_Contact_BAO_ContactType::del(NULL);
     $this->assertEquals($del, FALSE, 'In line ' . __LINE__);
   }
+
 }
index de1c994975fd5c34362163ba2ab44eb57a4b635a..49355f8bdd160888129df4283e659f2b280ee8f1 100644 (file)
@@ -308,4 +308,5 @@ DELETE FROM civicrm_contact_type
     $this->assertEquals(empty($relationshipIds), FALSE, 'In line ' . __LINE__);
     $this->relationshipTypeDelete($relType->id);
   }
+
 }
index 8de1b603dab5cc03902e3ceef6f7188d60a2f48d..cbad297122875b9be222b270c8d22f8a38b8c144 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
index c76a9dafece6e5e7389d94766b9a2fc01c5715c0..20b7cb58e65d3305e692558d1cd09baae3164858 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -160,4 +160,5 @@ class CRM_Contact_BAO_GroupContactTest extends CiviUnitTestCase {
     $this->assertEquals(1, count($resultChildContactIds), 'Check the count of returned values');
     $this->assertEquals(array(), array_diff($validChildContactIds, $resultChildContactIds), 'Check that the difference between two arrays should be blank array');
   }
+
 }
index 52021b4b4bfd8c102c8b8ffc76ecfebb6d482100..208d6bd7368e7be5e146a668a56137080d6390b0 100644 (file)
@@ -141,4 +141,5 @@ class CRM_Contact_BAO_GroupTest extends CiviUnitTestCase {
       CRM_Contact_BAO_GroupContactCache::load($group, TRUE);
     }
   }
+
 }
index d92a9a004fd848de39ef593b406286399d43159c..0f6368b410f6f9ac7fe16b91b3a9643c3fda8247 100644 (file)
@@ -190,4 +190,5 @@ class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase {
 
     }
   }
+
 }
index d0defad3e97546b090bb6121270c1833670d0a42..4f7f415c9c1a185a3a9437de169b9a4cc763feee 100644 (file)
@@ -200,5 +200,6 @@ class CRM_Contact_BAO_QueryTestDataProvider implements Iterator {
   public function valid() {
     return isset($this->dataset[$this->i]);
   }
+
 }
 // class CRM_Contact_BAO_QueryTestDataProvider
index 57d3bad04d59d48ed734036f91b5099d38dd7bc4..cde44bd2ed8d94ccf6031acfd6df48165fc75354 100644 (file)
@@ -272,4 +272,5 @@ class CRM_Contact_Form_Search_Custom_GroupTest extends CiviUnitTestCase {
       'In line ' . __LINE__
     );
   }
+
 }
index 26e99f65437390151dfa74f66780a748bc3dee22..2c8234d22d671b87ac29708f7f99ff59e92e4189 100644 (file)
@@ -355,4 +355,5 @@ class CRM_Contact_Form_Search_Custom_GroupTestDataProvider implements Iterator {
   public function valid() {
     return isset($this->dataset[$this->i]);
   }
+
 }
index c8bcca8fa507d2ec1b6e4731d6658ab9c224b40c..a53989cc6f1d2876ea3615b40a13d7774aa5c368 100644 (file)
@@ -59,6 +59,7 @@ class CRM_Contribute_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Contribute_AllTests
 
index 2b150bab1fabbd67ecd6fac1c1038f2bc97f6c7e..5b1561e399d0953b8713490cc70920c9d05d9cb7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -169,4 +169,5 @@ class CRM_Contribute_BAO_ContributionPageTest extends CiviUnitTestCase {
     $this->assertEquals($checkRecurring, FALSE, 'Check for false return.');
     ContributionPage::delete($contributionpage->id);
   }
+
 }
index 5cfabc7b7517c8e3db2611bcda31a07e5a239a70..08344100cb96e201fac5fe99a289fe16b5b793ae 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
index 09861b3680a5b761f3806f22703aedd6bccb121f..cc7723721032886fe43611fcbc1ebb0b4f741407 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -458,4 +458,5 @@ class CRM_Contribute_BAO_ContributionTest extends CiviUnitTestCase {
     // Delete Contact
     Contact::delete($contactId);
   }
+
 }
index a881b5b55296b11d79988ec7e41a332f6417b7ad..03906cd3487121fc88f9a2427dc93a21efc928c0 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -117,4 +117,5 @@ class CRM_Contribute_BAO_ContributionTypeTest extends CiviUnitTestCase {
     $result = CRM_Financial_BAO_FinancialType::retrieve($params, $defaults);
     $this->assertEquals(empty($result), TRUE, 'Verify financial types record deletion.');
   }
+
 }
index b4c2c4135d17927cc894a187205994b094fbae5c..e5720850c87264e0c1ac56c493ebf05e7b7905e6 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -134,4 +134,5 @@ class CRM_Contribute_BAO_ManagePremiumsTest extends CiviUnitTestCase {
 
     $this->assertEquals(empty($result), TRUE, 'Verify product record deletion.');
   }
+
 }
index 7460038140890f4f7a209d0717cdc39cef8787ac..0a665a8df318d6e6177743ace2eaa7c7a094010c 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Core_AllTests extends CiviTestSuite {
    */
   private static function getInstance() {
     if (is_null(self::$instance)) {
-      self::$instance = new self;
+      self::$instance = new self();
     }
     return self::$instance;
   }
@@ -59,6 +59,7 @@ class CRM_Core_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Core_AllTests
 
index c37c52a490456fe6d0ecd44e2caa35100fd75777..1439e6f19638492a0ea8e82f6e0e358dc7192f02 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -945,7 +945,7 @@ class CRM_Core_BAO_ActionScheduleTest extends CiviUnitTestCase {
    *
    * @return array|NULL|object
    */
-  function createTestObject($daoName, $params = array(), $numObjects = 1, $createOnly = FALSE) {
+  public function createTestObject($daoName, $params = array(), $numObjects = 1, $createOnly = FALSE) {
     $objects = CRM_Core_DAO::createTestObject($daoName, $params, $numObjects, $createOnly);
     if (is_array($objects)) {
       $this->registerTestObjects($objects);
index 22a15fadab12803f7a15905f448270fbce5e0b54..5520b9429780ca3890835e975794a15bc8c6a73f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -325,4 +325,5 @@ class CRM_Core_BAO_AddressTest extends CiviUnitTestCase {
     $this->assertNotContains('street_unit', $parsedStreetAddress);
     $this->assertNotContains('street_number_suffix', $parsedStreetAddress);
   }
+
 }
index b2529d2dcbf65176e76469ca6a881345951fd250..506c3a1c333013c251003d7bed692979ab2daa79 100644 (file)
@@ -284,4 +284,5 @@ class CRM_Core_BAO_CustomFieldTest extends CiviUnitTestCase {
     Custom::deleteGroup($groups['A']);
     Custom::deleteGroup($groups['B']);
   }
+
 }
index f5bfe1d297d219a8cf4f13049722758a5bf03e2f..de9b5fc0071239fd9330aef7dff3966b2f9ea408 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -585,4 +585,5 @@ class CRM_Core_BAO_CustomGroupTest extends CiviUnitTestCase {
     $this->assertEquals($groupTitles[$customFieldId]['groupTitle'], 'Test Custom Group', 'Check Group Title.');
     Custom::deleteGroup($customGroup);
   }
+
 }
index 58a409147cecaf7edf6c0270d3e06abc6861e109..4090313dc9a1a1908a5a3fd3eca000d3a709373c 100644 (file)
@@ -149,4 +149,5 @@ class CRM_Core_BAO_CustomValueTableMultipleTest extends CiviUnitTestCase {
     Custom::deleteGroup($customGroup);
     Contact::delete($contactID);
   }
+
 }
index 85c5fad585573ba5a914f1b9575411975753a526..52d32a2c6284e17d3f6100736d9f7e7645f526cc 100644 (file)
@@ -196,4 +196,5 @@ class CRM_Core_BAO_CustomValueTableSetGetTest extends CiviUnitTestCase {
     Custom::deleteGroup($customGroup);
     Contact::delete($contactID);
   }
+
 }
index 1c36c0a722f1c17ce13582445790bbf050e48015..2045145330d79fae6210675a7d70119b275d54d4 100644 (file)
@@ -37,7 +37,7 @@ class CRM_Core_BAO_CustomValueTableTest extends CiviUnitTestCase {
         'table_name' => 'civicrm_value_test_group_' . $customGroup->id,
         'column_name' => 'test_Country_' . $customField->id,
         'file_id' => '',
-      )
+      ),
     );
 
     CRM_Core_BAO_CustomValueTable::store($params, 'civicrm_contact', $contactID);
@@ -72,7 +72,7 @@ class CRM_Core_BAO_CustomValueTableTest extends CiviUnitTestCase {
         'table_name' => 'civicrm_value_test_group_' . $customGroup->id,
         'column_name' => 'test_File_' . $customField->id,
         'file_id' => 1,
-      )
+      ),
     );
 
     CRM_Core_BAO_CustomValueTable::store($params, 'civicrm_contact', $contactID);
@@ -107,7 +107,7 @@ class CRM_Core_BAO_CustomValueTableTest extends CiviUnitTestCase {
         'table_name' => 'civicrm_value_test_group_' . $customGroup->id,
         'column_name' => 'test_StateProvince_' . $customField->id,
         'file_id' => 1,
-      )
+      ),
     );
 
     CRM_Core_BAO_CustomValueTable::store($params, 'civicrm_contact', $contactID);
@@ -141,7 +141,7 @@ class CRM_Core_BAO_CustomValueTableTest extends CiviUnitTestCase {
         'table_name' => 'civicrm_value_test_group_' . $customGroup->id,
         'column_name' => 'test_Date_' . $customField->id,
         'file_id' => '',
-      )
+      ),
     );
 
     CRM_Core_BAO_CustomValueTable::store($params, 'civicrm_contact', $contactID);
@@ -176,7 +176,7 @@ class CRM_Core_BAO_CustomValueTableTest extends CiviUnitTestCase {
         'table_name' => 'civicrm_value_test_group_' . $customGroup->id,
         'column_name' => 'test_Memo_' . $customField->id,
         'file_id' => '',
-      )
+      ),
     );
 
     CRM_Core_BAO_CustomValueTable::store($params, 'civicrm_contact', $contactID);
@@ -212,7 +212,7 @@ class CRM_Core_BAO_CustomValueTableTest extends CiviUnitTestCase {
         'table_name' => 'civicrm_value_test_group_' . $customGroup->id,
         'column_name' => 'test_Memo_' . $customField->id,
         'file_id' => '',
-      )
+      ),
     );
 
     CRM_Core_BAO_CustomValueTable::store($params, 'civicrm_contact', $contactID);
@@ -260,4 +260,5 @@ class CRM_Core_BAO_CustomValueTableTest extends CiviUnitTestCase {
     Custom::deleteGroup($customGroup);
     Contact::delete($contactID);
   }
+
 }
index 938d7e5461a13242bb3e3eaf4ec251ef7d143200..c1eb5e17deef119e20690d3bb5c654207fb7121d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -151,4 +151,5 @@ class CRM_Core_BAO_CustomValueTest extends CiviUnitTestCase {
     $result = CRM_Core_BAO_CustomValue::fixFieldValueOfTypeMemo($params);
     $this->assertEquals($result, NULL, 'Checking the returned value of type Memo.');
   }
+
 }
index bdabdfa5ad3ae267765ddc5ed232231311969393..43e534aad56b9c60d97671badb82e44aeb8476d1 100644 (file)
@@ -150,4 +150,5 @@ class CRM_Core_BAO_EmailTest extends CiviUnitTestCase {
 
     Contact::delete($contactId);
   }
+
 }
index 3228b7639bb044d36878ccf05d4308ff8d50bf95..e6d8bc481e6c8b56b665c29e5697944ee1e68626 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -62,4 +62,5 @@ class CRM_Core_BAO_FinancialTrxnTest extends CiviUnitTestCase {
 
     $this->assertEquals($result, 10, 'Verify financial trxn total_amount.');
   }
+
 }
index 3da812863a504df1f43ebf5b60cbb27b7bc93375..43d20a013e842e1ebe6bd5263dc629e03f11eef9 100644 (file)
@@ -73,4 +73,5 @@ class CRM_Core_BAO_IMTest extends CiviUnitTestCase {
 
     Contact::delete($contactId);
   }
+
 }
index f4c85311e4c47fd1acba6f05f179df2fe39e6afb..9a0c53155d0adb461d86ab1cfe399629bda99918 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -50,7 +50,7 @@ class CRM_Core_BAO_LocationTest extends CiviUnitTestCase {
         'civicrm_loc_block',
         'civicrm_email',
         'civicrm_phone',
-        'civicrm_im'
+        'civicrm_im',
       ));
   }
 
@@ -556,4 +556,5 @@ class CRM_Core_BAO_LocationTest extends CiviUnitTestCase {
     //cleanup DB by deleting the contact
     Contact::delete($contactId);
   }
+
 }
index c77ec7cb1fa9525d3029763b453e4cb1ac2b0a1e..d8670020a40a7675c0f552fafc3530e04d453b4b 100644 (file)
@@ -170,4 +170,5 @@ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase {
     $this->contactDelete($contactId);
     $this->assertDBRowNotExist('CRM_Contact_DAO_Contact', $contactId);
   }
+
 }
index 39fa33a468e47ec24b828c3b12e65212c3f71af0..6b6125634869921f2f18de50e7d92002531fe13e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -116,4 +116,5 @@ class CRM_Core_BAO_PhoneTest extends CiviUnitTestCase {
    */
   public function SKIPPED_testAllEntityPhones() {
   }
+
 }
index 68953753a2c5e86cf120a26d2cb4bcab563716f2..8a01e308068c21c2ff6baced7820deb23f926d8d 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -63,4 +63,5 @@ class CRM_Core_BAO_PreferencesTest extends CiviUnitTestCase {
 
     $this->assertEquals($addressOptions['county'], 1, 'County was set but did not stick in db');
   }
+
 }
index 8ed8418804dc80c1db2d64945567a498df737e38..1804dbfa594d218d599b1b4a43aed58389535b81 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 require_once 'CRM/Core/BAO/RecurringEntity.php';
@@ -256,4 +256,5 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase {
     $compareActParams = array();
     $this->assertDBCompareValues('CRM_Friend_DAO_Friend', $searchActParams, $compareActParams);
   }
+
 }
index 2032949d88a45cdf83da2ff3e740a9bb3a15e7be..13a67d73ca1582f9ef5e7e22ffb53624e6a989df 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -113,9 +113,7 @@ class CRM_Core_BAO_SettingTest extends CiviUnitTestCase {
    *  2) for current domain setting max_attachments is set to the value that $config->maxAttachments
    *    had (6)
    *  3) for other domain (2) max_attachments is set to the configured default (3)
-   *
-   *
-   **/
+   */
   public function testConvertAndFillSettings() {
     $settings = array('maxAttachments' => 6);
     CRM_Core_BAO_ConfigSetting::add($settings);
@@ -179,10 +177,10 @@ class CRM_Core_BAO_SettingTest extends CiviUnitTestCase {
     $this->assertEmpty($maxAttachments);
   }
 
-  /*
+  /* @codingStandardsIgnoreStart
    * Check that setting is converted without config value being removed
    *
-  public function testConvertConfigToSettingPrefetch() {
+    public function testConvertConfigToSettingPrefetch() {
     $settings = array('debug' => 1);
     CRM_Core_BAO_ConfigSetting::add($settings);
     $config = CRM_Core_Config::singleton(true, true);
@@ -194,7 +192,7 @@ class CRM_Core_BAO_SettingTest extends CiviUnitTestCase {
     $config = CRM_Core_Config::singleton(true, true);
     $this->assertEmpty($config->debug);
   }
-   */
+  @codingStandardsIgnoreEnd */
 
   /**
    * Ensure that on_change callbacks fire.
index 93a27c1e4b50862ecf960a67951811878855307b..360199a90bf476f21d677e40cd1f1bbbaeb0c30e 100644 (file)
@@ -211,4 +211,5 @@ class CRM_Core_BAO_UFFieldTest extends CiviUnitTestCase {
 
     return $ufGroup->id;
   }
+
 }
index 7d054dc2ca48b710c5fa59e20bba09e3b3f2cbd9..fdcbb2e5a5a5eb5fd90bdc5d74c79c64eaa5602b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -399,4 +399,5 @@ class CRM_Core_CommunityMessagesTest extends CiviUnitTestCase {
       ->will($this->returnValue($response));
     return $client;
   }
+
 }
index f7fc6ebc2433342494c982557eeb432606a35a1c..f8ade6c7f38c7061c3280c34cc0eaaecb289c476 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
index 4314a473486f3f454dc275e792b3d5f610271bc7..3c88e9d54b74276b7f2e8d7d849444fe2b3d695b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -93,4 +93,5 @@ class CRM_Core_ErrorTest extends CiviUnitTestCase {
       $this->assertRegexp($pattern, file_get_contents($logFile));
     }
   }
+
 }
index 5815b51c6128b0b0d6c6c6d25b4e51805efdec16..3cb04d9ca582087fca95b2ceac97adc26f584db3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -92,4 +92,5 @@ class CRM_Core_FieldOptionsTest extends CiviUnitTestCase {
       }
     }
   }
+
 }
index 527064f3d7775259a86b065f58cbe178732a8fb1..24a507d3331bc1ce72abaa23540a730b7e55d9f4 100644 (file)
@@ -81,4 +81,5 @@ class CRM_Core_InnoDBIndexerTest extends CiviUnitTestCase {
   public function supportsFts() {
     return version_compare(CRM_Core_DAO::singleValueQuery('SELECT VERSION()'), '5.6.0', '>=');
   }
+
 }
index 26d66f7cbc8a104cc89f72d26ccf77e70b64e142..db27dd8fbaa21a614a208fbe23cb583ff7cf14c8 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
@@ -45,4 +45,5 @@ class CRM_Core_JobManagerTest extends CiviUnitTestCase {
     $jobManager = new CRM_Core_JobManager();
     $jobManager->execute(FALSE);
   }
+
 }
index 26ca09c215a13eea2d65ff88cbdf40ae8573b0a6..27393900e04e1bc5f856447edd864a6043dcfc79 100644 (file)
@@ -385,4 +385,5 @@ class CRM_Core_ManagedEntitiesTest extends CiviUnitTestCase {
     $this->assertTrue(NULL === $fooNew);
     $this->assertDBQuery(0, 'SELECT count(*) FROM civicrm_option_value WHERE name = "CRM_Example_One_Foo"');
   }
+
 }
index a9e487cc1668c481611c20eff772f4b95411e74d..cb30579421c78e519b648a7f914c227e3dfa7c8b 100644 (file)
@@ -51,4 +51,5 @@ class CRM_Core_MenuTest extends CiviUnitTestCase {
     $actual = CRM_Core_Menu::getArrayForPathArgs($inputString);
     $this->assertEquals($expectedArray, $actual);
   }
+
 }
index efc6f044b00156ae9aaa18488819f5c7ad2487ca..56d221ffb11b895a2fbd42a205b7c08d6aac1ce9 100644 (file)
@@ -61,4 +61,5 @@ class CRM_Core_Page_AJAXTest extends CiviUnitTestCase {
       }
     }
   }
+
 }
index daf919797b5bff75e1f394ef9b00f2885ce45874..746a8eff77596112873118c0ba27dce2af46e0ac 100644 (file)
@@ -51,4 +51,5 @@ class CRM_Core_Page_RedirectTest extends CiviUnitTestCase {
     $actualUrl = CRM_Core_Page_Redirect::createUrl($parsedRequestPath, $parsedRequestArgs, $parsedPageArgs, FALSE);
     $this->assertEquals($expectedUrl, $actualUrl);
   }
+
 }
index 52e5be603a8e777e4370e14f471dcfe83083116b..20997d1628fc9b9be1323a32fb49a15fc849f5e2 100644 (file)
@@ -146,4 +146,5 @@ class CRM_Core_Payment_AuthorizeNetIPNTest extends CiviUnitTestCase {
       'x_MD5_Hash' => 'EA7A3CD65A85757827F51212CA1486A8',
     ));
   }
+
 }
index 899c830209ed46feb708c1cdc1ba997bb2430d17..79c9a8b61c24252798a83569b646a3c2a6a95851 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -332,4 +332,5 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase {
     $result = $this->processor->cancelSubscription($message, array('subscriptionId' => $subscriptionID));
     $this->assertTrue($result, 'Failed to cancel subscription with Authorize.');
   }
+
 }
index 6d574effa9c7146a5d2c1749511a003f226b23d1..84fc854150a34bab983d338249f96e01d30ae32e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -224,7 +224,7 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
     $mut->checkMailLog(array(
         'Thank you for your participation',
         'Annual CiviCRM meet',
-        'Mr. Anthony Anderson II'
+        'Mr. Anthony Anderson II',
       )
     );
     $mut->stop();
@@ -291,7 +291,6 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
     $this->assertArrayNotHasKey('pledge_payment', $this->objects);
     $this->assertEquals('Could not find payment processor for contribution record: 1', $result['error_message']);
 
-
     $this->ids['pledge_payment'][0] = 999;
     $result = $this->IPN->loadObjects($this->input, $this->ids, $this->objects, TRUE, $this->_processorId, array('return_error' => 1));
     $this->assertArrayHasKey('error_message', $result);
@@ -354,7 +353,7 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
     $this->assertFalse(is_array($result));
   }
 
-  /*
+  /* @codingStandardsIgnoreStart
      * Test calls main functions in sequence per 'main' - I had hoped to test the functions more
      * fully but the calls to the POST happen in more than one function
      * keeping this as good example of data to bring back to life later
@@ -429,6 +428,7 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
                 return $this->IPN->recur( $input, $ids, $objects, $first );
             }
     }
+   @codingStandardsIgnoreEnd */
 
   /**
    * Prepare for contribution Test - involving only contribution objects
@@ -437,7 +437,6 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
    */
   public function _setUpContributionObjects($contributionPage = FALSE) {
 
-
     $contribution = new CRM_Contribute_BAO_Contribution();
     $contribution->id = $this->_contributionId;
     $contribution->find(TRUE);
@@ -602,4 +601,5 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
 
     $this->ids['pledge_payment'][] = $pledgePayment['id'];
   }
+
 }
index 3ce716b9bb5c619b4bd7cb4e840a27b12e49fb47..c7fd9b1e5a3f235049fa9485178171e6f328900a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license UAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -345,4 +345,5 @@ class CRM_Core_Payment_PayPalProIPNTest extends CiviUnitTestCase {
   public function getPaypalProRecurSubsequentTransaction() {
     return array_merge($this->getPaypalProRecurTransaction(), array('txn_id' => 'secondone'));
   }
+
 }
index fe2306ab414eb496c48d328b2a10035fde755e46..5ce2bc5c9823c125f8b718e5e80758da7b9f9ab9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -47,4 +47,5 @@ class CRM_Core_PaymentTest extends CiviUnitTestCase {
     $log = $this->callAPISuccess('SystemLog', 'get', array());
     $this->assertEquals('payment_notification processor_name=Paypal', $log['values'][$log['id']]['message']);
   }
+
 }
index d29ec6a49b1fc8ee41c587d81eac9f4f6e09254d..6d954a22551aca91594600050fca4fc1b1e3a018 100644 (file)
@@ -42,4 +42,5 @@ class CRM_Core_Permission_BaseTest extends CiviUnitTestCase {
     ));
     $this->assertEquals($expected, $actual);
   }
+
 }
index e36fb5ae6d6ed5ca3575326a9b148a6bc40a04af..f7e6f151c722a3968fc2746cc87d2b1bae9e9876 100644 (file)
@@ -39,4 +39,5 @@ class CRM_Core_Permission_GenericTest extends CiviUnitTestCase {
     $provider = new $providerClass();
     $this->assertEquals(TRUE, $provider->check(CRM_Core_Permission::ALWAYS_ALLOW_PERMISSION));
   }
+
 }
index da0624e48e6837f3806dd41a11efee837ca81fc0..48ae8939b4c2677297097402d386887d70e9c7ce 100644 (file)
@@ -41,4 +41,5 @@ class CRM_Core_Permission_JoomlaTest extends CiviUnitTestCase {
     $actual = $perm->translateJoomlaPermission($input);
     $this->assertEquals($expected, $actual);
   }
+
 }
index eee1c4306ae000d7cdc1427fc892a5b8a833786d..8a01353511b16953ad6b74eb9c471351d72b1887 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -1094,4 +1094,5 @@ class CRM_Core_PseudoConstantTest extends CiviUnitTestCase {
       ));
     $this->assertEquals(array_flip($byId), $result);
   }
+
 }
index 397a24be540ab3b275316c97a90da1a3c9ee71e4..1c69b36c72ec979c3f45b10eee3baaa31a1a0228 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -84,6 +84,9 @@ class CRM_Core_ResourcesTest extends CiviUnitTestCase {
    * }
    */
 
+  /**
+   * Ensure that adding a script URL creates expected markup.
+   */
   public function testAddScriptURL() {
     $this->res
       ->addScriptUrl('/whiz/foo%20bar.js', 0, 'testAddScriptURL')
@@ -122,10 +125,10 @@ class CRM_Core_ResourcesTest extends CiviUnitTestCase {
             'fruit' => array(
               'yours' => 'orange',
               'mine' => 'new apple',
-              'ours' => 'banana'
-            )
-          )
-        )
+              'ours' => 'banana',
+            ),
+          ),
+        ),
       ),
       $this->res->getSettings()
     );
index e0a204b820bc102fc9a285dce29d12a25a600612..f3be84e769bcbb2a8faa198efd2b3fe886f9bec4 100644 (file)
@@ -438,4 +438,5 @@ class CRM_Core_TransactionTest extends CiviUnitTestCase {
   public function _postRollback($arg1, $arg2) {
     $this->callbackLog[] = array('_postRollback', $arg1, $arg2);
   }
+
 }
index adc82e3ac7f7b321e961a0df734d72e9e32f6755..48369babc84104894f134fca11bf1d8d4831969b 100644 (file)
@@ -222,4 +222,5 @@ class CRM_Dedupe_DedupeFinderTest extends CiviUnitTestCase {
       Contact::delete($contactId);
     }
   }
+
 }
index 88cf4e63b032ef3cf1245f52eb9206de0603ed96..d029de66aabedd21de15b4d4b2e83ffe6ea91112 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Event_AllTests extends CiviTestSuite {
    */
   private static function getInstance() {
     if (is_null(self::$instance)) {
-      self::$instance = new self;
+      self::$instance = new self();
     }
     return self::$instance;
   }
@@ -59,6 +59,7 @@ class CRM_Event_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Event_AllTests
 
index 66722da64c275ddc5a7756804d1093bc0d771162..09f74cbbebf149e97d8fc4168fd034e45c244fdd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -185,4 +185,5 @@ class CRM_Event_BAO_AdditionalPaymentTest extends CiviUnitTestCase {
     $this->assertEquals($participant['participant_status_id'], 14, 'Status record is not proper for participant');
     $this->assertEquals($contribution->contribution_status_id, 8, 'Status record is not proper for contribution');
   }
+
 }
index ceb4991a93aa261bd304c44fb0d52a4945cfb163..419289e4f80e376c49436a8b4a5acf5b81250420 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -170,4 +170,5 @@ class CRM_Event_BAO_ParticipantStatusTest extends CiviUnitTestCase {
       'id', $isActive, 'Check DB for is_Active value'
     );
   }
+
 }
index c0666a8f239edc413ebc11f1e462e06ad0f7141f..2d24a9e9461ac1c2937bb9386f2fed9c8ea344c8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -429,4 +429,5 @@ class CRM_Event_BAO_ParticipantTest extends CiviUnitTestCase {
     Contact::delete($this->_contactId);
     Event::delete($eventId);
   }
+
 }
index 70c2eb51ac0181ff3313944f1ca668864237d6eb..962e430d136e54392e33771a5a528d5b1416dea1 100644 (file)
@@ -59,6 +59,7 @@ class CRM_Extension_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Core_AllTests
 
index 1c177d99d6b1a728c2337d654684e9e9584af545..811d5f1cbffca1c1f9b5f83b6b699c10a810ca4c 100644 (file)
@@ -67,4 +67,5 @@ class CRM_Extension_BrowserTest extends CiviUnitTestCase {
     $info = $browser->getExtension('test.crm.extension.browsertest.nonexistent');
     $this->assertEquals(NULL, $info);
   }
+
 }
index f4db10030f6a1ff25156598d2c6cfe065227cc71..fe56a23aba4598887e5db89b92a247e9a4a11dfd 100644 (file)
@@ -60,6 +60,7 @@ class CRM_Extension_Container_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // -- set Emacs parameters --
 // Local variables:
index 753a9e5d2d9ec2a3a73e071981bf393e6692ddae..a568a600b46d6544759dc6704bfac7c1c4b41a4d 100644 (file)
@@ -123,4 +123,5 @@ class CRM_Extension_Container_BasicTest extends CiviUnitTestCase {
     $actualRelUrls = CRM_Extension_Container_Basic::convertPathsToUrls('\\', $relPaths);
     $this->assertEquals($expectedRelUrls, $actualRelUrls);
   }
+
 }
index 06b7774b6c0ebcc01db1eaeca70a65c726203e73..05ad1000d62a4daff2d4cce6ee5755a550f37bb9 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
@@ -55,7 +55,7 @@ class CRM_Extension_Container_CollectionTest extends CiviUnitTestCase {
         'test.whiz',
         'test.whizbang',
         'test.foo',
-        'test.foo.bar'
+        'test.foo.bar',
       ), $c->getKeys());
   }
 
@@ -146,4 +146,5 @@ class CRM_Extension_Container_CollectionTest extends CiviUnitTestCase {
     $c = new CRM_Extension_Container_Collection($containers, $cache, $cacheKey);
     return $c;
   }
+
 }
index 91d57303ada71ab0dd7db8116bd92eb16fc81610..3a6bc1a19676b119261618709da76553b499f6b3 100644 (file)
@@ -67,4 +67,5 @@ class CRM_Extension_Container_StaticTest extends CiviUnitTestCase {
       ),
     ));
   }
+
 }
index 96c1d561877c1c7c54dfd13fb6d7ff93f0839f30..7960c9b06646c6b329f6066534964cae46bc2d92 100644 (file)
@@ -65,4 +65,5 @@ class CRM_Extension_InfoTest extends CiviUnitTestCase {
     }
     $this->assertTrue(is_object($exc));
   }
+
 }
index 6fdbd003ec2b51f3ff9c0de74b5a5d4a91a7a259..785086c22498840d88808f7b4c552e0cbc9a94d7 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Extension_Manager_AllTests extends CiviTestSuite {
    */
   private static function getInstance() {
     if (is_null(self::$instance)) {
-      self::$instance = new self;
+      self::$instance = new self();
     }
     return self::$instance;
   }
@@ -59,6 +59,7 @@ class CRM_Extension_Manager_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Core_AllTests
 
index 7ee82cddc3d900bf96760735161ff8610f0dabf5..6910d32c50b20f394a1b0ffdd798286c6781bb79 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
@@ -136,4 +136,5 @@ class CRM_Extension_Manager_PaymentTest extends CiviUnitTestCase {
     $this->assertEquals(1, test_extension_manager_paymenttest::$counts['uninstall']);
     $this->assertDBQuery(0, 'SELECT count(*) FROM civicrm_payment_processor_type WHERE class_name = "test.extension.manager.paymenttest"');
   }
+
 }
index d866db5468bac899957dff658755d6ba2f11fbb9..9e77c7676f94211e0df3c583a083bb12486cb3d3 100644 (file)
@@ -57,4 +57,5 @@ class CRM_Extension_Manager_ReportTest extends CiviUnitTestCase {
     $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "test.extension.manager.reporttest"');
     $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "test.extension.manager.reporttest" AND is_active = 1');
   }
+
 }
index ab0eb3e98da60189b422f52486aa151d5dd8430a..bc3da6e07a925078213ee927f2c00967dcd54cb1 100644 (file)
@@ -58,4 +58,5 @@ class CRM_Extension_Manager_SearchTest extends CiviUnitTestCase {
     $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "test.extension.manager.searchtest"');
     $this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "test.extension.manager.searchtest" AND is_active = 1');
   }
+
 }
index 1c76340863932516c3ab09cd5037c0befb0ad21e..9124027c887792a76b4086a22cade500bece13b6 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
@@ -436,4 +436,5 @@ class CRM_Extension_ManagerTest extends CiviUnitTestCase {
     file_put_contents("$basedir/$file.php", "<?php\n");
     return $basedir;
   }
+
 }
index 9d96c2edb0544047c6c9a9ef7db1185bab537238..c6cd4966c4288eea0a4bae97d557bffbace707a9 100644 (file)
@@ -83,12 +83,12 @@ class CRM_Extension_MapperTest extends CiviUnitTestCase {
   public function _createContainer(CRM_Utils_Cache_Interface $cache = NULL, $cacheKey = NULL, $appendPathGarbage = '') {
     /*
     $container = new CRM_Extension_Container_Static(array(
-      'test.foo.bar' => array(
-        'path' => '/path/to/test.foo.bar',
-        'resUrl' => 'http://resources/test.foo.bar',
-      ),
+    'test.foo.bar' => array(
+    'path' => '/path/to/test.foo.bar',
+    'resUrl' => 'http://resources/test.foo.bar',
+    ),
     ));
-    */
+     */
     $basedir = rtrim($this->createTempDir('ext-'), '/');
     mkdir("$basedir/weird");
     mkdir("$basedir/weird/foobar");
@@ -97,4 +97,5 @@ class CRM_Extension_MapperTest extends CiviUnitTestCase {
     $c = new CRM_Extension_Container_Basic($basedir . $appendPathGarbage, 'http://example/basedir' . $appendPathGarbage, $cache, $cacheKey);
     return array($basedir, $c);
   }
+
 }
index 36897ca951afb9fcde5b601f9a9535233a8e1fe5..2a978328acc111cb8e9da77a76dd20df791fbfdb 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
@@ -139,4 +139,5 @@ class CRM_Financial_BAO_FinancialAccountTest extends CiviUnitTestCase {
     $accountingCode = CRM_Financial_BAO_FinancialAccount::getAccountingCode($financialType->id);
     $this->assertEquals($accountingCode, 4800, 'Verify accounting code.');
   }
+
 }
index f917dec7691ad3aa2b64645d58d59a4fcfa5efde..7b8d5b04d98e09d59589d0b3cf9ae9b39d15f1f1 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 require_once 'CiviTest/CiviUnitTestCase.php';
 require_once 'CRM/Financial/DAO/FinancialAccount.php';
 require_once 'CRM/Financial/BAO/FinancialAccount.php';
@@ -267,4 +267,5 @@ class CRM_Financial_BAO_FinancialItemTest extends CiviUnitTestCase {
     );
     $this->assertEquals($entityResult, $entityTrxn->amount, 'Verify Amount for Financial Item');
   }
+
 }
index 2f760ee827c3359f04a4e76c03e400da3373134f..4082b37d76ee1f6f88cf9be520b1be7613f5c9cc 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
@@ -190,4 +190,5 @@ class CRM_Financial_BAO_FinancialTypeAccountTest extends CiviUnitTestCase {
 
     $this->assertEquals($financialAccountId, $financialAccount->id, 'Verify Payment Instrument');
   }
+
 }
index 0a242c358c23ae2bbc9e7332d88a1ec1a208dccf..251573c801c348622669feb03b845518db92d2a2 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
@@ -120,4 +120,5 @@ class CRM_Financial_BAO_FinancialTypeTest extends CiviUnitTestCase {
     $result = CRM_Financial_BAO_FinancialType::retrieve($params, $defaults);
     $this->assertEquals(empty($result), TRUE, 'Verify financial types record deletion.');
   }
+
 }
index a42a61bd67fe89b598b4675746211bef8cea69d6..cc99cd0dcc2e4f52b7ec5b46a8f9ff5095fcd550 100755 (executable)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 require_once 'CiviTest/CiviUnitTestCase.php';
 require_once 'CRM/Financial/DAO/FinancialAccount.php';
 require_once 'CRM/Financial/BAO/FinancialAccount.php';
@@ -129,4 +129,5 @@ class CRM_Financial_BAO_PaymentProcessorTypeTest extends CiviUnitTestCase {
     $result = CRM_Financial_BAO_PaymentProcessorType::retrieve($params, $defaults);
     $this->assertEquals(empty($result), TRUE, 'Verify financial types record deletion.');
   }
+
 }
index 2d0582179d3c14bbfdb790a63dbe4c7c8e9589d9..f7818df5343d9e532d219fd5eb5f1b1873eda3ab 100644 (file)
@@ -452,4 +452,5 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
       $currentGroups = $groups;
     }
   }
+
 }
index baf41b6a947caab5331ec284770810d0ea78152a..fa3e49d128c4e6d2fd9ff5fabc16793e2385c5da 100644 (file)
@@ -69,4 +69,5 @@ class CRM_Mailing_BAO_QueryTest extends CiviUnitTestCase {
 
     $this->assertEquals($ids, $contacts, 'In line ' . __LINE__);
   }
+
 }
index 0728f873023d923e646a793974840f4ba8a114fc..37c47774e51de9e846a7daffa94335cc0fa61caa 100644 (file)
@@ -151,4 +151,5 @@ class CRM_Mailing_BAO_QueryTestDataProvider implements Iterator {
   public function valid() {
     return isset($this->dataset[$this->i]);
   }
+
 }
index cdd764b3ed7bff61580670a3dfd6d6dc8c47aa1b..94ba6ba0a05107b27fc7d237249f258c79f3438a 100644 (file)
@@ -89,4 +89,5 @@ class CRM_Mailing_BAO_SpoolTest extends CiviUnitTestCase {
       }
     }
   }
+
 }
index a717716f0ab0cbf19ca7119066620df6f9e83a91..c597430d287e13a4cbc02e75c919e0a68c5a3e3d 100644 (file)
@@ -59,6 +59,7 @@ class CRM_Member_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Member_AllTests
 
index 7832167ef70621af991400c61055f0e2576f4cfa..48bd55647b81711ed65367e7884555ae9132ce36 100644 (file)
@@ -163,4 +163,5 @@ class CRM_Member_BAO_MembershipLogTest extends CiviUnitTestCase {
     $this->membershipDelete($membership->id);
     $this->contactDelete($contactId);
   }
+
 }
index 244aada9270cee16fe38b74e87f6f1639e7662e4..682165d6531ac62507fb80bab32e8d633572f582 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -138,4 +138,5 @@ class CRM_Member_BAO_MembershipStatusTest extends CiviUnitTestCase {
 
     $this->assertEquals(empty($result), FALSE, 'Verify membership status records is_current_member.');
   }
+
 }
index a6d31bd7e5a9ec04e4e6fcecc6a96d83e720182a..356807adb653ecae895d44ed48521e5c57e2eaa9 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -614,4 +614,5 @@ class CRM_Member_BAO_MembershipTest extends CiviUnitTestCase {
     $this->membershipDelete($membershipId);
     Contact::delete($contactId);
   }
+
 }
index a9c20abb56a1d682497a6eba3d5854648886b429..250698bc8a7faa5f054c528a8f8a6ba84c83658e 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -368,4 +368,5 @@ class CRM_Member_BAO_MembershipTypeTest extends CiviUnitTestCase {
 
     $this->membershipTypeDelete(array('id' => $membershipType->id));
   }
+
 }
index 19e91eb4c819477aa81de7f11c412bacdd6ea632..608637eec7317ca29589ccf13e4ef94f24a89f49 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Member_Form_AllTests extends CiviTestSuite {
    */
   private static function getInstance() {
     if (is_null(self::$instance)) {
-      self::$instance = new self;
+      self::$instance = new self();
     }
     return self::$instance;
   }
@@ -59,6 +59,7 @@ class CRM_Member_Form_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Member_Form_AllTests
 
index d293c830dc205f4a1e58e591da87b0c90eb0ff54..463f749aa4047c44c27241b3b0e2f02e4124efd4 100644 (file)
@@ -519,5 +519,6 @@ class CRM_Member_Form_MembershipTest extends CiviUnitTestCase {
     //  Should have found Current membership status
     $this->assertTrue($rc, 'In line ' . __LINE__);
   }
+
 }
 // class CRM_Member_Form_MembershipTest
index 6b545c373505513d529b77c3fc7ce86dc4f0a450..2b25bb6b3ef415b3341ee488b990035327502c37 100644 (file)
@@ -138,16 +138,16 @@ class CRM_Member_Import_Parser_MembershipTest extends CiviUnitTestCase {
     /*
 
     $params = array(
-      'contact_id' => $contactId,
-      'membership_type_id' => $this->_membershipTypeID,
-      'join_date' => '2006-01-21',
-      'start_date' => '2006-01-21',
-      'end_date' => '2006-12-21',
-      'source' => 'Payment',
-      'is_override' => 1,
-      'status_id' => $this->_mebershipStatusID,
+    'contact_id' => $contactId,
+    'membership_type_id' => $this->_membershipTypeID,
+    'join_date' => '2006-01-21',
+    'start_date' => '2006-01-21',
+    'end_date' => '2006-12-21',
+    'source' => 'Payment',
+    'is_override' => 1,
+    'status_id' => $this->_mebershipStatusID,
     );
-    */
+     */
     $importObject = new CRM_Member_Import_Parser_Membership($fieldMapper);
     $importObject->init();
     $importObject->_contactType = 'Individual';
@@ -157,4 +157,5 @@ class CRM_Member_Import_Parser_MembershipTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess('membership', 'get', array());
     $this->assertEquals(2, $result['count']);
   }
+
 }
index 14b53fe77b0ee9da8d8539206b5e48ffd3123f37..dd70e8ecf3e4ec1a0263467833a2ad21671677f3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -184,4 +184,5 @@ class CRM_PCP_BAO_PCPTest extends CiviUnitTestCase {
    */
   protected function tearDown() {
   }
+
 }
index 0854f71ba582ad98f835cc6229a94d2234555081..180be99c0ec9f407ae82121e6b230474a14353ac 100644 (file)
@@ -59,6 +59,7 @@ class CRM_Pledge_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Pledge_AllTests
 
index 6554c4c52e9d2811d3b6c990ac2185d541c6eff2..822cbb338386aa9dcee3db902af99f1cf36d3ac1 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -172,4 +172,5 @@ class CRM_Pledge_BAO_PledgeBlockTest extends CiviUnitTestCase {
     $this->assertEquals($pledgeBlock->id, $retrievePledgeBlock->id);
     $this->assertEquals($pledgeBlock->id, $getPledgeBlock['id']);
   }
+
 }
index e66d55bf2d0634f96db3b0719acdc2c140a3b10a..61a98e70bbf171cb724623f5cc5d1072d969686b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -267,4 +267,5 @@ class CRM_Pledge_BAO_PledgePaymentTest extends CiviUnitTestCase {
     $date = CRM_Pledge_BAO_PledgePayment::calculateNextScheduledDate($params, 3, '20080510');
     $this->assertEquals('20140510000000', $date);
   }
+
 }
index 06f27139bcfce8c06bd640c62f3ed746aafbed28..a31046a402019df2caef868d1ab7e33a8c926fab 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -131,4 +131,5 @@ class CRM_Pledge_BAO_PledgeTest extends CiviUnitTestCase {
 
     $this->assertEquals(count($pledgeId), 1, "Pledge was retrieved");
   }
+
 }
index 6005e476cb85b07323e80689bc2576b6e5a0c71e..92c07fbbec23d1d7cd20eb7f649922fab668babd 100644 (file)
@@ -59,6 +59,7 @@ class CRM_Queue_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Queue_AllTests
 
index 10b6f700730e3186d0711b44b79fbe9390f80c49..5d68259b116debb8a1d0ba02cf28298e5228162e 100644 (file)
@@ -59,6 +59,7 @@ class CRM_Queue_Queue_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Queue_Queue_AllTests
 
index 6b6982e5d86247b577842fad246643a30654c26b..21b918701aee366199df709d8c820085cc300bec 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
index 50d8d4b2a5dd4828490e4d1cea428c90f5b2215b..92dc67032b4b49380c42540355cf5cd01d8dcf4c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -288,4 +288,5 @@ class CRM_Queue_QueueTest extends CiviUnitTestCase {
     $this->assertEquals('a', $item->data['test-key']);
     $queue2->releaseItem($item);
   }
+
 }
index 75b305ab22525cc89c9a3a36486092f355f4db5e..e2c58931d207ebdc45d7a138100299835daeb9dc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -284,4 +284,5 @@ class CRM_Queue_RunnerTest extends CiviUnitTestCase {
     }
     return TRUE;
   }
+
 }
index 9ba0b8537060e169a599d5aacb2ba2a707873940..2ebe3436ece27b70bc8f4d21858a09493e9bee87 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviReportTestCase.php';
 
@@ -98,4 +98,5 @@ class CRM_Report_Form_Contribute_DetailTest extends CiviReportTestCase {
     $expectedOutputCsvArray = $this->getArrayFromCsv(dirname(__FILE__) . "/{$expectedOutputCsvFile}");
     $this->assertCsvArraysEqual($expectedOutputCsvArray, $reportCsvArray);
   }
+
 }
index 4c0438720a924a86246829570bb15a565a5c8296..edd28c3c2a616b218422d84e4fc294a0c25f7597 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviReportTestCase.php';
 
@@ -180,4 +180,5 @@ class CRM_Report_Form_TestCaseTest extends CiviReportTestCase {
     $expectedOutputCsvArray = $this->getArrayFromCsv(dirname(__FILE__) . "/{$expectedOutputCsvFile}");
     $this->assertCsvArraysEqual($expectedOutputCsvArray, $reportCsvArray);
   }
+
 }
index 0d9cdba84ef8a951ca51c3d26f04572f71974973..0cef8a8e564f037ed32ecb70f1522f88dda519f4 100644 (file)
@@ -43,4 +43,5 @@ class CRM_UF_Page_ProfileEditorTest extends CiviUnitTestCase {
     $this->assertTrue(empty($schema['ActivityModel']['schema']['street_address']));
 
   }
+
 }
index ea1b1d91fe4d3a456c587c71e4860c9f7ec636b4..e83e4b17164e5d7078072b5a626a04a9cd033a5b 100644 (file)
@@ -105,4 +105,5 @@ class CRM_Utils_API_ReloadOptionTest extends CiviUnitTestCase {
       );
     }
   }
+
 }
index 3a0fce936f45fec54482bf4656472f94e8babe5a..6b2ee68110a7a84efe68f4d14f0722bfec7a489c 100644 (file)
@@ -126,4 +126,5 @@ class CRM_Utils_ArrayTest extends CiviUnitTestCase {
     CRM_Utils_Array::remove($data, 'one', 'two', array('three', 'four'), 'five');
     $this->assertEquals($data, array('six' => 6));
   }
+
 }
index 2fba80953a98b9edc6fd477dae76db778bbee598..2f3ca5842d31b52ffd4f3abb5411a07db4888038 100644 (file)
@@ -59,6 +59,7 @@ class CRM_Utils_Cache_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class CRM_Utils_Cache_AllTests
 
index 44ee487895ef52011df5225bc64a430fdb02fdb7..abfff66be707090695086fa2c106bc4d90b1c087 100644 (file)
@@ -87,4 +87,5 @@ class CRM_Utils_Cache_SqlGroupTest extends CiviUnitTestCase {
     $this->assertEquals($fooValue, $c->get('foo')); // should work b/c value is fetched on demand
     $this->assertEquals($fooValue, $c->getFromFrontCache('foo')); // should work b/c value was fetched on demand
   }
+
 }
index 9f992fca531f034201f4f1765546731565360991..5b8912a28ad5a413df66775e15aa810004fd12b4 100644 (file)
@@ -19,4 +19,5 @@ class CRM_Utils_FileTest extends CiviUnitTestCase {
       ));
     }
   }
+
 }
index 2da47681e50f1654525fe6669225c9497c62734e..bc1e2139462f172dcd9c8c3bf183238c3c1bacd7 100644 (file)
@@ -43,4 +43,5 @@ class CRM_Utils_GlobalStackTest extends CiviUnitTestCase {
     $this->assertEquals(NULL, $_FOO['bang']);
     $this->assertEquals(1, $_EXTRA);
   }
+
 }
index bf3f11d0379b486d3866d8faa993f635a18a44f1..73dfa8aa46bf3501ccf9bb0a04352a87b69886cc 100644 (file)
@@ -65,10 +65,14 @@ class CRM_Utils_HookTest extends CiviUnitTestCase {
       $result
     );
   }
+
 }
 
-/* --- Library of test hook implementations ---- */
+/* --- Library of test hook implementations --- */
 
+/**
+ * Implements hook_civicrm_testRunHooks_outer().
+ */
 function hooktesta_civicrm_testRunHooks_outer() {
   $test = CRM_Utils_HookTest::$activeTest;
   $test->log[] = 'a-outer';
@@ -102,6 +106,9 @@ function hooktesta_civicrm_testRunHooks_merge() {
 
 // OMIT: function hooktestb_civicrm_testRunHooks_merge
 
+/**
+ * Implements hook_civicrm_testRunHooks_merge().
+ */
 function hooktestc_civicrm_testRunHooks_merge() {
   return array();
 }
index 56d77146247c91570788a53961a3e52e31620174..390c6d320bc2627f1d454aa45b2378704d54ce73 100644 (file)
@@ -62,4 +62,5 @@ class CRM_Utils_HtmlToTextTest extends CiviUnitTestCase {
       "Text Output did not match for $html"
     );
   }
+
 }
index 3be4a6009794638af845eddb8bc6c61faef3f9ea..43e7720065735cd79170d7178d19d044fb76ecfb 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -109,4 +109,5 @@ class CRM_Utils_JSTest extends CiviUnitTestCase {
     sort($actualStrings);
     $this->assertEquals($expectedStrings, $actualStrings);
   }
+
 }
index b3e685b2187eaa969b0c7c76a25a0b369a07f0f1..4eda414c2e64a7dff1c8a453b5e39af67e99e126 100644 (file)
@@ -58,4 +58,5 @@ class CRM_Utils_MailTest extends CiviUnitTestCase {
       $this->assertEquals($result, $value['result'], 'Expected encoding does not match');
     }
   }
+
 }
index 5ef2f47d8c250bd611f7552d28e2c9ed57ab8fa0..f448598500d124790513b0d8abfe888b9afc6078 100644 (file)
@@ -82,7 +82,7 @@ class CRM_Utils_Migrate_ImportExportTest extends CiviUnitTestCase {
       __DIR__ . '/fixtures/Contact-text.xml',
     );
 
-    /*
+    /* @codingStandardsIgnoreStart
     $cases[] = array(
       // CustomGroup params
       array(
@@ -94,7 +94,7 @@ class CRM_Utils_Migrate_ImportExportTest extends CiviUnitTestCase {
       // expectedXmlFilePath
       __DIR__ . '/fixtures/Contact-select.xml',
     );
-    */
+    @codingStandardsIgnoreEnd */
 
     $cases[] = array(
       // CustomGroup params
@@ -205,4 +205,5 @@ class CRM_Utils_Migrate_ImportExportTest extends CiviUnitTestCase {
       $this->assertEquals($expectValue, $customField[$expectKey]);
     }
   }
+
 }
index 81115a8eaf5704206a742057358804c571ea6a6e..b742d0389e6ae5026c0c15e304a3aea130277b72 100644 (file)
@@ -66,4 +66,5 @@ class CRM_Utils_NumberTest extends CiviUnitTestCase {
       "assert createTruncatedValue($value, ($sigFigs,$decFigs)) == $expectedValue"
     );
   }
+
 }
index 34967e5648bd5df6cb8f0927901262ac401da236..79e34ed6d50798a878daf4f2d2de8fdb0d5682be 100644 (file)
@@ -210,4 +210,5 @@ class CRM_Utils_QueryFormatterTest extends CiviUnitTestCase {
     $actualText = $formatter->format($text, $language);
     $this->assertEquals($expectedText, $actualText);
   }
+
 }
index 581183b2c7ba4ab15d3f80290b9e331fc5824513..83a2c7c409d63a1225b22e345a7d0dc51cb9cb17 100644 (file)
@@ -45,4 +45,5 @@ class CRM_Utils_SQL_InsertTest extends CiviUnitTestCase {
     $actual = trim((preg_replace('/[ \r\n\t]+/', ' ', $actual)));
     $this->assertEquals($expected, $actual, $message);
   }
+
 }
index 7f1c48902e2cf25ad7c6a169756a7bdc4f4726d4..a85b86f339ce8e5cbb26d9bcc1dbf20d32b3a237 100644 (file)
@@ -171,4 +171,5 @@ class CRM_Utils_SQL_SelectTest extends CiviUnitTestCase {
     $actual = trim((preg_replace('/[ \r\n\t]+/', ' ', $actual)));
     $this->assertEquals($expected, $actual, $message);
   }
+
 }
index 72397906710c4791c186a8b6c9094ccac0133068..919ecd9ca08f070c6061397d48120bb731a92f13 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
@@ -156,4 +156,5 @@ class CRM_Utils_SignerTest extends CiviUnitTestCase {
       $this->assertTrue(TRUE, 'Validation yielded expected result');
     }
   }
+
 }
index 7506bdac9a46a401764bd6d829a96518ed6d7bf1..64c6fe0fab28734981fe1cceab08fb7a5dd8bc43 100644 (file)
@@ -35,4 +35,5 @@ class CRM_Utils_SystemTest extends CiviUnitTestCase {
     $this->assertEquals('http://example.com/', CRM_Utils_System::evalUrl('http://example.com/'));
     $this->assertEquals('http://example.com/?cms=UnitTests', CRM_Utils_System::evalUrl('http://example.com/?cms={uf}'));
   }
+
 }
index b767a1f43942b88b7158922861f4d1fe70adde47..e2ef226c9796fe955c404be48c8141b4fcae576d 100644 (file)
@@ -29,4 +29,5 @@ class CRM_Utils_TimeTest extends CiviUnitTestCase {
     $actual = CRM_Utils_Time::isEqual($timeB, $timeA, $threshold);
     $this->assertEquals($expectedResult, $actual);
   }
+
 }
index 923bbe27c49b36b35425124517c51dd3af89fa66..32ee27a4b6babf4cc51306804f011c68412c26ca 100644 (file)
@@ -40,4 +40,5 @@ class CRM_Utils_TypeTest extends CiviUnitTestCase {
       array('-10foo', 'Positive', NULL),
     );
   }
+
 }
index 5ad3cb533ed475b3e356cf5c76b83977fefa7542..1361508dae4706443e55c0312864553c032ccf0a 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
@@ -175,4 +175,5 @@ class CRM_Utils_ZipTest extends CiviUnitTestCase {
     $this->assertTrue($zip->open($this->file));
     $this->assertEquals($expectedResult, CRM_Utils_Zip::guessBaseDir($zip, $expectedKey));
   }
+
 }
index 32c3799fec0f8ab2cecb673b69c047d8cac47aec..2977d01a851ea4a3a3ee717eed47c6d5c6c8f8b9 100644 (file)
@@ -175,4 +175,5 @@ class CRM_Utils_versionCheckTest extends CiviUnitTestCase {
 
     return $data;
   }
+
 }
index ab1cebd0354926a04f1e875b141335f610df6c29..cb8f4e5ecdc091b0989a0253825ad47acbfc0a22 100644 (file)
@@ -107,4 +107,5 @@ class KernelTest extends \CiviUnitTestCase {
       }, 2 * Events::W_EARLY);
     }
   }
+
 }
index f2e068f6188dd079e1e8bd3539bac268e6f2cf27..1c281b5144c78ef26f2d04e6a40833bf0c6eee63 100644 (file)
@@ -36,7 +36,7 @@ class RequestTest extends \CiviUnitTestCase {
         'option.limit' => 15,
         'option.foo' => array('bar'),
         'options' => array('whiz' => 'bang'),
-        'optionnotreally' => 'data'
+        'optionnotreally' => 'data',
       ), // requestParams
       array('limit' => 15, 'foo' => array('bar'), 'whiz' => 'bang'), // expectedOptions
       array('optionnotreally' => 'data'), // expectedData
@@ -48,7 +48,7 @@ class RequestTest extends \CiviUnitTestCase {
         'return' => array('field1', 'field2'),
         'return.field3' => 1,
         'return.field4' => 0,
-        'returnontreally' => 'data'
+        'returnontreally' => 'data',
       ), // requestParams
       array('return' => array('field1', 'field2', 'field3')), // expectedOptions
       array('returnontreally' => 'data'), // expectedData
index 8d82c8e482cba71dfa6323375460f5296d375358..e10579f5612407e00acad7c7ec33cee69213ec85 100644 (file)
@@ -150,13 +150,13 @@ class DynamicFKAuthorizationTest extends \CiviUnitTestCase {
       'FakeFile',
       'create',
       array(),
-      "/Mandatory key\\(s\\) missing from params array: 'id' or 'entity_table/"
+      "/Mandatory key\\(s\\) missing from params array: 'id' or 'entity_table/",
     );
     $cases[] = array(
       'FakeFile',
       'get',
       array(),
-      "/Mandatory key\\(s\\) missing from params array: 'id' or 'entity_table/"
+      "/Mandatory key\\(s\\) missing from params array: 'id' or 'entity_table/",
     );
 
     $cases[] = array('FakeFile', 'create', array('entity_table' => 'unknown'), '/Unrecognized target entity/');
@@ -204,4 +204,5 @@ class DynamicFKAuthorizationTest extends \CiviUnitTestCase {
     ), TRUE));
     $this->assertRegExp($expectedError, $result['error_message']);
   }
+
 }
index 167d9e0751815018e2d4b3ba48fd0c13170b25fe..bf07cabdc72accbb38da0ac116dfe817b6d673c5 100644 (file)
@@ -115,4 +115,5 @@ class TransactionSubscriberTest extends \CiviUnitTestCase {
       1 => array($result['id'], 'Integer'),
     ));
   }
+
 }
index 9a69193d4584d29c95477c93c58f0857403bf4a4..8ba353282117d9fe5041ccecd5f123d9472fafae 100644 (file)
@@ -59,6 +59,7 @@ class Civi_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class AllTests
 
index a3b084b0aa4cfd5358b66774085ffd70f2029507..49bbc75c78ff7cc7afb7e3d2b4beb220e2d7cfd1 100644 (file)
@@ -118,4 +118,5 @@ class SequenceListenerTest extends \CiviCaseTestCase {
   public static function ag($array, $key) {
     return $array[$key];
   }
+
 }
index dc64f5d407cfdcd0a962f7faf1e62dd21e533c5e..15cd2e16849fa9e1442d874d066b0429a0c641fd 100644 (file)
@@ -48,4 +48,5 @@ class AuthorizeNet extends PHPUnit_Framework_Testcase {
     }
     return $result;
   }
+
 }
index 2530261397d8d9e75db9f183d0e23bdfdfe8d34c..ce6f032591b16e7cddb8a8264265d8f719594769 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -140,4 +140,5 @@ class CiviCaseTestCase extends CiviUnitTestCase {
    */
   public function hook_caseTypes(&$caseTypes) {
   }
+
 }
index dc056dbc1c14cadcba2658e912cce789b2a0afb8..91e859da2a4b19e3bcef6dbd7eca41d8a45d1afc 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -189,4 +189,5 @@ class CiviDBAssert {
       }
     }
   }
+
 }
index 8eda18b962be8a22c011cc4ded54c79e3079f5ee..69399e82a8e320540ae79c8a129cb676c8d1a9b4 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *  Mail utils for use during unit testing to allow retrieval
@@ -322,4 +322,5 @@ class CiviMailUtils extends PHPUnit_Framework_TestCase {
     $this->_ut->assertNotEmpty($mail, 'Cannot parse mail');
     return $mail[0];
   }
+
 }
index 6a928d5cc67da8fd0c3dfa8a6d73b41b96f8ebfc..5d54fee994796a39ced8e5dfc1ab0392c560fdda 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -164,4 +164,5 @@ class CiviReportTestCase extends CiviUnitTestCase {
     }
     return $result;
   }
+
 }
index d11c92465442f059587f17a0ffee680447fd6ce6..6c279a332bd33248b3bc315957fa39eca699e756 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *  Include configuration
@@ -2351,4 +2351,5 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
       $this->fail($msg);
     }
   }
+
 }
index 5c073aa057ef786c939b686143b132be02bca664..ba0fdc77b804facdc859d68577a6201642ff4e89 100644 (file)
@@ -214,4 +214,5 @@ class CiviTestSuite extends PHPUnit_Framework_TestSuite {
 
     // print_r(array($prefix, 'addTests' => $addTests, 'addAllTests' => $addAllTests, 'addTestSuites' => $addTestSuites));
   }
+
 }
index c2b6bbee70af62d488e092adbacdc6c3e664fd9d..0fdbf562baf07545b4b72555143f13d2a47d3d85 100755 (executable)
@@ -3269,4 +3269,5 @@ AND    ( TABLE_NAME LIKE 'civicrm_value_%' )
       ob_end_clean();
     }
   }
+
 }
index c3a4ce49b90a45ffb5f2bc7a71ca158a7059efed..8e89e497428aa445c0793b0bdfa2a847c9c802e7 100644 (file)
@@ -98,4 +98,5 @@ class Contact extends CiviUnitTestCase {
     require_once 'CRM/Contact/BAO/Contact.php';
     return CRM_Contact_BAO_Contact::deleteContact($contactID);
   }
+
 }
index 4c2154331afb4dc4169d959993a94a3cc0f69eb4..9562a0bf73cfb1799179a9da0ce1d0f724cd8d68 100644 (file)
@@ -57,4 +57,5 @@ class ContributionPage extends PHPUnit_Framework_Testcase {
     }
     return $result;
   }
+
 }
index 8e85ce566049738ff0d81abebe9d600e54882913..18c643125b3e084178098310e43e6bb99d5ac9b2 100644 (file)
@@ -118,4 +118,5 @@ class Custom extends CiviUnitTestCase {
     $deleteCustomGroup = CRM_Core_BAO_CustomGroup::deleteGroup($params, TRUE);
     return $deleteCustomGroup;
   }
+
 }
index b243622c320f7ab000cd3b1c440f85f151391f7b..726b432424fc19b20fa53029e35b5d72c31a9b4a 100644 (file)
@@ -43,4 +43,5 @@ class Event extends PHPUnit_Framework_Testcase {
   public static function delete($eventId) {
     return CRM_Event_BAO_Event::del($eventId);
   }
+
 }
index f6ec88e8c656b8cde7d487e01629b1785f160dde..16122bdaed4fea584adb80444c28862d36d9c1df 100644 (file)
@@ -79,4 +79,5 @@ class Membership extends PHPUnit_Framework_Testcase {
       $dao->delete();
     }
   }
+
 }
index 64d8023d96afbbc1770b81c0b9fbfed5ec3051fe..64524eba495d6a1b10263a99fc89bd393707e0ca 100644 (file)
@@ -42,4 +42,5 @@ class Participant extends PHPUnit_Framework_Testcase {
     require_once 'CRM/Event/BAO/Participant.php';
     return CRM_Event_BAO_Participant::deleteParticipant($participantId);
   }
+
 }
index c01369f90e7cebb8b0090c2bf94a3fc4858cfff8..e9fd1c8adab34cec442a9524ae9d7de222d4d078 100644 (file)
@@ -56,4 +56,5 @@ class PaypalPro extends PHPUnit_Framework_Testcase {
     }
     return $result;
   }
+
 }
index 2ec2354a06166a216a5126e609f30fb4d22b0837..e23312f52c02a4dcf67d8f2a0af75dafb41991bd 100644 (file)
@@ -27,7 +27,7 @@ require_once $GLOBALS['base_dir'] . '/vendor/autoload.php';
 
 /*
 require $GLOBALS['base_dir'] . DIRECTORY_SEPARATOR .
-        'packages' . DIRECTORY_SEPARATOR .
-        'PHPUnit' . DIRECTORY_SEPARATOR .
-        'Autoload.php';
-*/
+'packages' . DIRECTORY_SEPARATOR .
+'PHPUnit' . DIRECTORY_SEPARATOR .
+'Autoload.php';
+ */
index 9894dd728812bc5357480a8e65dae4d2fb8cf5b2..9bfa80f8dbf3fe74681de6caec9b8482a99e6d45 100644 (file)
@@ -32,4 +32,5 @@ class EnvTests extends \PHPUnit_Framework_TestSuite {
     }
     return $suite;
   }
+
 }
index a35dc0487bcaf5384456d0fd8b559f63895da0b4..6a75d3c4c18696a025fb6949d68bc7377c915816 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * @file HelloTest.php
@@ -82,4 +82,5 @@ class HelloTest extends PHPUnit_Framework_TestCase {
     $expected = 'hello';
     $this->assertEquals($result, $expected);
   }
+
 }
index cfc7d1dae4472f6163d1f9060f27bdf2e8d1e0f3..6bba8576e2f14dd1d14cb8f52b800ecaed8ade28 100644 (file)
@@ -132,6 +132,7 @@ class Utils {
      ******/
     return TRUE;
   }
+
 }
 // class Utils
 
index fc0e98b81fb76bcb796c2208c6023f0a420da318..cffa15aa98ec6823901f3b3f343de25611e0f4e8 100755 (executable)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -176,4 +176,5 @@ class WebTest_ACL_AssignUsersToRolesTest extends CiviSeleniumTestCase {
     $this->assertElementNotContainsText("xpath=//form[@id='Advanced']/div[3]/div/div", "No matches found for");
     $this->verifyText("xpath=//div[@class='crm-search-results']//table/tbody/tr[1]/td[8]", 'United States');
   }
+
 }
index a0d9d5fffd5879d0f19d2363b2fe2d1be9ea9a92..cd4ab3f6d79c2833be329350a68d19be9d61183a 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Description of AddRecurringActivityTest
index b0306389a1fd43a1c74bd6b8af1e292be5230894..e6d1b9be30dd20419dbb98797ccd9799344f5ff8 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -228,4 +228,5 @@ class WebTest_Activity_ContactContextAddTest extends CiviSeleniumTestCase {
       $this->assertTrue($this->isElementPresent("xpath=//div[@class='crm-search-results']/table/tbody//tr/td[5]/a[text()='$contact']"));
     }
   }
+
 }
index 688f715268b545d9ce93e07f3e19dd4011bed880..52f53810ae72bc92719e3d1703fdf51ea342cf17 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 require_once 'CiviTest/CiviMailUtils.php';
@@ -119,4 +119,5 @@ class WebTest_Activity_IcalTest extends CiviSeleniumTestCase {
       }
     }
   }
+
 }
index bf00e269a707dc92a5cd999d3f0a467ef3510202..cf39428cef055a5b0549fbdf52bff377da79e493 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -186,4 +186,5 @@ class WebTest_Activity_StandaloneAddTest extends CiviSeleniumTestCase {
       $this->verifyText("xpath=//table/tbody/tr/td{$xpathPrefix}[text()='{$label}']/../following-sibling::td/span", preg_quote($value), 'In line ' . __LINE__);
     }
   }
+
 }
index 4594b123b4b5cc1279b5bcf7bde2c5851efc3dd4..73d27b7a05308d99dddc94ddcbaf38974eed87cb 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -193,4 +193,5 @@ class WebTest_Admin_CustomAddTest extends CiviSeleniumTestCase {
     $this->assertElementContainsText('customData', $radioOptionLabel1);
     $this->assertElementContainsText('customData', $radioOptionLabel2);
   }
+
 }
index 628d97ace6219ddbd71ef66e4a5a49bd31c06fd5..5c715d92ee6820f2ad479d348562215578904181 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
@@ -166,4 +166,5 @@ class WebTest_Admin_CustomAddTestSameField extends CiviSeleniumTestCase {
     $this->waitForText('crm-notification-container', "Custom field '$radioFieldLabel' has been saved.");
 
   }
+
 }
index 9f6e4c3185e0cab15372c86579df80bf35b6fe22..9bb1ae50df6371fc70a081cf400f501800436b50 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -86,4 +86,5 @@ class WebTest_Admin_Form_ScheduleReminderTest extends CiviSeleniumTestCase {
     $this->assertEquals('1', $this->getSelectedValue('id=recipient'));
     $this->assertChecked('is_active');
   }
+
 }
index 55cbe9251f81fd7f8f0c89d58480235e7a9e47e2..d5f0370e1f4e76ce1280b3adbe6b044a79816ac7 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -58,4 +58,5 @@ class WebTest_Admin_Form_Setting_LocalizationTest extends CiviSeleniumTestCase {
       array_push($this->verificationErrors, $e->toString());
     }
   }
+
 }
index 3f25895f60d0ce6577b151d583aef854b0f0a510..773923e6385cac8361ed4f8139ebc0b63880d002 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -79,15 +79,15 @@ class WebTest_Admin_MoveCustomDataTest extends CiviSeleniumTestCase {
     $post_move_values[$cid_to_missing]['source'] = $this->_loadDataFromApi($cid_to_missing, $from_group_id);
     $post_move_values[$cid_to_missing]['destination'] = $this->_loadDataFromApi($cid_to_missing, $to_group_id);
 
-    //Make sure that only the appropriate values have changed
+    // Make sure that only the appropriate values have changed.
     foreach (array(
                $cid_all,
                $cid_from_missing,
-               $cid_to_missing
+               $cid_to_missing,
              ) as $cid) {
       foreach (array(
                  'source',
-                 'destination'
+                 'destination',
                ) as $fieldset) {
         foreach ($pre_move_values[$cid][$fieldset] as $id => $value) {
           if ($id != $field_to_move) {
@@ -280,7 +280,7 @@ class WebTest_Admin_MoveCustomDataTest extends CiviSeleniumTestCase {
           'option_07',
           'option_08',
           'option_09',
-          'option_10'
+          'option_10',
         ),
       ),
       'integer' => array(
@@ -403,7 +403,7 @@ class WebTest_Admin_MoveCustomDataTest extends CiviSeleniumTestCase {
     //get the custom id of the custom field that was just created
     $results = $this->webtest_civicrm_api("CustomField", "get", array(
         'label' => $fieldLabel,
-        'custom_group_id' => $group_id
+        'custom_group_id' => $group_id,
       ));
     //While there _technically_ could be two fields with the same name, its highly unlikely
     //so assert that exactly one result is return
@@ -417,7 +417,7 @@ class WebTest_Admin_MoveCustomDataTest extends CiviSeleniumTestCase {
    * @param string $prefix
    * @param array $values
    */
-  function _createFieldOptions($count = 3, $prefix = "option", $values = array()) {
+  public function _createFieldOptions($count = 3, $prefix = "option", $values = array()) {
     // Only support up to 10 options on the creation form
     $count = $count > 10 ? 10 : $count;
 
@@ -450,7 +450,7 @@ class WebTest_Admin_MoveCustomDataTest extends CiviSeleniumTestCase {
     $field_ids = array_keys($fields);
     $contact = $this->webtest_civicrm_api("Contact", "get", array(
         'contact_id' => $contact_id,
-        'return.custom_' . $field_ids[0] => 1
+        'return.custom_' . $field_ids[0] => 1,
       ));
     $group = $this->webtest_civicrm_api("CustomGroup", "get", array('id' => $group_id, 'return.table_name' => 1));
 
@@ -491,4 +491,5 @@ class WebTest_Admin_MoveCustomDataTest extends CiviSeleniumTestCase {
     //assert success
     $this->waitForText('crm-notification-container', "has been updated");
   }
+
 }
index eb04a96994089bf21a18ad6284ce346121330beb..ffcb7e62a48ecebb5661a6f8b0aec7cf2045e23e 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -122,4 +122,5 @@ class WebTest_Admin_RelationshipTypeAddTest extends CiviSeleniumTestCase {
 
     $this->waitForText('crm-notification-container', 'Label already exists in Database.');
   }
+
 }
index 1f9287e9d7a57ab6b765b559fdeeabaaac3ea7b7..ba63463751fc9f13778a56713a16363490f724e5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *  Include parent class definition
@@ -54,4 +54,5 @@ class WebTest_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
index 03700f51adce0b05ebb3f4b40afbbd470ac65fb7..a26f74f112814eadfb2eae080ed1446143a7924c 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -205,4 +205,5 @@ class WebTest_Campaign_ActivityTest extends CiviSeleniumTestCase {
     // verify Activity created
     $this->verifyText("xpath=//form[@id='Activity']/div[2]/table/tbody/tr[5]/td[2]/span", $campaignTitle);
   }
+
 }
index 2722f616dba8c8a44e6005a7bfa59238b8ff4308..3c6634cde8284bfb6271bb03631c5d01f01f9ac9 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -93,4 +93,5 @@ class WebTest_Campaign_CampaignDescriptionTest extends CiviSeleniumTestCase {
     $pageUrl = array('url' => 'campaign/add', 'args' => 'reset=1');
     $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
   }
+
 }
index a77a7bc5a35f1dea4f731819975b704a656e70a1..0f7cd8f146e0094883523f73c46abac31f2acaf3 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -274,4 +274,5 @@ class WebTest_Campaign_MailingTest extends CiviSeleniumTestCase {
     $this->assertElementContainsText('mailing_event', "mailino$firstName@mailson.co.in");
     //------end delivery verification---------
   }
+
 }
index 94deee75944230f02e336e7b9e26068b31a226d9..b6db393cda3405c0c61f80ebe367f8e4238bcdfa 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -168,4 +168,5 @@ class WebTest_Campaign_MembershipTest extends CiviSeleniumTestCase {
 
     $this->webtestVerifyTabularData(array('Campaign' => $campaignTitle));
   }
+
 }
index 84c71937f50fa5d4703fc24280177d540634328d..214d313f0cc3376f56a206e60bd0d6ec1c8b27c1 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -269,4 +269,5 @@ class WebTest_Campaign_OfflineContributionTest extends CiviSeleniumTestCase {
 
     $this->offlineContributionTest($pastCampaignTitle, $campaignId, TRUE);
   }
+
 }
index 58578d4fabc6485ebaca405d6f6823a4088b9c59..ee4cd2daeb4c3bbaa3a9f69fb3e0ef24241fcb45 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
index 354c7e651ddbb1a74c5d6b2952b5a91684577cd6..6ad0fe6df2ff364212be1578ccd571790ee60524 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
index d0ee478fd22357097c0770416d29378919bb78c3..aca32ca74bb54740a4173b4b1dbcb47482504ec1 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -362,4 +362,5 @@ class WebTest_Campaign_OnlineEventRegistrationTest extends CiviSeleniumTestCase
     $this->waitForElementPresent("_qf_Participant_cancel-bottom");
     $this->assertElementContainsText("xpath=//form[@id='Participant']/div[2]/div/table[@class='form-layout-compressed']/tbody/tr[4]/td[2]/select", "$campaignTitle");
   }
+
 }
index 08f3bf7688f42b07050e4ad4fa1f602dfd5280a2..6a10e2737772ab58835055618133c3c361e85d88 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -270,4 +270,5 @@ class WebTest_Campaign_PetitionUsageScenarioTest extends CiviSeleniumTestCase {
       $this->verifyText("xpath=//div[@class='crm-search-results']/table/tbody/tr[2]/td[$column]/", preg_quote($value));
     }
   }
+
 }
index bd38f023edc656ab335fabfe0c2125028bcd3a2e..e52db1663bd9c27486919a3475627b6088cd1c6c 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -181,4 +181,5 @@ class WebTest_Campaign_PledgeTest extends CiviSeleniumTestCase {
     // verify Activity created
     $this->verifyText("xpath=//form[@id='PledgeView']//table/tbody/tr[8]/td[2]", preg_quote($campaignTitle));
   }
+
 }
index fc6ec3850916923f3180eba893dea2b8c0553112..85fc173580b68147dcef48c05ed6f4df57484cc7 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -617,4 +617,5 @@ class WebTest_Campaign_SurveyUsageScenarioTest extends CiviSeleniumTestCase {
       preg_quote("$surveyTitle - Respondent Reservation")
     );
   }
+
 }
index e3d1f94d4fa5180f26e7ebcbf5782a44fb7392c4..e1a6223fb14741869d1ef063c2b3de64766a22f9 100644 (file)
@@ -47,7 +47,7 @@ class WebTest_Case_ActivityToCaseTest extends CiviSeleniumTestCase {
       'edit-2-access-all-cases-and-activities',
       'edit-2-access-my-cases-and-activities',
       'edit-2-administer-civicase',
-      'edit-2-delete-in-civicase'
+      'edit-2-delete-in-civicase',
     );
     $this->changePermissions($permission);
 
@@ -98,7 +98,7 @@ class WebTest_Case_ActivityToCaseTest extends CiviSeleniumTestCase {
       'edit-2-access-all-cases-and-activities',
       'edit-2-access-my-cases-and-activities',
       'edit-2-administer-civicase',
-      'edit-2-delete-in-civicase'
+      'edit-2-delete-in-civicase',
     );
     $this->changePermissions($permission);
 
@@ -422,4 +422,5 @@ class WebTest_Case_ActivityToCaseTest extends CiviSeleniumTestCase {
 
     return array($radioOptionLabel1, "custom_{$textFieldId}_-1");
   }
+
 }
index 0ebe8fbf7630f3f97e2ed747a04a7a5421bfa2cf..5c0d3be22fccb42c61c9bbf6353bda8a9b96efcc 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -47,7 +47,7 @@ class WebTest_Case_AddCaseTest extends CiviSeleniumTestCase {
       'edit-2-access-all-cases-and-activities',
       'edit-2-access-my-cases-and-activities',
       'edit-2-administer-civicase',
-      'edit-2-delete-in-civicase'
+      'edit-2-delete-in-civicase',
     );
     $this->changePermissions($permission);
 
@@ -155,7 +155,7 @@ class WebTest_Case_AddCaseTest extends CiviSeleniumTestCase {
       'edit-2-access-all-cases-and-activities',
       'edit-2-access-my-cases-and-activities',
       'edit-2-administer-civicase',
-      'edit-2-delete-in-civicase'
+      'edit-2-delete-in-civicase',
     );
     $this->changePermissions($permission);
 
@@ -299,4 +299,5 @@ class WebTest_Case_AddCaseTest extends CiviSeleniumTestCase {
     $this->verifyText("xpath=//table[@class='caseSelector']/tbody//tr/td[3]/a", $firstName);
     $this->verifyText("xpath=//table[@class='caseSelector']/tbody//tr/td[6]", $caseTypeLabel);
   }
+
 }
index 88f42e0a64fcb0a92064795cead4c65489833c71..c744e5c5e0c6bab893a5dfd4692d88e3ea777fcb 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -143,4 +143,5 @@ class WebTest_Case_AddCaseTypeTest extends CiviSeleniumTestCase {
 
     $this->verifyText("xpath=//table/tbody//tr/td[contains(text(),'$editCaseTypeLabel')]", $editCaseTypeLabel);
   }
+
 }
index fd119a6d797f5f1b29a113d804a05c67ce01d320..d2b98e56a7ac217c4bcee1d2a33e595e40896407 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -435,4 +435,5 @@ class WebTest_Case_CaseCustomFieldsTest extends CiviSeleniumTestCase {
     $this->waitForPageToLoad($this->getTimeoutMsec());
     $this->assertElementContainsText('crm-container', '1 Contact');
   }
+
 }
index f8a5403564d11b0b159bfa2b400afb43287d36ca..b7f441c938e50f54b366999ea9c80f8e10820948 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -123,4 +123,5 @@ class WebTest_Case_CaseDashboardTest extends CiviSeleniumTestCase {
     $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.crm-form-submit");
     $this->assertTrue($this->isChecked("name=case_owner value=2"), 'Drilldown on dashboard summary cells not properly setting search form value to my cases.');
   }
+
 }
index 8cd453677e2dce2826c130f91ea9d99cb6e23894..2e283b3abe6938a8f73a29fdda5c19f3ac8132e8 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -123,4 +123,5 @@ class WebTest_Contact_AddCmsUserTest extends CiviSeleniumTestCase {
     $this->assertElementContainsText('css=.crm-search-results', 'Dumfries');
     $this->assertElementContainsText('css=.crm-search-results', '1234');
   }
+
 }
index 77225702bd51a0a0046b478058704ba1fc1bec41..863ad35113dd8d5e7a94247a5f3dcb349605b494 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -67,4 +67,5 @@ class WebTest_Contact_AddContactsToEventAdvancedSearchTest extends CiviSeleniumT
     $this->click('_qf_Participant_upload-bottom');
     $this->waitForPageToLoad($this->getTimeoutMsec());
   }
+
 }
index 17daa2834e7367dc5f3339ad9096b4294af268b2..b553f665b3d8d4c7c59b602dc4c1d5f971bb45ba 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -502,4 +502,5 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
     $this->assertElementContainsText('DataTables_Table_0', 'Employee of');
     $this->assertElementContainsText('DataTables_Table_0', 'Household Member of');
   }
+
 }
index 637c3d6757536fdb68dcdcebde5b061e46835092..44a698e3b05d5c766f283c1dfc0c81d640c5c11f 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -63,4 +63,5 @@ class WebTest_Contact_AddViaProfileTest extends CiviSeleniumTestCase {
 
     $this->assertElementContainsText('css=.msg-text', "Your information has been saved.");
   }
+
 }
index 26b59d4d1d6d0d3ad354ac9c819e31ff864000da..155895ef035cde9357ffe8c883f784e662831a32 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -156,4 +156,5 @@ class WebTest_Contact_AddressParsingTest extends CiviSeleniumTestCase {
       }
     }
   }
+
 }
index 6d870b741430328ed22716ca28900dd962791b01..6de786b1591e5bd5136dce29bf2e0269cae1fff9 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -362,4 +362,5 @@ class WebTest_Contact_AdvanceSearchPaneTest extends CiviSeleniumTestCase {
 
     return $_advance_search_panes;
   }
+
 }
index 9b0ffb6b0cc6702cbea21532ee6b1d3459bbc4b5..6e967e57d153c561a97821d3148828446778915d 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -228,4 +228,5 @@ class WebTest_Contact_AdvanceSearchPrivacyOptionsTest extends CiviSeleniumTestCa
     $this->waitForText('crm-notification-container', "{$firstName} {$lastName} has been created.");
 
   }
+
 }
index 27256eb8a0ccfa0ce45fcf202fbfc7f1c99a05f9..19bedfb850b2190f24b0885c81a535e155948a9b 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -516,4 +516,5 @@ class WebTest_Contact_AdvancedSearchTest extends CiviSeleniumTestCase {
     $this->clickLink("_qf_Contact_upload_view", 'css=.crm-summary-display_name');
     $this->assertElementContainsText('css=.crm-summary-display_name', "$firstName adv$firstName");
   }
+
 }
index de7a879b4fec648b146044b2e4bd21b847678f64..6ab0f40817806c5d903d7e540a7517eaf6cbeacf 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -172,4 +172,5 @@ class WebTest_Contact_ContactReferenceFieldTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent("css=div.select2-result-label");
     $this->assertElementContainsText("css=div.select2-result-label", "{$org1}@example.com");
   }
+
 }
index 5e4ab7eac9628b2cb6f450390d26de38e50505a2..0a253ac214276c861e2b8bb1cb141b8ce4321bdb 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -149,4 +149,5 @@ class WebTest_Contact_ContactTagTest extends CiviSeleniumTestCase {
     $this->waitForPageToLoad($this->getTimeoutMsec());
     $this->waitForText('tags', "tagset1, tagset2");
   }
+
 }
index 815c946134fd4bb69573cb813f171b50ff4f4277..2e5144d1af6ec559ac587fcd9589a323d8e2494b 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -37,8 +37,11 @@ class WebTest_Contact_CreateCmsUserFromContactTest extends CiviSeleniumTestCase
     parent::setUp();
   }
 
-  //Test that option to create a cms user is present on a contact who does not
-  //have a cms account already( in this case, a new contact )
+  /**
+   * Test that option to create a cms user is present on a contact who
+   * does not have a cms account already (in this case, a new
+   * contact).
+   */
   public function testCreateContactLinkPresent() {
 
     //login
@@ -56,8 +59,10 @@ class WebTest_Contact_CreateCmsUserFromContactTest extends CiviSeleniumTestCase
     $this->assertElementContainsText("css=#actions li.crm-contact-user-record", "Create User Record", "Create User Record link not in action menu of new contact");
   }
 
-  //Test that the action link is missing for users who already have a contact
-  //record. The contact record for drupal user 1 is used
+  /**
+   * Test that the action link is missing for users who already have a
+   * contact record. The contact record for drupal user 1 is used.
+   */
   public function testCreateContactLinkMissing() {
 
     //login
@@ -78,7 +83,9 @@ class WebTest_Contact_CreateCmsUserFromContactTest extends CiviSeleniumTestCase
     $this->assertElementNotContainsText("css=#actions li.crm-contact-user-record", "Create User Record", "Create User Record link not in action menu of new contact");
   }
 
-  //Test the ajax "check username availibity" link when adding cms user
+  /**
+   * Test the ajax "check username availibity" link when adding cms user.
+   */
   public function testCheckUsernameAvailability() {
     $this->webtestLogin('admin');
 
@@ -101,7 +108,9 @@ class WebTest_Contact_CreateCmsUserFromContactTest extends CiviSeleniumTestCase
     $this->assertElementContainsText("msgbox", "This username is currently available", "Available username is indicated as being taken");
   }
 
-  //Test form submission when the username is taken
+  /**
+   * Test form submission when the username is taken.
+   */
   public function testTakenUsernameSubmission() {
 
     //login
@@ -125,7 +134,9 @@ class WebTest_Contact_CreateCmsUserFromContactTest extends CiviSeleniumTestCase
     $this->assertTrue($results['count'] == 0);
   }
 
-  //Test form sumbission when user passwords dont match
+  /**
+   * Test form sumbission when user passwords dont match.
+   */
   public function testMismatchPasswordSubmission() {
 
     //login
@@ -177,7 +188,9 @@ class WebTest_Contact_CreateCmsUserFromContactTest extends CiviSeleniumTestCase
     $this->assertTrue($results['count'] == 0);
   }
 
-  //Test a valid (username unique and passwords match) submission
+  /**
+   * Test a valid (username unique and passwords match) submission.
+   */
   public function testValidSubmission() {
 
     //login
@@ -230,4 +243,5 @@ class WebTest_Contact_CreateCmsUserFromContactTest extends CiviSeleniumTestCase
 
     return array($cid, $firstName, $lastName, $email);
   }
+
 }
index 48b7154a36446738c14dc868b7202a95ba8c565b..d9ec8b7d772b018398f5248c9d999cfd98d993ed 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
index 71e8111021f9a690ee9704c70c40b014fcc0a4d5..1f588b8cf8c824073efed0f18effcbc1c1466b1b 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -118,4 +118,5 @@ class WebTest_Contact_DeceasedContactsAdvancedSearchTest extends CiviSeleniumTes
     $this->select('group_id', "{$groupName}");
     $this->click('_qf_GroupContact_next');
   }
+
 }
index 8b8c58b47df4c70efc59c26890e3dad24898e47e..c3eaf8b49ebc92c20ac8b483297b236e4f61c080 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -87,4 +87,5 @@ class WebTest_Contact_DupeContactTest extends CiviSeleniumTestCase {
 
     $this->assertElementContainsText("css=.notify-content", "Please correct the following errors in the form fields below: One matching contact was found. You can View or Edit the existing contact.");
   }
+
 }
index 7d12b57d9b3afd06d21217dae5339a05ee836227..7d09392da4be0ef9e821ac064c8f0a3a897c2b38 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -112,4 +112,5 @@ class WebTest_Contact_EditContactTest extends CiviSeleniumTestCase {
     $this->assertTextPresent("2342322222  ext. 198");
 
   }
+
 }
index d726ad491eadcd4ca6368129d321573bc829003d..d37f48b98c99e087bdc40bb47ddf9d3ed7848f2f 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -278,4 +278,5 @@ class WebTest_Contact_GroupAddTest extends CiviSeleniumTestCase {
     $this->waitForPageToLoad($this->getTimeoutMsec());
     $this->assertTrue($this->isElementPresent("xpath=//table/tbody//tr/td[3]/a[text()='{$lastName}, {$firstName}']"));
   }
+
 }
index 9bec1e2f303b35b1a3e0cd7784f2f83d564a03b9..72fccbdb2156b89ae2247cb5b61d09c7756a1eaf 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -350,4 +350,5 @@ class WebTest_Contact_InlineFieldsEditTest extends CiviSeleniumTestCase {
       }
     }
   }
+
 }
index 05d14983db57c5844aa2cf24af45df64b1417ed3..79e736f0de646768ec81707c035c139c72a27904 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -600,7 +600,8 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
     $this->assertTrue(
       (bool) preg_match("/^This will run the batch merge process on the listed duplicates. The operation will run in safe mode - only records with no direct data conflicts will be merged. Click OK to proceed if you are sure you wish to run this operation./",
         $this->getConfirmation()
-      ));
+      )
+    );
     $this->chooseOkOnNextConfirmation();
     $this->waitForPageToLoad($this->getTimeoutMsec());
     $this->waitForElementPresent('civicrm-footer');
@@ -1003,4 +1004,5 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
     $this->assertElementNotContainsText("address-block-2", "Birmingham");
     $this->assertElementNotContainsText("address-block-2", "3456");
   }
+
 }
index f6e2af0cba86b2624ce626b2b9072da613f1b77b..9237ad11e134955d93d2c0c083b3170181168917 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -251,4 +251,5 @@ class WebTest_Contact_MultipleContactSubTypes extends CiviSeleniumTestCase {
     $customGroupTitle = preg_replace('/\s/', '_', trim($customGroupTitle));
     return array($customGroupTitle, $gid);
   }
+
 }
index 329a623e7dc22dbb7a95828c9bb5e296eb0dad28..51518303099f55ec567bf376c9316653cfdb65fb 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -126,4 +126,5 @@ class WebTest_Contact_PrevNextTest extends CiviSeleniumTestCase {
     $this->assertElementContainsText('css=div.crm-summary-display_name', "{$contact1} AAA");
     $this->assertElementContainsText('css=li.crm-next-action a span', "Next");
   }
+
 }
index 9df0faba125e706d3ed30dd5d5291fa44045d2ba..4e3ddc646bd3fd17c05446ac2fee3a24c890b85a 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -164,4 +164,5 @@ class WebTest_Contact_PrivacyOptionSearchTest extends CiviSeleniumTestCase {
     $this->assertTrue($this->isTextPresent("1 Contact"));
     $this->assertTrue($this->isTextPresent("$lname2, $fname2"));
   }
+
 }
index 673991e1c6230849c385ee0dcdffc61e83984226..0cadcd9c03ae59dfd5d61f99341a0a9f2fbd5d41 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -189,4 +189,5 @@ class WebTest_Contact_ProfileChecksumTest extends CiviSeleniumTestCase {
     }
     return $profileId;
   }
+
 }
index d40a74e595ec169aa15afb6b1d1306fa9d5654c5..8955ab137f4c2d392493bc5c37610affd436fb13 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -427,4 +427,5 @@ class WebTest_Contact_RelationshipAddTest extends CiviSeleniumTestCase {
     );
     $this->assertTrue($this->isTextPresent("Employee of"), "Employee of relationship type not visible on View Relationship page.");
   }
+
 }
index 71fe3cb47b6cd421acd6ecd15c2d9d30fbf85a99..5dd047fc1627e30a5a39706cfb02b720d7767478 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -378,7 +378,7 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase {
     $this->assertTrue($this->isTextPresent("$name has been created."));
   }
 
-  /*
+  /**
    * Webtest for CRM-12148
    */
   public function testSearchBuilderfinancialType() {
@@ -433,7 +433,7 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase {
     $this->assertTrue($this->isTextPresent('6 Contacts'), 'Missing text: ' . '6 Contacts');
   }
 
-  /*
+  /**
    * Webtest for CRM-12588
    */
   public function testSearchBuilderMembershipType() {
index a46bc1a250d5353b95c80ca0fc04e1ae9d6d82bf..028f4189fea80009ddd355116898b11788155c85 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -255,4 +255,5 @@ class WebTest_Contact_SearchTest extends CiviSeleniumTestCase {
 
     $this->click("_qf_Select_next-bottom");
   }
+
 }
index cd5f91382e4c9c29af86672670d7027c84eb6672..324064c3cdc6352974bbd6eb795630ff5151a252 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -343,4 +343,5 @@ class WebTest_Contact_SearchbyDateFilterTest extends CiviSeleniumTestCase {
 
     return $_advance_search_panes;
   }
+
 }
index f9ce67df727884a1cd13b585586a00fd690d551c..5b7c10282c3f09fc7e335354c20a8efe59a3be2c 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -194,4 +194,5 @@ class WebTest_Contact_SignatureTest extends CiviSeleniumTestCase {
     // Is signature correct? in Activity
     $this->assertTextPresent($signature);
   }
+
 }
index 07766251169fd3749dea1d61f1ae9210028b49b2..b8ef85882e0fb95a4499677fbc1020042ebb1d1e 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -110,4 +110,5 @@ class WebTest_Contact_TagAddTest extends CiviSeleniumTestCase {
     $this->assertTrue($this->isTextPresent('Contacts'), 'Missing text: ' . 'Contacts');
     $this->assertTrue($this->isTextPresent('Edit'), 'Missing text: ' . 'Edit');
   }
+
 }
index 69aa3bc607c0b106f6f61e7f25bca3a48e483757..1e81ae17bd5cd778921c32754d470ea2cb71409e 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -156,4 +156,5 @@ class WebTest_Contact_TagSetSearchTest extends CiviSeleniumTestCase {
 
     return $tagid;
   }
+
 }
index 42ac2ce6ce189d273ffec403254e27e1cd454625..3fcce7f1e8889667e82c6f505e6a483644b408b0 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -139,4 +139,5 @@ class WebTest_Contact_TaskActionAddToGroupTest extends CiviSeleniumTestCase {
 
     $this->assertTrue($this->isTextPresent("50 Contacts"), 'Looking for 50 results belonging to group: ' . $newGroupName);
   }
+
 }
index 9a17f75e68620190a6f8c369ea70f95ebe45a761..f0c3b2170669058f3f52ab177e14ef0d615aae52 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -132,4 +132,5 @@ class WebTest_Contact_TaskActionSendMassMailing extends CiviSeleniumTestCase {
     $this->click("xpath=//table//tbody/tr[td[1]/text()='$mailingName']/descendant::a[text()='Report']");
     $this->waitForPageToLoad($this->getTimeoutMsec());
   }
+
 }
index 2c7c04efe7e0cd70f68274f8699875b9977d9558..41ecc5c4f5daed66d469e02c5cc19417948caf3f 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -117,4 +117,5 @@ class WebTest_Contact_TaskActionSendSMS extends CiviSeleniumTestCase {
 
     $this->assertTrue($this->isTextPresent('Your message has been sent.'), "Test SMS could not be sent!");
   }
+
 }
index 5b682729edd8914fa6f0d8b2157e0326e1208ab5..c5865c62d4d65f363ef64d0e650de42def23bc18 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -78,4 +78,5 @@ class WebTest_Contact_UpdateProfileTest extends CiviSeleniumTestCase {
     $this->assertTrue($this->isTextPresent($postalCode), 'In line ' . __LINE__);
     $this->assertTrue($this->isElementPresent("//div[@id='profilewrap1']/div[@id='crm-container']/div/div[7]/div[2][contains(text(), 'AR')]"));
   }
+
 }
index 3c8fbbb36a5172f38ecedb76df32826bbc652c95..75c59379c4f24cd72c657d0caf93b130a2fbd994 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -340,4 +340,5 @@ class WebTest_Contribute_AddBatchesTest extends CiviSeleniumTestCase {
       $this->_checkResult($value, $type);
     }
   }
+
 }
index 37159d902f60cf424201aada379c85bc3bd90571..69fb43d475bcd7c3df19793c5d92684147fcba21 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -719,4 +719,5 @@ class WebTest_Contribute_AddPricesetTest extends CiviSeleniumTestCase {
       $this->verifyText("css=table.crm-soft-credit-listing", preg_quote($value));
     }
   }
+
 }
index 7330186297e5dce6b548ac2b536b05d359043efe..06b1a472b46d8a5e5a67fde7b13b41465b8b3880 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -110,4 +110,5 @@ class WebTest_Contribute_ConfirmOptionalTest extends CiviSeleniumTestCase {
     $this->click("_qf_Main_upload-bottom");
     $this->waitForPageToLoad($this->getTimeoutMsec());
   }
+
 }
index cd7458f501d8e7c6d626d30d8532a8d80f4a777c..2f001ab45e48e32f70231068d75d4b2ccd584a51 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -193,4 +193,5 @@ class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase {
       $this->verifyText("xpath=id('Search')/div[2]/table[2]/tbody//tr/td[$value]", preg_quote($label));
     }
   }
+
 }
index f9d47100b834b9426a2c2d53f03bf5486792e126..6f24e3b4def6b9eaeb163bddbb2e0ec48cbbc9c3 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -441,4 +441,5 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase {
     // contribution page is saved.
     $this->assertTrue($this->isTextPresent($premiumSavedText));
   }
+
 }
index da3c3426af5b39bb4dfaf9f9cd6a77d3734106f1..35ef367df1d9cd964578bc04d45562d3378a435f 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -431,4 +431,5 @@ class WebTest_Contribute_OfflineContributionTest extends CiviSeleniumTestCase {
     );
     $this->webtestVerifyTabularData($expected);
   }
+
 }
index c7633a30d5204717981dfdd16d2568bcfa2c2c2a..110e622cadbc844fc408b7a41dd4ad2c4c334016 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -109,4 +109,5 @@ class WebTest_Contribute_OfflineRecurContributionTest extends CiviSeleniumTestCa
       );
     }
   }
+
 }
index 0b2879123dfb85acf40e7cc21ef3bd65ef0c2ad1..e9c2ba4f233866650e7f5550a6b422bc13c08041 100644 (file)
@@ -1555,4 +1555,5 @@ class WebTest_Contribute_OnBehalfOfOrganization extends CiviSeleniumTestCase {
     //check whether the image is present
     $this->assertTrue($this->isElementPresent("xpath=//div[@id='crm-contact-thumbnail']/div/a/img"));
   }
+
 }
index 625e98459773b7670e41e45c062e77e701c328b9..037d6cd4109cf22e7c4c5ef7d5e1590b51f68af2 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -314,4 +314,5 @@ class WebTest_Contribute_OnlineContributionTest extends CiviSeleniumTestCase {
     );
     $this->webtestVerifyTabularData($expected);
   }
+
 }
index e5f023427c615240fb143ff27d848400c3f966c6..719f9e0c31487d5eb531d6853f1955470d17e0df 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -201,4 +201,5 @@ class WebTest_Contribute_OnlineMultiplePaymentProcessorTest extends CiviSelenium
     $this->webtestVerifyTabularData($expected);
     $this->click('_qf_ContributionView_cancel-bottom');
   }
+
 }
index e640784eda2ca05f7bff9f8d3ccd5311aa34c916..e9e2827dfbff639f0effaf3abbb9ec4f6f04d96d 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -152,4 +152,5 @@ class WebTest_Contribute_OnlineRecurContributionTest extends CiviSeleniumTestCas
       );
     }
   }
+
 }
index 271292b0b786df88a5a41d789494df80cf3ea79f..0139f7e8a14303c1c3b62e791e770d97642da291 100755 (executable)
@@ -200,4 +200,5 @@ class WebTest_Contribute_PCPAddTest extends CiviSeleniumTestCase {
     $this->verifyText("PCP", preg_quote($pcpTitle));
     $this->verifyText("PCP", preg_quote("{$lastName}, {$firstName}"));
   }
+
 }
index ac60d23349deea8e99c447880e73bce3a5533bff..0dd96e6c2dabc8f934d7f6fe79d2ca612f6058da 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -287,4 +287,5 @@ class WebTest_Contribute_StandaloneAddTest extends CiviSeleniumTestCase {
     $pageUrl = array('url' => 'contribute/add', 'args' => 'reset=1&action=add&context=standalone');
     $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
   }
+
 }
index 0719b6f164304c0346bcd185d7ab788aaa7c4858..c4a5a6c3233617511227e74737d790462fa3ffaa 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -226,4 +226,5 @@ class WebTest_Contribute_UpdateBatchPendingContributionTest extends CiviSelenium
       $this->verifyText("xpath=id('ContributionView')/div[2]/table[1]/tbody//tr/td[1][text()='$label']/../td[2]", preg_quote($value));
     }
   }
+
 }
index 725ddc02277eb6a088d74ac7dd4221fdd511bdee..47c3f50cffd96a9b25e8d3b42069928851000055 100755 (executable)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
@@ -498,4 +498,5 @@ class WebTest_Contribute_UpdateContributionTest extends CiviSeleniumTestCase {
 
     return $contact;
   }
+
 }
index a24ef13051c739080af21f372f44554e90f6853a..7d555fe1d6074864d4056a0e8e8853173d467a80 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -268,4 +268,5 @@ class WebTest_Contribute_UpdatePendingContributionTest extends CiviSeleniumTestC
     );
     $this->webtestVerifyTabularData($expected);
   }
+
 }
index cc5f3a3b78da8be3969bd46d8d240ec1edbc8439..ba09a2c59e6847927fdea888f47945853eb7dd99 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -45,8 +45,8 @@ class WebTest_Contribute_VerifySSLContributionTest extends CiviSeleniumTestCase
 
     // todo: write code to check other payment processors
     /*$this->_tryPaymentProcessor($this->names['Google_Checkout']);
-        $this->_tryPaymentProcessor($this->names['PayPal']);
-        $this->_tryPaymentProcessor($this->names['PayPal_Standard']);*/
+    $this->_tryPaymentProcessor($this->names['PayPal']);
+    $this->_tryPaymentProcessor($this->names['PayPal_Standard']);*/
   }
 
   public function _initialize() {
@@ -131,4 +131,5 @@ class WebTest_Contribute_VerifySSLContributionTest extends CiviSeleniumTestCase
     $this->waitForPageToLoad($this->getTimeoutMsec());
     $this->assertFalse($this->isTextPresent("Payment Processor Error message"), "Payment processor returned error message");
   }
+
 }
index 543d11418a35bb95369665137c7a8f4bf9d7cc64..f9e875a764827fcc4f09b98ef01b4032267e3837 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -974,4 +974,5 @@ WHERE ceft.entity_id = %1 AND ceft.entity_table = 'civicrm_contribution'";
       $this->waitForElementPresent("xpath=//td[@class='crm-participant-label crm-editable crm-editable-enabled'][contains(text(), '{$status}')]/../td[9]/span/a[2][text()='Disable']");
     }
   }
+
 }
index 81bc18ca2f281009b7a8342c2b28ffc045aa2382..a3d3eea370149e32770123efec5245b7a5d4e94c 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -359,19 +359,25 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase {
       array(
         'entity' => 'ParticipantEventName',
         'subEntity' => 'Fall Fundraiser Dinner',
-        'triggerElement' => array('name' => "event_id", 'type' => "select2")
+        'triggerElement' => array(
+          'name' => "event_id",
+          'type' => "select2",
+        ),
       ),
       array(
         'entity' => 'ParticipantRole',
         'subEntity' => 'Attendee',
-        'triggerElement' => array('name' => 'role_id', 'type' => "select")
+        'triggerElement' => array(
+          'name' => 'role_id',
+          'type' => "select",
+        ),
       ),
     );
     $pageUrl = array('url' => "participant/add", 'args' => "reset=1&action=add&context=standalone");
     $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl, TRUE);
   }
 
-  /*
+  /**
    * Webtest for CRM-10983
    */
   public function testCheckDuplicateCustomDataLoad() {
@@ -381,20 +387,41 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase {
       array(
         'entity' => 'ParticipantEventType',
         'subEntity' => '- Any -',
-        'triggerElement' => array('name' => "event_id", 'type' => "select")
+        'triggerElement' => array(
+          'name' => "event_id",
+          'type' => "select",
+        ),
       ),
       array(
         'entity' => 'ParticipantEventName',
         'subEntity' => '- Any -',
-        'triggerElement' => array('name' => "event_id", 'type' => "select")
+        'triggerElement' => array(
+          'name' => "event_id",
+          'type' => "select",
+        ),
       ),
       array(
         'entity' => 'ParticipantEventName',
         'subEntity' => 'Rain-forest Cup Youth Soccer Tournament',
-        'triggerElement' => array('name' => "event_id", 'type' => "select")
+        'triggerElement' => array(
+          'name' => "event_id",
+          'type' => "select",
+        ),
+      ),
+      array(
+        'entity' => 'ParticipantRole',
+        'subEntity' => '- Any -',
+        'triggerElement' => array(
+          'type' => "checkbox",
+        ),
+      ),
+      array(
+        'entity' => 'ParticipantRole',
+        'subEntity' => 'Volunteer',
+        'triggerElement' => array(
+          'type' => "checkbox",
+        ),
       ),
-      array('entity' => 'ParticipantRole', 'subEntity' => '- Any -', 'triggerElement' => array('type' => "checkbox")),
-      array('entity' => 'ParticipantRole', 'subEntity' => 'Volunteer', 'triggerElement' => array('type' => "checkbox")),
     );
 
     $return = $this->addCustomGroupField($customSets);
@@ -430,4 +457,5 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase {
     $this->webtestAddBillingDetails();
     return $contact;
   }
+
 }
index 4f54d09b1473407c051b1a1754a90b71357f2fb6..87ef980854cf74027f4ecf2d4d2937ba4b0ad4fd 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -264,7 +264,7 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent('_qf_Fee_upload_done-bottom');
     $this->click('CIVICRM_QFID_1_is_monetary');
     $this->click("xpath=//tbale[@id='paymentProcessor']/tbody/tr[1]/td[2]/label[text()='$processorName']");
-    $this->select('financial_type_id','label=Event Fee');
+    $this->select('financial_type_id', 'label=Event Fee');
     $this->select('price_set_id', 'label=' . $setTitle);
 
     // intro text for registration page
@@ -757,4 +757,5 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
       }
     }
   }
+
 }
index 2aa6e1f45ea7ebd99d8f59ca01cfc7f3669a4e90..e65a33f6e0ac5a6a5ec0222ad508b788fab457fd 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Description of AddRecurringEventTest
index 651be44951cc5e58b1f49e6d1a9d7576bda1b3d2..235d18b9ac4d0c97f8f449db2183497566fd1052 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -217,4 +217,5 @@ class WebTest_Event_AdditionalPaymentTest extends CiviSeleniumTestCase {
     $this->assertElementContainsText("xpath=//td[@id='payment-info']/table[@id='info']/tbody/tr[2]/td", "$ {$feeAmt}", 'Missing text: appropriate fee amount');
     $this->assertElementContainsText("xpath=//td[@id='payment-info']/table[@id='info']/tbody/tr[2]/td[2]", "$ {$amtPaid}", 'Missing text: appropriate fee amount');
   }
+
 }
index dfd694d12d7da54b58c55273434211ea56969dab..f1ba485af4da9349ff2c37a16bb51564a00866b3 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -163,4 +163,5 @@ class WebTest_Event_ChangeParticipantStatus extends CiviSeleniumTestCase {
     );
     $this->verifyText("xpath=//td[text()='Selections']/following-sibling::td//div/div", preg_quote('Event Total: $ 800.00'));
   }
+
 }
index dba0ac7c3022b1a870bcec3f1e1c698d7bd7d013..252afa9bd41f764d1b95e6450c02425ee1c6c82e 100644 (file)
@@ -162,4 +162,5 @@ class WebTest_Event_EventListingTest extends CiviSeleniumTestCase {
     $this->waitForPageToLoad($this->getTimeoutMsec());
     $this->waitForText("crm-notification-container", "'Event Location' information has been saved.");
   }
+
 }
index fc8c3ce515df436cb4c800eb7938a32b7b4d34b5..94dd6f5c3be45788be244ee1a23f321e2500d63a 100644 (file)
@@ -20,7 +20,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -240,4 +240,5 @@ class WebTest_Event_EventWaitListTest extends CiviSeleniumTestCase {
       $this->webtestLogin();
     }
   }
+
 }
index fe5c4c97d1651074be31c0f2266a0ab206e80256..5e05fb53e68d8b791f9c8a6a4565997a9b136599 100755 (executable)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -510,4 +510,5 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest
     $this->click("enable_cart");
     $this->click("_qf_Event_next-top");
   }
+
 }
index 80162f73d47fc1ebc90db8114b7005fde160aee8..a3016cd94936e4e0073e48cfe2486bd41fd3b17d 100644 (file)
@@ -414,7 +414,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase {
   /**
    * Test profile creation.
    *
-*@param $profileField
+   * @param array $profileField
    * @param int $location
    * @param $type
    *
@@ -642,7 +642,7 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase {
    * @param $email1
    * @param $email2
    */
-  function _testEventRegistration(
+  public function _testEventRegistration(
     $eventPageId, $customId, $firstName, $lastName,
     $participantfname, $participantlname, $email1, $email2
   ) {
@@ -831,4 +831,5 @@ class WebTest_Event_MultiprofileEventTest extends CiviSeleniumTestCase {
     $this->click("_qf_Field_next-bottom");
     $this->waitForPageToLoad($this->getTimeoutMsec());
   }
+
 }
index a5dee0120ccaa94e565e23cd28527daa64a9eba1..6f6e71097ac937df07cf5caa0e76e1591a5d4ab4 100644 (file)
@@ -552,4 +552,5 @@ class WebTest_Event_PCPAddTest extends CiviSeleniumTestCase {
     $softCreditor = "{$pcpCreatorFirstName} {$pcpCreatorLastName}";
     $this->verifyText("xpath=//div[@id='PCPView']/div[2]//table[@class='crm-info-panel']/tbody/tr[2]/td[2]", preg_quote($softCreditor), 'In line ' . __LINE__);
   }
+
 }
index f0b25629126c55e0d24bd43f044cf817e7cb7843..e2e4b8b98e735bc68fda64bee6d771882024675a 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -467,4 +467,5 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
       }
     }
   }
+
 }
index 638ee82287db69b3da360372191e897c71a9a103..b55a8202f59724cd3524110361b6072e73f819ab 100644 (file)
@@ -22,7 +22,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -248,4 +248,5 @@ class WebTest_Event_ParticipantSearchTest extends CiviSeleniumTestCase {
 
     $this->_checkStrings($stringsToCheck);
   }
+
 }
index 38bbbf10f32007952c42b37fa27b5384abe6bfa6..decb54feec1838dfd02499f83fe62632516e88a7 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -1228,4 +1228,5 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
     $thankStrings = array('Thank You for Registering', 'Event Total', 'Transaction Date');
     $this->assertStringsPresent($thankStrings);
   }
+
 }
index eb5661f93a769e57b5ae4f42cdc3a6fd6f5736fd..c09284b2e787ca0f2378782ce3750b764a9d5c7d 100644 (file)
@@ -275,4 +275,5 @@ class WebTest_Event_TellAFriendTest extends CiviSeleniumTestCase {
     $this->click('_qf_Event_upload_done-bottom');
     $this->waitForElementPresent("xpath=//div[@id='event_status_id']//div[@id='option11_wrapper']/table/tbody//tr/td[1]/a[text()='$eventTitle']");
   }
+
 }
index fe7f0c71160f3cffa5ba9a7f144681b0bd5f6ce7..fe287a9275923d89bd8b314f1f84980777b74f30 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Export/ExportCiviSeleniumTestCase.php';
 
@@ -473,4 +473,5 @@ class WebTest_Export_ContactTest extends ExportCiviSeleniumTestCase {
     $optionLabel = $this->webtest_civicrm_api("OptionValue", "getvalue", $params);
     return $optionLabel;
   }
+
 }
index 764564e4f25e4c430779ae0c3bf171c9609f6041..8b479a3e99ce3fd9dec2260a37ca680c479b29f7 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -161,4 +161,5 @@ class ExportCiviSeleniumTestCase extends CiviSeleniumTestCase {
       @unlink($file);
     }
   }
+
 }
index 8b6ec91908ba04109c73f8a574b4a397406a0979..65bdfb03b3909e3e42781e76551688255342a488 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -140,4 +140,5 @@ class WebTest_Financial_FinancialAccountTest extends CiviSeleniumTestCase {
     //Delete Financial Account
     $this->_testDeleteFinancialAccount($financialAccountTitle);
   }
+
 }
index b77d6c6992b9e125b76c240e30bb1d63a7877093..1883934a3d54ef850256de76b0be7ff0f98fad4d 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -98,4 +98,5 @@ class WebTest_Financial_FinancialAccountTypeTest extends CiviSeleniumTestCase {
     //delete financialtype
     $this->addeditFinancialType($financialType, 'Delete');
   }
+
 }
index dcda54489d9e251c1d770d556c56a931966ab26a..fa49a343c4c949e24e582415214d96d47b7f1f96 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
@@ -138,4 +138,5 @@ class WebTest_Financial_FinancialBatchExport extends CiviSeleniumTestCase {
       )
     );
   }
+
 }
index 36ba575c38d3ef1d70edf05b950b37215a8ebd41..26a0eb467f503562f708894a04dc16de9a9329a0 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -82,4 +82,5 @@ class WebTest_Generic_CheckActivityTest extends CiviSeleniumTestCase {
     // ...again, waiting for the box with contact name to show up...
     $this->waitForText("xpath=//div[@id='s2id_assignee_contact_id']", "$contactFirstName2");
   }
+
 }
index 11f20144947d8587de2f4f03746d15ef6aee58b8..7a49f2a3cbbe25f3336432adead8d2f51b4fcd96 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -167,4 +167,5 @@ class WebTest_Generic_CheckDashboardTest extends CiviSeleniumTestCase {
     // cleanup by removing the widget
     $this->_testRemoveDashboardElement($widgetConfigureID, $widgetEnabledSelector);
   }
+
 }
index 1b365219bb2dd128f17dc842cacdf880b56ab539..7e9eb089f865ef01fa2b39f98b866244ff7922f6 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -43,4 +43,5 @@ class WebTest_Generic_CheckFindTest extends CiviSeleniumTestCase {
     $this->waitForPageToLoad($this->getTimeoutMsec());
     $this->assertTrue($this->isElementPresent("search-status"));
   }
+
 }
index 5514019865a5962de1a82e8694f9fc26a807c625..ac3b7a8792f00d7a73147084e0a986ceb76e01a4 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -357,4 +357,5 @@ class WebTest_Generic_GeneralClickAroundTest extends CiviSeleniumTestCase {
     $this->assertTextPresent("Profiles - Admin Notification");
     $this->assertTextPresent("Tell-a-Friend Email");
   }
+
 }
index 64069448ab7c472dcbc137ec85927db5a78cdb15..8f466c27534c57394f73a474ccd06e89faf1e2c9 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -135,4 +135,5 @@ class WebTest_Grant_ContactContextAddTest extends CiviSeleniumTestCase {
       )
     );
   }
+
 }
index 4f9525e2958bf101333f28e67cafea3cf70253f2..df22add5a2e9670f9caf8e1d3704cfed4f9e9cbd 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -121,4 +121,5 @@ class WebTest_Grant_CustomFieldsetTest extends CiviSeleniumTestCase {
     $pageUrl = array('url' => 'grant/add', 'args' => 'reset=1&action=add&context=standalone');
     $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
   }
+
 }
index e7c5a8787e6a65d1822a0f2f645f83ddd6e8d920..79f6c6d51ff0a48e49d70af75eae90cb2d07a9ff 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -105,4 +105,5 @@ class WebTest_Grant_StandaloneAddTest extends CiviSeleniumTestCase {
 
     $this->webtestVerifyTabularData($expected);
   }
+
 }
index 23ec5b42df12d3dea7da47f6231cd4295c909106..42cb4619eb87860d86ccd59dcbc84db1d9a56b2a 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -98,4 +98,5 @@ class WebTest_Import_ActivityTest extends ImportCiviSeleniumTestCase {
 
     return array($headers, $rows);
   }
+
 }
index 78448980da8f3d19d1529370db958d251ef8b82f..5827cd6459e1e13d7ae1cd62a8d2cdd1ab6b15f1 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
index d042d038e4c07573dcdae8866a47bfc7014c03d6..328e817c489839c568e945ae8d64adf454b5d009 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -285,4 +285,5 @@ class WebTest_Import_AddressParsingTest extends ImportCiviSeleniumTestCase {
 
     return array($headers, $rows);
   }
+
 }
index 0ffdbaaffa8211b18df3f4d798ee645d9de14219..79353f85924d2a9f7b96f733831c3a30ec4327e8 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -190,4 +190,5 @@ class WebTest_Import_ContactCustomDataTest extends ImportCiviSeleniumTestCase {
 
     return array("custom_{$customFieldId}", $customField, $customGroupTitle);
   }
+
 }
index 3c1d05edee95d2755cdf8f2125ea17540e6f7289..5651887e5ba2067fee3d6ced89ab87b1173ebb73 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -429,4 +429,5 @@ class WebTest_Import_ContactSubtypeTest extends ImportCiviSeleniumTestCase {
 
     return array($headers, $rows);
   }
+
 }
index e012887a55b6f666c418509e56a42af2b4168ce5..ed2b2b0b17efe6354677cf71390703a359c635e7 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -421,4 +421,5 @@ class WebTest_Import_ContactTest extends ImportCiviSeleniumTestCase {
 
     return array($headers, $rows);
   }
+
 }
index 761a3d35adbfc472982a14604f1feefd4657c324..271f0199baa5a786b073ff71cf940470d2cdd41c 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -194,4 +194,5 @@ class WebTest_Import_ContributionTest extends ImportCiviSeleniumTestCase {
 
     return array($headers, $rows);
   }
+
 }
index 144cb846a8d68534c2d69edaf66726cff1ac732e..a24a255dd43465cdc51c90af1bc8973e767b932d 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -352,4 +352,5 @@ class WebTest_Import_CustomDataTest extends ImportCiviSeleniumTestCase {
 
     return array($customDataParams, $customDataVerify);
   }
+
 }
index 75f6b0e3b45756c1c680e8cca433630c56eba371..56e2e972adaa84ea31d5147881cb28eff1c86b9e 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -35,7 +35,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     parent::setUp();
   }
 
-  /*
+  /**
    *  Test contact import for yyyy_mm_dd date format.
    */
   public function testDateFormat_yyyy_mm_dd() {
@@ -50,7 +50,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     $this->importContacts($headers, $rows, 'Individual', 'Skip', array(), $other);
   }
 
-  /*
+  /**
    *  Test contact import for mm_dd_yy date format.
    */
   public function testDateFormat_mm_dd_yy() {
@@ -66,7 +66,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     $this->importContacts($headers, $rows, 'Individual', 'Skip', array(), $other);
   }
 
-  /*
+  /**
    *  Test contact import for mm_dd_yyyy date format.
    */
   public function testDateFormat_mm_dd_yyyy() {
@@ -87,7 +87,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     $this->importContacts($headers, $rows, 'Individual', 'Skip', array(), $other);
   }
 
-  /*
+  /**
    *  Test contact import for Month_dd_yyyy date format.
    */
   public function testDateFormat_Month_dd_yyyy() {
@@ -108,7 +108,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     $this->importContacts($headers, $rows, 'Individual', 'Skip', array(), $other);
   }
 
-  /*
+  /**
    *  Test contact import for dd_mon_yy date format.
    */
   public function testDateFormat_dd_mon_yy() {
@@ -129,7 +129,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     $this->importContacts($headers, $rows, 'Individual', 'Skip', array(), $other);
   }
 
-  /*
+  /**
    *  Test contact import for dd_mm_yyyy date format.
    */
   public function testDateFormat_dd_mm_yyyy() {
@@ -150,7 +150,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     $this->importContacts($headers, $rows, 'Individual', 'Skip', array(), $other);
   }
 
-  /*
+  /**
    *  Helper function to provide data for contact import for Individuals and yyyy-mm-dd OR yyyymmdd dateformat.
    */
   /**
@@ -203,7 +203,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     return array($headers, $rows);
   }
 
-  /*
+  /**
    *  Helper function to provide data for contact import for Individuals and mm/dd/yy OR mm-dd-yy dateformat.
    */
   /**
@@ -256,7 +256,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     return array($headers, $rows);
   }
 
-  /*
+  /**
    *  Helper function to provide data for contact import for Individuals and mm/dd/yyyy OR mm-dd-yyyy dateformat.
    */
   /**
@@ -309,7 +309,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     return array($headers, $rows);
   }
 
-  /*
+  /**
    *  Helper function to provide data for contact import for Individuals and Month dd, yyyy dateformat.
    */
   /**
@@ -362,7 +362,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     return array($headers, $rows);
   }
 
-  /*
+  /**
    *  Helper function to provide data for contact import for Individuals and dd-mon-yy OR dd/mm/yy dateformat.
    */
   /**
@@ -415,7 +415,7 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
     return array($headers, $rows);
   }
 
-  /*
+  /**
    *  Helper function to provide data for contact import for Individuals and dd/mm/yyyy dateformat.
    */
   /**
@@ -467,4 +467,5 @@ class WebTest_Import_DateFormatTest extends ImportCiviSeleniumTestCase {
 
     return array($headers, $rows);
   }
+
 }
index 6e3923fb09172ba6c7950847f75b91d843a401fd..33c2071e87540ec51e942069debe159efd6d00ef 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -490,4 +490,5 @@ class WebTest_Import_DuplicateMatchingTest extends ImportCiviSeleniumTestCase {
 
     return array($headers, $rows);
   }
+
 }
index 0bfba02b7b1f13c51d6fbc48350a24820158f0f8..59a4ef4870701b8c4100fbd2435b1f06e807aff5 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -138,4 +138,5 @@ class WebTest_Import_GroupTest extends ImportCiviSeleniumTestCase {
     );
     return array($headers, $rows);
   }
+
 }
index c67a67a4b0490f776a53761de010cfb53042153e..192e5c01fe6cc0167c9b17b7e01efc9b841e50b8 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 require_once 'CRM/Utils/Array.php';
@@ -595,4 +595,5 @@ class ImportCiviSeleniumTestCase extends CiviSeleniumTestCase {
       }
     }
   }
+
 }
index 42d6fd3030044b8b557c089da5f27330ac207c91..91343b88c021011a02bb6db8645959f818a642e4 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -362,4 +362,5 @@ class WebTest_Import_MatchExternalIdTest extends ImportCiviSeleniumTestCase {
 
     return $params;
   }
+
 }
index 0dff818cdf15f1b1d59f53bd2d41de2408e857db..a6876c38a3cedbb27e8855c104b82d1f5bae533a 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -210,4 +210,5 @@ class WebTest_Import_MemberTest extends ImportCiviSeleniumTestCase {
     );
     return array($headers, $rows, $fieldMapper);
   }
+
 }
index 8963724df0424663a818d00034eae58a890f6024..6b3f664b0c97d627d6f53e49b5025a6d086ee0eb 100644 (file)
@@ -1,28 +1,28 @@
 <?php
 /*
- +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
- +--------------------------------------------------------------------+
- | This file is a part of CiviCRM.                                    |
- |                                                                    |
- | CiviCRM is free software; you can copy, modify, and distribute it  |
- | under the terms of the GNU Affero General Public License           |
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
- |                                                                    |
- | CiviCRM is distributed in the hope that it will be useful, but     |
- | WITHOUT ANY WARRANTY; without even the implied warranty of         |
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
- | See the GNU Affero General Public License for more details.        |
- |                                                                    |
- | You should have received a copy of the GNU Affero General Public   |
- | License along with this program; if not, contact CiviCRM LLC       |
- | at info[AT]civicrm[DOT]org. If you have questions about the        |
- | GNU Affero General Public License or the licensing of CiviCRM,     |
- | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
- +--------------------------------------------------------------------+
-*/
 +--------------------------------------------------------------------+
 | CiviCRM version 4.6                                                |
 +--------------------------------------------------------------------+
 | Copyright CiviCRM LLC (c) 2004-2014                                |
 +--------------------------------------------------------------------+
 | This file is a part of CiviCRM.                                    |
 |                                                                    |
 | CiviCRM is free software; you can copy, modify, and distribute it  |
 | under the terms of the GNU Affero General Public License           |
 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
 |                                                                    |
 | CiviCRM is distributed in the hope that it will be useful, but     |
 | WITHOUT ANY WARRANTY; without even the implied warranty of         |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
 | See the GNU Affero General Public License for more details.        |
 |                                                                    |
 | You should have received a copy of the GNU Affero General Public   |
 | License along with this program; if not, contact CiviCRM LLC       |
 | at info[AT]civicrm[DOT]org. If you have questions about the        |
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -68,33 +68,33 @@ class WebTest_Import_MultipleRelationshipTest extends ImportCiviSeleniumTestCase
       'state' => 'State',
       'country' => 'Country',
       'contact_relationships' =>
-        array(
-          '4_a_b' => array(
-            'organization_name' => 'Organization Name',
-            'organization_email' => 'Organization Email',
-            'organization_add' => 'Organization Street Address',
-            'organization_city' => 'Organization City',
-            'organization_state' => 'Organization State',
-            'organization_country' => 'Organization Country',
-          ),
-          '7_a_b' => array(
-            'household_name' => 'Household Name',
-            'household_email' => 'Household Name',
-            'household_add' => 'Household Street Address',
-            'household_city' => 'Household City',
-            'household_state' => 'Household State',
-            'household_country' => 'Household Country',
-          ),
-          '2_a_b' => array(
-            'spouse_f_name' => 'Spouse First Name',
-            'spouse_l_name' => 'Spouse Last Name',
-            'spouse_email' => 'Spouse Email',
-            'spouse_add' => 'Spouse Street Address',
-            'spouse_city' => 'Spouse City',
-            'spouse_state' => 'Spouse State',
-            'spouse_country' => 'Spouse Country',
-          ),
+      array(
+        '4_a_b' => array(
+          'organization_name' => 'Organization Name',
+          'organization_email' => 'Organization Email',
+          'organization_add' => 'Organization Street Address',
+          'organization_city' => 'Organization City',
+          'organization_state' => 'Organization State',
+          'organization_country' => 'Organization Country',
+        ),
+        '7_a_b' => array(
+          'household_name' => 'Household Name',
+          'household_email' => 'Household Name',
+          'household_add' => 'Household Street Address',
+          'household_city' => 'Household City',
+          'household_state' => 'Household State',
+          'household_country' => 'Household Country',
+        ),
+        '2_a_b' => array(
+          'spouse_f_name' => 'Spouse First Name',
+          'spouse_l_name' => 'Spouse Last Name',
+          'spouse_email' => 'Spouse Email',
+          'spouse_add' => 'Spouse Street Address',
+          'spouse_city' => 'Spouse City',
+          'spouse_state' => 'Spouse State',
+          'spouse_country' => 'Spouse Country',
         ),
+      ),
     );
 
     $rows = array(
@@ -110,33 +110,33 @@ class WebTest_Import_MultipleRelationshipTest extends ImportCiviSeleniumTestCase
         'state' => 'NY',
         'country' => 'United States',
         'contact_relationships' =>
-          array(
-            '4_a_b' => array(
-              'organization_name' => 'Org ' . substr(sha1(rand()), 0, 7),
-              'organization_email' => substr(sha1(rand()), 0, 7) . 'org@example.org',
-              'organization_add' => 'Org Street Address',
-              'organization_city' => 'Org City',
-              'organization_state' => 'NY',
-              'organization_country' => 'United States',
-            ),
-            '7_a_b' => array(
-              'household_name' => 'House ' . substr(sha1(rand()), 0, 7),
-              'household_email' => substr(sha1(rand()), 0, 7) . 'house@example.org',
-              'household_add' => 'House Street Address',
-              'household_city' => 'House City',
-              'household_state' => 'NY',
-              'household_country' => 'United States',
-            ),
-            '2_a_b' => array(
-              'spouse_f_name' => substr(sha1(rand()), 0, 7),
-              'spouse_l_name' => substr(sha1(rand()), 0, 7),
-              'spouse_email' => substr(sha1(rand()), 0, 7) . 'spouse@example.org',
-              'spouse_add' => 'Spouse Street Address',
-              'spouse_city' => 'Spouse City',
-              'spouse_state' => 'NY',
-              'spouse_country' => 'United States',
-            ),
+        array(
+          '4_a_b' => array(
+            'organization_name' => 'Org ' . substr(sha1(rand()), 0, 7),
+            'organization_email' => substr(sha1(rand()), 0, 7) . 'org@example.org',
+            'organization_add' => 'Org Street Address',
+            'organization_city' => 'Org City',
+            'organization_state' => 'NY',
+            'organization_country' => 'United States',
           ),
+          '7_a_b' => array(
+            'household_name' => 'House ' . substr(sha1(rand()), 0, 7),
+            'household_email' => substr(sha1(rand()), 0, 7) . 'house@example.org',
+            'household_add' => 'House Street Address',
+            'household_city' => 'House City',
+            'household_state' => 'NY',
+            'household_country' => 'United States',
+          ),
+          '2_a_b' => array(
+            'spouse_f_name' => substr(sha1(rand()), 0, 7),
+            'spouse_l_name' => substr(sha1(rand()), 0, 7),
+            'spouse_email' => substr(sha1(rand()), 0, 7) . 'spouse@example.org',
+            'spouse_add' => 'Spouse Street Address',
+            'spouse_city' => 'Spouse City',
+            'spouse_state' => 'NY',
+            'spouse_country' => 'United States',
+          ),
+        ),
       ),
       array(
         'first_name' => substr(sha1(rand()), 0, 7),
@@ -150,33 +150,33 @@ class WebTest_Import_MultipleRelationshipTest extends ImportCiviSeleniumTestCase
         'state' => 'NY',
         'country' => 'United States',
         'contact_relationships' =>
-          array(
-            '4_a_b' => array(
-              'organization_name' => 'Org ' . substr(sha1(rand()), 0, 7),
-              'organization_email' => substr(sha1(rand()), 0, 7) . 'org@example.org',
-              'organization_add' => 'Org Street Address',
-              'organization_city' => 'Org City',
-              'organization_state' => 'NY',
-              'organization_country' => 'United States',
-            ),
-            '7_a_b' => array(
-              'household_name' => 'House ' . substr(sha1(rand()), 0, 7),
-              'household_email' => substr(sha1(rand()), 0, 7) . 'house@example.org',
-              'household_add' => 'House Street Address',
-              'household_city' => 'House City',
-              'household_state' => 'NY',
-              'household_country' => 'United States',
-            ),
-            '2_a_b' => array(
-              'spouse_f_name' => substr(sha1(rand()), 0, 7),
-              'spouse_l_name' => substr(sha1(rand()), 0, 7),
-              'spouse_email' => substr(sha1(rand()), 0, 7) . 'spouse@example.org',
-              'spouse_add' => 'Spouse Street Address',
-              'spouse_city' => 'Spouse City',
-              'spouse_state' => 'NY',
-              'spouse_country' => 'United States',
-            ),
+        array(
+          '4_a_b' => array(
+            'organization_name' => 'Org ' . substr(sha1(rand()), 0, 7),
+            'organization_email' => substr(sha1(rand()), 0, 7) . 'org@example.org',
+            'organization_add' => 'Org Street Address',
+            'organization_city' => 'Org City',
+            'organization_state' => 'NY',
+            'organization_country' => 'United States',
           ),
+          '7_a_b' => array(
+            'household_name' => 'House ' . substr(sha1(rand()), 0, 7),
+            'household_email' => substr(sha1(rand()), 0, 7) . 'house@example.org',
+            'household_add' => 'House Street Address',
+            'household_city' => 'House City',
+            'household_state' => 'NY',
+            'household_country' => 'United States',
+          ),
+          '2_a_b' => array(
+            'spouse_f_name' => substr(sha1(rand()), 0, 7),
+            'spouse_l_name' => substr(sha1(rand()), 0, 7),
+            'spouse_email' => substr(sha1(rand()), 0, 7) . 'spouse@example.org',
+            'spouse_add' => 'Spouse Street Address',
+            'spouse_city' => 'Spouse City',
+            'spouse_state' => 'NY',
+            'spouse_country' => 'United States',
+          ),
+        ),
       ),
     );
     // for Employee of relationship
@@ -225,4 +225,5 @@ class WebTest_Import_MultipleRelationshipTest extends ImportCiviSeleniumTestCase
 
     return array($headers, $rows, $fieldMapper);
   }
+
 }
index 4b3868001fbdcf9730ccf4d358a80dcdfb4a7f2c..ecfe6725a6b2535afefcb357732fd4105fb154a7 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -337,4 +337,5 @@ class WebTest_Import_ParticipantTest extends ImportCiviSeleniumTestCase {
 
     return $params;
   }
+
 }
index 2192be0e71fcf42abd4726d9fa6cf87a990258fe..a167277d5d5c8beb35ad8ea4752ae1509951658e 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -136,4 +136,5 @@ class WebTest_Import_SavedMappingTest extends ImportCiviSeleniumTestCase {
 
     return array($headers, $rows);
   }
+
 }
index 0ec43793b097e9c86e0a1475359ffec52919bf2e..d69792bb86cd46e0bbe8e6e73b150d544c01c251 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
 
@@ -136,4 +136,5 @@ class WebTest_Import_TagTest extends ImportCiviSeleniumTestCase {
 
     return array($headers, $rows);
   }
+
 }
index 1aca0be8a4c76e9413566614a28e240d8258be03..b1b3f66efd60b998c514dce3d98834d2a251ba0a 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -180,4 +180,5 @@ class WebTest_Mailing_AddMessageTemplateTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button/span[2]");
     $this->assertElementContainsText('help', "Bulk Email Sent.", "Status message didn't show up after saving!");
   }
+
 }
index 1c1f72a533918f55ff7a7ae7a4cf2a3609654c66..b6fcad983f89732e858b2ce00f2e60ed40276461 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -145,4 +145,5 @@ class WebTest_Mailing_AddNewMailingComponentTest extends CiviSeleniumTestCase {
     // Verify text
     $this->assertTrue($this->isElementPresent("xpath=//table/tbody//tr/td[text()='{$componentName}']/../td[2][text()='Reply']/../td[3][text()='{$subject}']/../td[4][text()='{$txtMsg}']/../td[5][text()='{$htmlMsg}']"), "The row doesn't consists of proper component details");
   }
+
 }
index cded96ef4d5ec65096fde362f9ba65a3a3e1fd33..6decfa202af2c280064744c3d88327f28608066c 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -573,4 +573,5 @@ class WebTest_Mailing_MailingTest extends CiviSeleniumTestCase {
       }
     }
   }
+
 }
index a226bb6cda8ffa5024ddaf83706af10844480d1a..fb0f47bd859d7e6fa75307f2ee9e740fe7561132 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 require_once 'CiviTest/CiviMailUtils.php';
@@ -96,4 +96,5 @@ class WebTest_Mailing_SpoolTest extends CiviSeleniumTestCase {
 
     }
   }
+
 }
index e48ade055ece3e941934c85b111fe89c99277b61..0df7628ea2d4aba48ab9d2a848a4a49cd6bb161b 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -274,4 +274,5 @@ class WebTest_Member_BatchUpdateViaProfileTest extends CiviSeleniumTestCase {
 
     return array($textFieldLabel, $customGroupTitle);
   }
+
 }
index c61f9d4ab4c71cf8f19e7f3941ed17989314135f..9603ece78377a512b9ab930669d25a19d86f675a 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -234,4 +234,5 @@ class WebTest_Member_ContactContextAddTest extends CiviSeleniumTestCase {
     $this->click("_qf_MembershipView_cancel-bottom");
     $this->waitForElementPresent("mainTabContainer");
   }
+
 }
index 4d3407184f8ef43ae547409d0faa6d5de2dd3a20..a89416b7d3e722167b004ca0eda3f42fafd63bbd 100755 (executable)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -294,4 +294,5 @@ class WebTest_Member_DefaultMembershipPricesetTest extends CiviSeleniumTestCase
     }
     return array($memTypeTitle1, $memTypeTitle2, $memTypeTitle3);
   }
+
 }
index ce3cc3ce89fe3c448dc48688477467430a6c4772..c22174a794e029c18257c77f552c2a7b78f4cba4 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -102,4 +102,5 @@ class WebTest_Member_EditMembershipTest extends CiviSeleniumTestCase {
     $this->assertTrue($this->isElementPresent("xpath=//div[@class='crm-search-results']/table/tbody/tr[3]/td[3][text()='Type changed from {$membershipTypes['membership_type']} to General']"));
     $this->assertTrue($this->isElementPresent("xpath=//div[@class='crm-search-results']/table/tbody/tr[3]/td[5]/a[text()='{$contactName}']"));
   }
+
 }
index 03f65ac3bfe2d28a4ad9d82aef964ed3bb16df86..ff0b9fef8d047e98b731666afcadf71d59aef18a 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -658,4 +658,5 @@ SELECT end_event_adjust_interval
       )
     );
   }
+
 }
index c4dbbada1ac887baf13e5512f3b02473bdfb5dd5..6506c2411fd504ba3bcb197a49cb302f150ba2fa 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -522,4 +522,5 @@ class WebTest_Member_InheritedMembershipTest extends CiviSeleniumTestCase {
     $this->assertTrue($this->isElementPresent("xpath=//div[@class='crm-contact-relationship-current']/div/table/tbody/tr/td[2]/a[text()='Organization $org3']"));
     $this->assertEquals(1, $this->getText("xpath=//li[@id='tab_rel']/a/em"));
   }
+
 }
index 1fcb2f82d042a40f84c5744eb61beaf8b24af940..056292c38b41926554706cf4c86c754a7ad109dd 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -110,4 +110,5 @@ class WebTest_Member_OfflineAutoRenewMembershipTest extends CiviSeleniumTestCase
       );
     }
   }
+
 }
index 56fe2c620d1fd661d28f468d99e2b25651ea5cc5..6f348909bf6ceef97b8c68487753d0845730bbcb 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -444,4 +444,5 @@ class WebTest_Member_OfflineMembershipAddPricesetTest extends CiviSeleniumTestCa
     $this->assertTrue($this->isElementPresent("xpath=//form[@id='MembershipView']/div[2]/div/div[@class='crm-accordion-wrapper']/div/table/tbody/tr/td/span[text()='{$amount}']"));
     $this->click("_qf_MembershipView_cancel-bottom");
   }
+
 }
index 584346cd8393d877c7d0cfdc2c297e758a5c73a4..111462e08c1bab62c1e41a5a7720730e14a5a405 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -433,4 +433,5 @@ class WebTest_Member_OfflineMembershipRenewTest extends CiviSeleniumTestCase {
     );
     $this->webtestVerifyTabularData($verifyMembershipRenewData);
   }
+
 }
index cc0d05ade4fdbdf8b47756dba652f8a0c8e488ba..aa5af3a10f1591e6f7646a1195786a5e682d5d9f 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -185,4 +185,5 @@ class WebTest_Member_OnlineAutoRenewMembershipGCTest extends CiviSeleniumTestCas
 
     return $pageId;
   }
+
 }
index 366ffd871cb61967f73bb3bfd87a47c31b513522..27e263d24b44b3f7434e9855e34b74ef384cdcef 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -210,4 +210,5 @@ class WebTest_Member_OnlineAutoRenewMembershipTest extends CiviSeleniumTestCase
 
     return $pageId;
   }
+
 }
index 238915dd74c31d8528b5cc43324439ecf462a465..f8d70c532282acf856dd151cb75d12b4148be845 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
index 6cd5678a61fa5e0324f07a08c34b14a520f45b35..204fd724e1a48a2928d4ce83120308e51befebb4 100644 (file)
@@ -335,4 +335,5 @@ class WebTest_Member_OnlineMembershipCreateTest extends CiviSeleniumTestCase {
     );
     $this->webtestVerifyTabularData($expected);
   }
+
 }
index 6c6ec7007ba09e842243d66cb30829fd60305a23..9983237ed6a1b26b939126f93cea13d84b99b243 100644 (file)
@@ -657,4 +657,5 @@ class WebTest_Member_OnlineMembershipRenewTest extends CiviSeleniumTestCase {
       );
     }
   }
+
 }
index ffef11cc322e86f057109f6820c60247bafaa61b..d95c45e3c89dba4dc8c6de0b5082f73f09aadedd 100644 (file)
@@ -162,4 +162,5 @@ class WebTest_Member_SeperateMembershipPaymentTest extends CiviSeleniumTestCase
     $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
     $this->clickLink("_qf_Confirm_next-bottom", NULL);
   }
+
 }
index e1194fc14873a3d4d50f4c46888edc9158d8fe01..a1edcbceb2e67fe5c40f8fcb8d7c9f3010cbe880 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -250,8 +250,9 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
     $test = $this;
     $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl,
       function () use ($test) {
-      $test->select('membership_type_id_0', 'value=1');
+        $test->select('membership_type_id_0', 'value=1');
       }
     );
   }
+
 }
index 0b5bc45bb056ac638385c8c67251d19303a6fcc8..fa0db1d13f156c8dc0a277c846cc910ef9f35ef9 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -128,4 +128,5 @@ class WebTest_Member_UpdateMembershipScriptTest extends CiviSeleniumTestCase {
 
     return $memTypeParams;
   }
+
 }
index 6bfa287917f8cf1168ccfc10157bfea48c522105..0876283643dd42bca10e5ca87ba2d2a0eed16660 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -122,4 +122,5 @@ class WebTest_Pledge_AddCancelPaymentTest extends CiviSeleniumTestCase {
     $this->verifyText("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[4]", "1,200.00");
 
   }
+
 }
index 74011cb2840a8819bb151601db2f504a02d922c3..220956861a6b8c62772ea0e24d3c2adbe29861e1 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -116,4 +116,5 @@ class WebTest_Pledge_ContactContextAddTest extends CiviSeleniumTestCase {
     // Re-enable pop-ups to leave things in the same state
     $this->enableDisablePopups(TRUE);
   }
+
 }
index 9854f3c840c334fe1a51d018ff1402cd20156de0..cfc7a731b9307038bf5e9c36ce61fddbf5c002a9 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -444,4 +444,5 @@ class WebTest_Pledge_ContactContextPledgePaymentAddTest extends CiviSeleniumTest
     // Re-enable pop-ups to leave things in the same state
     $this->enableDisablePopups(TRUE);
   }
+
 }
index 5e1d40f333deb686d0611f5a2c325bb8ad2295e1..a0fbc47da3d71f06624f0c4e52b68138170caf27 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -135,4 +135,5 @@ class WebTest_Pledge_StandaloneAddDeleteTest extends CiviSeleniumTestCase {
     $this->verifyText("xpath=//div[@class='view-content' and contains(., 'view pledge payments')]/table[@class='selector row-highlight']//tbody/tr[1]/td[4]", "1,930.00");
 
   }
+
 }
index 517c0e9cc85b3137f6467a39ef3852ca0229b237..a835ab9c2d5155e7051f145ff5e1e71e4f51556d 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -92,4 +92,5 @@ class WebTest_Pledge_StandaloneAddTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
     return $contact;
   }
+
 }
index 1567f4a5adee0a4606d6e01e85394169ac78e1bc..a297da141851853eae2a020ab5909bd39a88da1e 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -791,4 +791,5 @@ class WebTest_Profile_BatchUpdateTest extends CiviSeleniumTestCase {
 
     return $returnArray;
   }
+
 }
index accd8a4faa709b6d2616d1cd32b83a4e4d94c8f4..caf274e785d48b835c4ce2caadeca06b99389022 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -87,4 +87,5 @@ class WebTest_Profile_DedupeTest extends CiviSeleniumTestCase {
     $this->click("_qf_Edit_next");
     $this->waitForTextPresent("A record already exists with the same information.");
   }
+
 }
index 95201e6600df37fa001097bc9dc6069be25941fc..afc89e8d87a3502d28082600527cafc8219a2096 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -403,4 +403,5 @@ class WebTest_Profile_MultiRecordProfileAddTest extends CiviSeleniumTestCase {
     }
     return $params;
   }
+
 }
index cc97e9d10f9a64831f01d73e90b42dfa3a25624a..57dfc807fa403de01e4152c63932327a04a1a620 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -329,4 +329,5 @@ class WebTest_Profile_ProfileAddTest extends CiviSeleniumTestCase {
     // delete created profile
     $this->_testdeleteProfile($profileTitle);
   }
+
 }
index ab6344aa86d53b325c95dc89f1f9a6869de6d29b..07a36ff903d77e779583108c31d25dab083db434 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -62,7 +62,7 @@ class WebTest_Profile_ProfileCountryState extends CiviSeleniumTestCase {
     $this->openCiviPage('admin/uf/group/field/add', array(
         'action' => 'add',
         'reset' => 1,
-        'gid' => $gid
+        'gid' => $gid,
       ), 'field_name[0]');
     $this->click('field_name[0]');
     $this->select('field_name[0]', 'value=Contact');
@@ -151,4 +151,5 @@ class WebTest_Profile_ProfileCountryState extends CiviSeleniumTestCase {
       }
     }
   }
+
 }
index fa1702f1bfb0dfa6152348bcbce39ee8acf38809..728a179d1e500263e5079477098050024c72277a 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -142,4 +142,5 @@ class WebTest_Profile_ProfileGroupSubscriptionTest extends CiviSeleniumTestCase
     $this->waitForElementPresent('newCiviCRMProfile-bottom');
     $this->waitForText('crm-notification-container', "Your CiviCRM Profile '{$profileTitle}' has been deleted.");
   }
+
 }
index d399f0f5624e5a57b47853a3eaddb6075bfe2b0d..b2ce780111712597b0389f7a18f89e2972e3708c 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -247,4 +247,5 @@ class WebTest_Profile_SearchTest extends CiviSeleniumTestCase {
     $this->waitForText('crm-notification-container', 'Is this field hidden from other users');
     $this->select('visibility', 'value=Public Pages and Listings');
   }
+
 }
index 9fa85523fceea09082f0229f23d98351b79a01ec..d3943feb75e3e41e8d3f53f81f676c7a59c0e082 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'ReleaseTestCase.php';
 
@@ -63,4 +63,5 @@ class WebTest_Release_InstallScript extends WebTest_Release_ReleaseTestCase {
     $this->openCiviPage("dashboard", "reset=1");
     $this->assertTrue($this->isTextPresent("CiviCRM Home"));
   }
+
 }
index f1d51b8279c8062d1e7c5c17a4c34aa19ccee101..df7d7a1eee4ffdc96f2ee3e29baee4a85c729da8 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -60,4 +60,5 @@ class WebTest_Release_ReleaseTestCase extends CiviSeleniumTestCase {
   protected function setUp() {
     parent::setUp();
   }
+
 }
index b91531a6f462e26bd8e5758c2ea1c8bb0fe72eb8..319f46d3ed5c2988ce730e2bd3669e15b7dcda4e 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'ReleaseTestCase.php';
 
@@ -47,4 +47,5 @@ class WebTest_Release_UpgradeScript extends WebTest_Release_ReleaseTestCase {
 
     $this->waitForTextPresent("CiviCRM upgrade was successful.");
   }
+
 }
index 6c99eaf30df5cc9fc0330e63f6e8a99c24ca26b4..dfad5e2a07f17444240e7f968e24e279df8762b3 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -193,4 +193,5 @@ class WebTest_Report_AddTest extends CiviSeleniumTestCase {
     // Is correct access permission?
     $this->assertSelectedLabel("permission", "access CiviCRM");
   }
+
 }
index d3cd45c066352341a00fc3df47398d5b62fdc196..a130f07bf07095ff0bb3195d803233ed5b65e632 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -114,4 +114,5 @@ class WebTest_Report_DonarReportTest extends CiviSeleniumTestCase {
     // check if criteria still exits
     $this->assertElementContainsText('css=table.statistics-table', "Is greater than or equal to 10", "Criteria is not selected");
   }
+
 }
index 322eb374d03607bc1e67615c2bd04d384010ba7c..52ed946c547188b4cd7aec6d6633e1ac7f562368 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
@@ -379,4 +379,5 @@ class WebTest_Report_LoggingReportTest extends CiviSeleniumTestCase {
       $this->waitForPageToLoad($this->getTimeoutMsec());
     }
   }
+
 }
index 471f566f5447ff2a1ac49b4720706a7f3c96b9b2..6fd0311bd7bd432b025abeb6c868e612acda76ca 100644 (file)
@@ -96,7 +96,7 @@ class WebTest_Report_RolePermissionReportTest extends CiviSeleniumTestCase {
   }
 
   /**
-   *check for CRM-10148
+   * Check for CRM-10148.
    */
   public function testReservedReportPermission() {
     $this->webtestLogin('admin');
@@ -256,4 +256,5 @@ class WebTest_Report_RolePermissionReportTest extends CiviSeleniumTestCase {
     $this->waitForPageToLoad($this->getTimeoutMsec());
     return $name;
   }
+
 }
index 4000c7ee8a27c8e897764d84fdb3a3a19c138ca5..3410f3705f84812df9b7b5cecfdb1c261936d092 100644 (file)
@@ -22,7 +22,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 
index 28695e107783344a8d08416e7e18e03461c3032f..507f5c0676715d262ae79256b3b0af85da7697d5 100644 (file)
@@ -63,4 +63,5 @@ class api_v3_ACLCachingTest extends CiviUnitTestCase {
     $values = $this->callAPISuccess('custom_field', 'getoptions', array('field' => 'custom_group_id'));
     $this->assertTrue($values['count'] == 1, 'check that cached value is not retained for custom_group_id');
   }
+
 }
index 431adcfc3b1ca5c38b9e17a38fbf80e6ccb5fba7..26490335b8622e81ab757a4cece59d0b5a381069 100644 (file)
@@ -370,4 +370,5 @@ class api_v3_ACLPermissionTest extends CiviUnitTestCase {
   public function aclWhereOnlySecond($type, &$tables, &$whereTables, &$contactID, &$where) {
     $where = " contact_a.id > 1";
   }
+
 }
index 878ca5772d03c2384df723cead19c87262d77977..e8b5ff06dbfcb6b2e9e80eda5d66f9e3719fa9af 100644 (file)
@@ -98,9 +98,10 @@ class api_v3_APIStandardsTest extends CiviUnitTestCase {
    * the $params passed in is not an array.
    */
   public function testParamsNotArray() {
-    /*I have commented this out as the check for is_array has been moved to civicrm_api. But keeping in place as
-    * this test, in contrast to the standards test, tests all existing API rather than just CRUD ones
-    * so want to keep code for re-use
+    /* @codingStandardsIgnoreStart
+     * I have commented this out as the check for is_array has been moved to civicrm_api. But keeping in place as
+     * this test, in contrast to the standards test, tests all existing API rather than just CRUD ones
+     * so want to keep code for re-use
         $files = $this->getAllFilesinAPIDir();
         $this->assertGreaterThan(1, count($files),"something has gone wrong listing the files in line " . __LINE__);
         $this->requireOnceFilesArray($files);
@@ -118,7 +119,8 @@ class api_v3_APIStandardsTest extends CiviUnitTestCase {
               continue;
             }
 
-        }*/
+        }
+    @codingStandardsIgnoreEnd */
   }
 
   /**
@@ -172,4 +174,5 @@ class api_v3_APIStandardsTest extends CiviUnitTestCase {
     }
     return $functions;
   }
+
 }
index f6b4ed2abbf7ab39b80fcebf85f88a1c6f3eb10d..665f8d588d04961eccb371ea8f91d31f0534ddc2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
index a017a43bf9e24d361e8231e4ac4b64553d8b8670..ed1b74ea355667ce5e7f0cca5c276edd3ae31a25 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -83,6 +83,7 @@ class api_v3_APIWrapperTest extends CiviUnitTestCase {
     $this->assertEquals('First', $result['values'][$result['id']]['first_name']);
     $this->assertEquals('MUNGE! First Last', $result['values'][$result['id']]['display_name_munged']);
   }
+
 }
 
 /**
@@ -113,4 +114,5 @@ class api_v3_APIWrapperTest_Impl implements API_Wrapper {
     }
     return $result;
   }
+
 }
index 8e77611cc517bfb6799b5f41f4743dfb398342d8..d9988a61196033a4f17a2898daaab8a5e922352e 100644 (file)
@@ -105,4 +105,5 @@ class api_v3_ActivityContactTest extends CiviUnitTestCase {
     $this->callAPIFailure('ActivityContact', 'Get', array('activity_id' => 'abc'));
     $this->callAPIFailure('ActivityContact', 'Get', array('record_type_id' => 'abc'));
   }
+
 }
index 65aca47531a33c687696809fc2b69f9edfcee280..03b24655d05cc29a78e55a2e058a1374ae864833 100644 (file)
@@ -1177,4 +1177,5 @@ class api_v3_ActivityTest extends CiviUnitTestCase {
       $this->assertTrue(is_array($value), $key . " is not an array in line " . __LINE__);
     }
   }
+
 }
index c6ec4a41d613759190528d40f406f8b7e9d8f4a2..890e03f32b1740404e9def8cda9a63ad22fc116c 100644 (file)
@@ -94,4 +94,5 @@ class api_v3_ActivityTypeTest extends CiviUnitTestCase {
     );
     $result = $this->callAPISuccess('activity_type', 'delete', $params, __FUNCTION__, __FILE__);
   }
+
 }
index a890a70ed9567f630953fb9264447eed7ab171f2..59044b6251e78728e05f21ccd613cd07fba88727 100644 (file)
@@ -346,4 +346,5 @@ class api_v3_AddressTest extends CiviUnitTestCase {
     $this->assertEquals(1, $check);
     $this->callAPISuccess('address', 'delete', array('id' => $address1['id']));
   }
+
 }
index ba828c6cc914427232f2f09031494b522f46306e..8ddcd46251742f350416ad5186a83a27376f64ff 100644 (file)
@@ -48,7 +48,7 @@ class api_v3_AllTests extends CiviTestSuite {
    * @param string $theClass
    * @param string $name
    */
-  function __construct($theClass = '', $name = '') {
+  public function __construct($theClass = '', $name = '') {
     parent::__construct($theClass, $name);
   }
 
@@ -56,7 +56,7 @@ class api_v3_AllTests extends CiviTestSuite {
    */
   private static function getInstance() {
     if (is_null(self::$instance)) {
-      self::$instance = new self;
+      self::$instance = new self();
     }
     return self::$instance;
   }
@@ -68,6 +68,7 @@ class api_v3_AllTests extends CiviTestSuite {
     $inst = self::getInstance();
     return $inst->implSuite(__FILE__);
   }
+
 }
 // class api_v3_AllTests
 
index d0e852c33df0667fd880ebe185f1ac9f8435f13c..76fc5eca2617379dbb1253081b609699422be0a3 100644 (file)
@@ -592,4 +592,5 @@ class api_v3_AttachmentTest extends CiviUnitTestCase {
 
     }
   }
+
 }
index a0e6c343cd75a946fb9aca78ac67bec43800281b..5ca467eae675171c450b4f26ff25545667ffea62 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
index 8af6e8076bc0e150e4007dea6678555de04ad98a..7df9c9cdcc5e5ee64b1968959d1241b6047ef5e5 100644 (file)
@@ -68,4 +68,5 @@ class api_v3_CRM11793Test extends CiviUnitTestCase {
       $this->assertEquals($contact['contact_type'], $contactType, "In line " . __LINE__);
     }
   }
+
 }
index bd56ce7f595c03b102e0c0de6ce7e05cf446806e..ed1a7194cd0a941eead4084379bfaceab6be48bc 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -73,4 +73,5 @@ class api_v3_CampaignTest extends CiviUnitTestCase {
     $checkDeleted = $this->callAPISuccess('campaign', 'get', array());
     $this->assertEquals(0, $checkDeleted['count'], 'In line ' . __LINE__);
   }
+
 }
index 10d4b9ec6a3f6b3af8c99f6a714c990df11c8da5..76780b16eb07c8992813263c0e72ef7cadc3ec3e 100644 (file)
@@ -372,4 +372,5 @@ class api_v3_CaseTest extends CiviCaseTestCase {
     $this->customFieldDelete($custom_ids['custom_field_id']);
     $this->customGroupDelete($custom_ids['custom_group_id']);
   }
+
 }
index b5366899b6bc5792b6240798caf9169c7347c73f..0a2522eb7a9137c468d7679c381395dad00e70c7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviCaseTestCase.php';
 
@@ -227,4 +227,5 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
     $getCaseType = $this->callAPISuccess('CaseType', 'get', array('id' => $createCaseType['id']));
     $this->assertEquals(0, $getCaseType['count']);
   }
+
 }
index baa5501acb0e3a3801ed616479990d25e5aacd0e..ece88d4c7ac7d92299caafbcee477c7484fbbd9f 100644 (file)
@@ -144,4 +144,5 @@ class api_v3_ConstantTest extends CiviUnitTestCase {
     $this->assertContains('POP3', $result['values'], "In line " . __LINE__);
     $this->assertContains('Localdir', $result['values'], "In line " . __LINE__);
   }
+
 }
index 64082d036ae5de7fa4b3ba1956a0af6f914668d1..e806dbeef675c6accf70a0ffeabe2966f2bd3335 100644 (file)
@@ -1996,4 +1996,5 @@ class api_v3_ContactTest extends CiviUnitTestCase {
       $this->assertArrayKeyExists($action, $result['deprecated']);
     }
   }
+
 }
index 84665931eb975a4c0ffdec5ab8ae68f7dae8dc87..0c03d93b60e3b7272d3a0085d173644a521faba7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -386,4 +386,5 @@ class api_v3_ContactTypeTest extends CiviUnitTestCase {
     );
     $this->callAPISuccess('contact', 'delete', $params);
   }
+
 }
index 11692b6931a77a8882c1fec73c9063b8bc4a2439..7c2263f300a9da61793e28c79f90eeb16169ce38 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -506,4 +506,5 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
     $unitTest = new CiviUnitTestCase();
     $unitTest->quickCleanup($tablesToTruncate);
   }
+
 }
index 33c5ac94a52e00c31873614309ba68a3708c0678..0664c8a8ccbb3d1bac1be97dacb0d08a438fd3a7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -86,4 +86,5 @@ class api_v3_ContributionRecurTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess($this->_entity, 'getfields', array('action' => 'create'));
     $this->assertEquals(12, $result['values']['start_date']['type']);
   }
+
 }
index 7335251319d091349d12f37ac33d500b79396bd5..01c07100ee08a8a429431c45c1c8446bbfa8db37 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -369,4 +369,5 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase {
     $this->assertEquals($p2['amount'], $res['amount'], 'In line ' . __LINE__);
     $this->assertEquals($p2['currency'], $res['currency'], 'In line ' . __LINE__);
   }
+
 }
index 5c93c7cd62093181bc7594610938005992875223..6ce910e49005da133e5e29f4df5b2d7b412cf458 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 require_once 'CiviTest/CiviMailUtils.php';
@@ -262,6 +262,10 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
   }
 
   ///////////////// civicrm_contribution_
+
+  /**
+   * Create an contribution_id=FALSE and financial_type_id=Donation.
+   */
   public function testCreateEmptyContributionIDUseDonation() {
     $params = array(
       'contribution_id' => FALSE,
@@ -342,11 +346,10 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->assertEquals(0, $lineItems['count']);
   }
 
-  /*
+  /**
    * Test checks that passing in line items suppresses the create mechanism
    */
   public function testCreateContributionChainedLineItems() {
-
     $params = array(
       'contact_id' => $this->_individualId,
       'receive_date' => '20120511',
@@ -460,9 +463,9 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->assertArrayHasKey('payment_instrument', $contribution['values'][0]);
     $this->assertEquals('Cash', $contribution['values'][0]['payment_instrument']);
     $this->assertEquals(1, $contribution['count']);
-    $contribution = $this->callAPISuccess('contribution', 'get',array('sequential' => 1, 'payment_instrument' => 'Cash'));
+    $contribution = $this->callAPISuccess('contribution', 'get', array('sequential' => 1, 'payment_instrument' => 'Cash'));
     $this->assertArrayHasKey('payment_instrument', $contribution['values'][0]);
-    $this->assertEquals('Cash',$contribution['values'][0]['payment_instrument']);
+    $this->assertEquals('Cash', $contribution['values'][0]['payment_instrument']);
     $this->assertEquals(1, $contribution['count']);
     $contribution = $this->callAPISuccess('contribution', 'get', array(
       'sequential' => 1,
@@ -717,7 +720,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->contributionDelete($contributionId);
   }
 
-  /*
+  /**
    * Function tests that additional financial records are created when fee amount is recorded
    */
   public function testCreateContributionWithFee() {
@@ -856,7 +859,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->_checkFinancialRecords($contribution, 'payLater');
   }
 
-  /*
+  /**
    * Function tests that additional financial records are created when online contribution with pending option
    * is created
    */
@@ -901,7 +904,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->assertEquals('Check', $contribution['payment_instrument']);
   }
 
-  /*
+  /**
    * Function tests that line items, financial records are updated when contribution amount is changed
    */
   public function testCreateUpdateContributionChangeTotal() {
@@ -940,7 +943,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->assertEquals('125.00', $fitemAmount);
   }
 
-  /*
+  /**
    * Function tests that line items, financial records are updated when pay later contribution is received
    */
   public function testCreateUpdateContributionPayLater() {
@@ -968,7 +971,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->_checkFinancialTrxn($contribution, 'payLater');
   }
 
-  /*
+  /**
    * Function tests that financial records are updated when Payment Instrument is changed
    */
   public function testCreateUpdateContributionPaymentInstrument() {
@@ -993,7 +996,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->_checkFinancialTrxn($contribution, 'paymentInstrument', $instrumentId);
   }
 
-  /*
+  /**
    * Function tests that financial records are added when Contribution is Refunded
    */
   public function testCreateUpdateContributionRefund() {
@@ -1018,7 +1021,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->_checkFinancialItem($contribution['id'], 'refund');
   }
 
-  /*
+  /**
    * Function tests invalid contribution status change
    */
   public function testCreateUpdateContributionInValidStatusChange() {
@@ -1040,7 +1043,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
 
   }
 
-  /*
+  /**
    * Function tests that financial records are added when Pending Contribution is Canceled
    */
   public function testCreateUpdateContributionCancelPending() {
@@ -1065,7 +1068,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     $this->_checkFinancialItem($contribution['id'], 'cancelPending');
   }
 
-  /*
+  /**
    * Function tests that financial records are added when Financial Type is Changed
    */
   public function testCreateUpdateContributionChangeFinancialType() {
@@ -1101,8 +1104,11 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     ));
     $this->assertEquals(2, $contribution['contribution_status_id']);
   }
-  //To Update Contribution
-  //CHANGE: we require the API to do an incremental update
+
+  /**
+   * To Update Contribution
+   * CHANGE: we require the API to do an incremental update
+   */
   public function testCreateUpdateContribution() {
 
     $contributionID = $this->contributionCreate($this->_individualId, $this->_financialTypeId, 'idofsh', 212355);
@@ -1171,6 +1177,10 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
   }
 
   ///////////////// civicrm_contribution_delete methods
+
+  /**
+   * Attempt (but fail) to delete a contribution without parameters.
+   */
   public function testDeleteEmptyParamsContribution() {
     $params = array();
     $this->callAPIFailure('contribution', 'delete', $params);
@@ -1620,7 +1630,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
    *
    * @return null|string
    */
-  function _getFinancialTrxnAmount($contId) {
+  public function _getFinancialTrxnAmount($contId) {
     $query = "SELECT
      SUM( ft.total_amount ) AS total
      FROM civicrm_financial_trxn AS ft
@@ -1637,7 +1647,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
    *
    * @return null|string
    */
-  function _getFinancialItemAmount($contId) {
+  public function _getFinancialItemAmount($contId) {
     $lineItem = key(CRM_Price_BAO_LineItem::getLineItems($contId, 'contribution'));
     $query = "SELECT
      SUM(amount)
@@ -1909,4 +1919,5 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
       $this->assertDBCompareValues('CRM_Financial_DAO_FinancialItem', $fitemParams, $compareParams);
     }
   }
+
 }
index f4e913e91d5eed63bb8a61edb44d950f2c871944..43f5a437dbc1544242f3d823650c1d93d2c771fd 100644 (file)
@@ -115,4 +115,5 @@ class api_v3_CountryTest extends CiviUnitTestCase {
     ));
     $this->assertEquals(1, $check);
   }
+
 }
index a4bb9e14eaf5b4124db21b207767f25702e885bc..de09416c29e238561a692150e7198595448dcad5 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *  Include class definitions
@@ -149,8 +149,8 @@ class api_v3_CustomFieldTest extends CiviUnitTestCase {
     }
   }
   /*
-  * Can't figure out the point of this?
-  */
+   * Can't figure out the point of this?
+   */
   /**
    * @param array $params
    */
@@ -170,14 +170,14 @@ class api_v3_CustomFieldTest extends CiviUnitTestCase {
   public function _buildParams($gid, $htype, $dtype) {
     $params = $this->_buildBasicParams($gid, $htype, $dtype);
     /* //Not Working for any type. Maybe redundant with testCustomFieldCreateWithOptionValues()
-        if ($htype == 'Multi-Select')
-            $params = array_merge($params, array(
-                         'option_label'    => array( 'Label1','Label2'),
-                         'option_value'    => array( 'val1', 'val2' ),
-                         'option_weight'   => array( 1, 2),
-                         'option_status'   => array( 1, 1),
-                         ));
-    */
+    if ($htype == 'Multi-Select')
+    $params = array_merge($params, array(
+    'option_label'    => array( 'Label1','Label2'),
+    'option_value'    => array( 'val1', 'val2' ),
+    'option_weight'   => array( 1, 2),
+    'option_status'   => array( 1, 1),
+    ));
+     */
 
     return $params;
   }
@@ -207,15 +207,15 @@ class api_v3_CustomFieldTest extends CiviUnitTestCase {
    *  Test  using example code
    */
   /*function testCustomFieldCreateExample( )
-    {
+  {
 
 
-        $customGroup = $this->customGroupCreate('Individual','date_test_group',3);
-        require_once 'api/v3/examples/CustomField/Create.php';
-        $result = custom_field_create_example();
-        $expectedResult = custom_field_create_expectedresult();
-        $this->assertEquals($result,$expectedResult);
-    }*/
+  $customGroup = $this->customGroupCreate('Individual','date_test_group',3);
+  require_once 'api/v3/examples/CustomField/Create.php';
+  $result = custom_field_create_example();
+  $expectedResult = custom_field_create_expectedresult();
+  $this->assertEquals($result,$expectedResult);
+  }*/
 
   /**
    * Check with data type - Options with option_values
@@ -504,4 +504,5 @@ class api_v3_CustomFieldTest extends CiviUnitTestCase {
     sort($r);
     return $r;
   }
+
 }
index a3c2587ae4f3c5aff6a8dc56c27d39b3797b5cd5..26f1509f780f5a77b3ce101981895bad8a74b91a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -374,4 +374,5 @@ class api_v3_CustomGroupTest extends CiviUnitTestCase {
       $this->assertEquals($value, $values[$key], $key . " doesn't match " . print_r($values, TRUE) . 'in line' . __LINE__);
     }
   }
+
 }
index a0b658801f3c1ea76dfa601dc013879df5fa64ec..b2738166372a04efeffb5f5ad79e834e8b6cbedf 100644 (file)
@@ -68,4 +68,5 @@ class api_v3_CustomSearchTest extends CiviUnitTestCase {
       OR label = "CRM_Contact_Form_Search_Custom_Examplez"
       ');
   }
+
 }
index 423208911e4dce1970ed32ee61b423f518ef370d..9e1825c5809cbe4f2288f7372274ac1872f0fb65 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -285,4 +285,5 @@ class api_v3_CustomValueContactTypeTest extends CiviUnitTestCase {
 
     $this->assertEquals($getContact['values'][$this->individualStudent]["custom_{$this->IndiStudentField['id']}"], 'Test String', 'In line ' . __LINE__);
   }
+
 }
index ecc27bd6430a6bf6dc893b2668a00191b8aff4db..ae837aae688e825184a4f7d52d721246f0fc1357 100644 (file)
@@ -173,4 +173,5 @@ class api_v3_CustomValueTest extends CiviUnitTestCase {
     $this->assertEquals('second multi value 3', $result['values'][$firstCustomField][4]);
     $this->assertEquals('second multi value 3', $result['values'][$firstCustomField]['latest']);
   }
+
 }
index a599b19012e48480b0187b9183b3e93b79155c0c..15cfc18e5f2f509a24ed7bdde142fdb2ddac3a49 100644 (file)
@@ -75,4 +75,5 @@ class api_v3_DashboardContactTest extends CiviUnitTestCase {
     $newCount = CRM_Core_DAO::singleValueQuery("select count(*) from civicrm_dashboard_contact where contact_id = {$contact['id']} AND is_active = 1 AND dashboard_id = {$dashresult['id']}");
     $this->assertEquals($oldCount + 1, $newCount);
   }
+
 }
index 68a3a61781aecc25bd627d7a708dc30833c1f013..41c7988ac1ad5bbeef8a5fac15ba6363dd194857 100644 (file)
@@ -80,4 +80,5 @@ class api_v3_DashboardTest extends CiviUnitTestCase {
     $newCount = CRM_Core_DAO::singleValueQuery('select count(*) from civicrm_dashboard');
     $this->assertEquals($oldCount, $newCount);
   }
+
 }
index 430f74d6cc50f6ec96d3c690e2cf4e0b7ef212d4..3015a068e068b3eee1d356ac64954e25622d24b8 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -36,7 +36,7 @@ require_once 'CiviTest/CiviUnitTestCase.php';
 class api_v3_DomainTest extends CiviUnitTestCase {
 
   /* This test case doesn't require DB reset - apart from
-       where cleanDB() is called. */
+  where cleanDB() is called. */
 
 
   public $DBResetRequired = FALSE;
@@ -143,11 +143,10 @@ class api_v3_DomainTest extends CiviUnitTestCase {
   }
 
   ///////////////// civicrm_domain_create methods
-  /*
-    * This test checks for a memory leak observed when doing 2 gets on current domain
-    */
-
 
+  /**
+   * This test checks for a memory leak observed when doing 2 gets on current domain
+   */
   public function testGetCurrentDomainTwice() {
     $domain = $this->callAPISuccess('domain', 'getvalue', array(
       'current_domain' => 1,
@@ -179,4 +178,5 @@ class api_v3_DomainTest extends CiviUnitTestCase {
   public function testCreateWithEmptyParams() {
     $result = $this->callAPIFailure('domain', 'create', array());
   }
+
 }
index 77608a0191f21c82cb6bbbe9e3e8631a8708997e..7f078339d67b3030c38793736126606f8f12c5af 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -76,13 +76,11 @@ class api_v3_EmailTest extends CiviUnitTestCase {
     $delresult = $this->callAPISuccess('email', 'delete', array('id' => $result['id']));
   }
 
-  /*
+  /**
    * If a new email is set to is_primary the prev should no longer be
    *
    * If is_primary is not set then it should become is_primary is no others exist
    */
-
-
   public function testCreateEmailPrimaryHandlingChangeToPrimary() {
     $params = $this->_params;
     unset($params['is_primary']);
@@ -378,4 +376,5 @@ class api_v3_EmailTest extends CiviUnitTestCase {
     $this->assertEquals(1, $get['values'][$emailID]['on_hold'], 'In line ' . __LINE__);
     $this->assertEquals('1-2@example.com', $get['values'][$emailID]['email'], 'In line ' . __LINE__);
   }
+
 }
index f2f99ce4c13d4351506b68997f64b2d64bd1468a..f84420ed5a2494c04d7f8e3370d01cbaa707df33 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -323,4 +323,5 @@ class api_v3_EntityTagTest extends CiviUnitTestCase {
     $this->assertEquals($result['removed'], 1);
     $this->assertEquals($result['not_removed'], 1);
   }
+
 }
index 0f5662e986d9fe33bdf83733ca8d70e418f958c7..6b5f19dd90bf575db99c8ac6c3bc9f99f367d99c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -175,13 +175,13 @@ class api_v3_EventTest extends CiviUnitTestCase {
 
   /*
   public function testGetIdOfEventByEventTitle() {
-    $params = array(      'title' => 'Annual CiviCRM meet',
-      'return' => 'id'
-    );
+  $params = array(      'title' => 'Annual CiviCRM meet',
+  'return' => 'id'
+  );
 
-    $result = $this->callAPISuccess('Event', 'Get', $params);
+  $result = $this->callAPISuccess('Event', 'Get', $params);
   }
-  */
+   */
 
 
   /**
@@ -550,4 +550,5 @@ class api_v3_EventTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess('event', 'getfields', $params);
     $this->assertEquals(1, $result['values']['id']['api.required']);
   }
+
 }
index de1e20dee86ba1363fbcfeb279b062e7d0d76813..29e0e6dae3296c7241c6b85ac8ab541fbe595420 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -90,7 +90,7 @@ class api_v3_GrantTest extends CiviUnitTestCase {
         array('label' => 'my goat', 'value' => 'goat', 'is_active' => TRUE, 'weight' => 2),
         array('label' => 'mohair', 'value' => 'wool', 'is_active' => TRUE, 'weight' => 3),
         array('label' => 'hungry', 'value' => '', 'is_active' => TRUE, 'weight' => 3),
-      )
+      ),
     ));
     $columnName = $result['values'][$result['id']]['column_name'];
     $ids['custom_field_id'] = $result['id'];
@@ -157,14 +157,13 @@ class api_v3_GrantTest extends CiviUnitTestCase {
     $this->assertEquals(0, $checkDeleted['count'], 'In line ' . __LINE__);
   }
 
-  /*
-  * This is a test to check if setting fields one at a time alters other fields
-  * Issues Hit so far =
-  * 1) Currency keeps getting reset to USD -  BUT this may be the only enabled currency
-  *  - in which case it is valid
-  * 2)
-  */
-
+  /**
+   * This is a test to check if setting fields one at a time alters other fields
+   * Issues Hit so far =
+   * 1) Currency keeps getting reset to USD -  BUT this may be the only enabled currency
+   *  - in which case it is valid
+   * 2)
+   */
   public function testCreateAutoGrant() {
     $entityName = $this->_entity;
     $baoString = 'CRM_Grant_BAO_Grant';
@@ -242,4 +241,5 @@ class api_v3_GrantTest extends CiviUnitTestCase {
     $baoObj->deleteTestObjects($baoString);
     $baoObj->free();
   }
+
 }
index baa5ad2b3757e082724a8505cffba44dee054de8..35b4cd453350238ec58cdde1240f35a577146a63 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -83,6 +83,10 @@ class api_v3_GroupContactTest extends CiviUnitTestCase {
   }
 
   ///////////////// civicrm_group_contact_get methods
+
+  /**
+   * Test GroupContact.get by ID.
+   */
   public function testGet() {
     $params = array(
       'contact_id' => $this->_contactId,
@@ -161,6 +165,10 @@ class api_v3_GroupContactTest extends CiviUnitTestCase {
   }
 
   ///////////////// civicrm_group_contact_remove methods
+
+  /**
+   * Test GroupContact.delete by contact+group ID.
+   */
   public function testDelete() {
     $params = array(
       'contact_id' => $this->_contactId,
@@ -183,4 +191,5 @@ class api_v3_GroupContactTest extends CiviUnitTestCase {
     $this->assertEquals(0, $result['count'], "in line " . __LINE__);
     $this->assertArrayNotHasKey('id', $result, "in line " . __LINE__);
   }
+
 }
index dbc7b69efe93167c8d2a3389d69e658db9df171c..ccc8b8e1fbc9961d226d076605ec2bfc5389cd0a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -108,7 +108,7 @@ class api_v3_GroupNestingTest extends CiviUnitTestCase {
         'id' => 1,
         'child_group_id' => 2,
         'parent_group_id' => 1,
-      )
+      ),
     );
 
     $this->assertEquals($expected, $result['values']);
@@ -241,4 +241,5 @@ class api_v3_GroupNestingTest extends CiviUnitTestCase {
   public function testDeleteWithEmptyParams() {
     $result = $this->callAPIFailure('group_nesting', 'delete', array());
   }
+
 }
index 00b5b023f5ac0c1730729ffb7fb93a5b24894183..a44a7508afaedd19b4806d13fdc31cc88fa5b85f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -217,4 +217,5 @@ class api_v3_GroupOrganizationTest extends CiviUnitTestCase {
     $result = $this->callAPIFailure('group_organization', 'delete', $paramsDelete);
     $this->assertEquals($result['error_message'], 'Mandatory key(s) missing from params array: id');
   }
+
 }
index 0f2f859a9b5c98313ff3075493f877eccc7fd90f..8e9f1484f8f2a8f37559499a0c87eb2438557f0c 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -145,4 +145,5 @@ class api_v3_GroupTest extends CiviUnitTestCase {
     $result = $this->callAPIAndDocument('group', 'getfields', $params, __FUNCTION__, __FILE__, $description, 'getfields', 'getfields');
     $this->assertEquals(1, $result['values']['is_active']['api.default']);
   }
+
 }
index f36ca49a78714f0481c847f7088e8ecae1a5fd67..a9866322e579e75663aa08bbfba1bae0c90ad587 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -86,4 +86,5 @@ class api_v3_ImTest extends CiviUnitTestCase {
     $checkDeleted = $this->callAPISuccess($this->_entity, 'get', array());
     $this->assertEquals(1, $checkDeleted['count'], 'In line ' . __LINE__);
   }
+
 }
index 0db4658de935f2325d7addb1dcbdf26ff69542b7..65f445c257a7bb45a1c0cddaadae2bed6e85aa13 100644 (file)
@@ -105,7 +105,7 @@ class api_v3_JobProcessMailingTest extends CiviUnitTestCase {
       $this->callAPISuccess('group_contact', 'create', array(
           'contact_id' => $contactID,
           'group_id' => $groupID,
-          'status' => 'Added'
+          'status' => 'Added',
         ));
     }
   }
@@ -123,4 +123,5 @@ class api_v3_JobProcessMailingTest extends CiviUnitTestCase {
     }
     return $recipients;
   }
+
 }
index eb40d6b42bab9a112e3703a8791955935aecd31d..cc1396ef2565825c08c68d3c9c05f3aaa87770d2 100644 (file)
@@ -310,4 +310,5 @@ class api_v3_JobTest extends CiviUnitTestCase {
       $params['description'] = 'Go Go you good thing';
     }
   }
+
 }
index a32a05db7cbc2910304e7ea0e9050b4748173368..2bc0244f49b5477475958db43efd9f4f1e64b2c6 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
index c3e66bb0e1340643109ad9ba7e2d8d4af085ff1f..e4be275731958e4788f5e7bcfdeaa86c04b0e5fc 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
index abc882f6bc5a5843046822a9b64e3259cf27ee63..071e0763570dbd38b4c6043a1937764fe7e7a8d6 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -110,4 +110,5 @@ class api_v3_MailSettingsTest extends CiviUnitTestCase {
     $this->callAPIAndDocument('MailSettings', 'get', $params, __FUNCTION__, __FILE__, $description, $subFile);
     $this->assertEquals(0, $this->callAPISuccess('MailSettings', 'getcount', array()));
   }
+
 }
index 6a19c5de2e159673db1391f6da8d4316a2bbde34..f4da26506a5ef0a44fe19207e322ff6fe330babd 100755 (executable)
@@ -195,4 +195,5 @@ class api_v3_MailingABTest extends CiviUnitTestCase {
       ),
     ));
   }
+
 }
index 1d0e07cd7799141aca6971d144a2a856b52a12af..1a283820913a0e807d21491cfa5e46c06cb7be32 100644 (file)
@@ -191,4 +191,5 @@ class api_v3_MailingContactTest extends CiviUnitTestCase {
     $this->assertEquals($result['values'][2]['creator_id'], 3, "In line " . __LINE__);
     $this->assertEquals($result['values'][2]['creator_name'], "xyz1, abc1", "In line " . __LINE__);
   }
+
 }
index 79ad0e46ec2c1b0e4dcdd13ab55c75c984286781..d076c0bcca88e4d48379e7781a0cd3d353ac1a98 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -184,4 +184,5 @@ class api_v3_MailingGroupTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess('mailing_event_confirm', 'create', $params);
     $this->contactDelete($contactID);
   }
+
 }
index a6f8b4fa4e49133b8fc7f8fcd2d733f471bb0d41..4ef558c753f28bafbc5e1c843054003b29b86c7a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -142,4 +142,5 @@ class api_v3_MembershipPaymentTest extends CiviUnitTestCase {
     $this->assertEquals($result['values'][$result['id']]['membership_id'], $params['membership_id'], 'Check Membership Id');
     $this->assertEquals($result['values'][$result['id']]['contribution_id'], $params['contribution_id'], 'Check Contribution Id');
   }
+
 }
index 1d05e79e7da23e29b51108d6724e621c61792756..3149530ef98228afdcf23ee68e797058e0bf6de4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -133,6 +133,10 @@ class api_v3_MembershipStatusTest extends CiviUnitTestCase {
 
 
   ///////////////// civicrm_membership_status_delete methods
+
+  /**
+   * Attempt (and fail) to delete membership status without an parameters.
+   */
   public function testDeleteEmptyParams() {
     $result = $this->callAPIFailure('membership_status', 'delete', array());
   }
@@ -181,4 +185,5 @@ class api_v3_MembershipStatusTest extends CiviUnitTestCase {
     ));
     $result = $this->callAPISuccess('membership_status', 'delete', $params);
   }
+
 }
index 595d0769abed0a000d46375e65d08f42c4639ad9..d5eb12c08f3824ddc4b019eb86d6c8aa9bb6dd23 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *  Test APIv3 civicrm_membership functions
@@ -1032,4 +1032,5 @@ class api_v3_MembershipTest extends CiviUnitTestCase {
     $this->assertEquals('2009-12-21', $result['end_date']);
 
   }
+
 }
index 5dcf9a59fd28a88c2c4a5baf7e1f3e45bbd8c102..5ee2dd1b5ff4c558a400436cb6c52fd6b66468d7 100644 (file)
@@ -1,28 +1,28 @@
 <?php
 /*
- +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
- +--------------------------------------------------------------------+
- | This file is a part of CiviCRM.                                    |
- |                                                                    |
- | CiviCRM is free software; you can copy, modify, and distribute it  |
- | under the terms of the GNU Affero General Public License           |
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
- |                                                                    |
- | CiviCRM is distributed in the hope that it will be useful, but     |
- | WITHOUT ANY WARRANTY; without even the implied warranty of         |
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
- | See the GNU Affero General Public License for more details.        |
- |                                                                    |
- | You should have received a copy of the GNU Affero General Public   |
- | License and the CiviCRM Licensing Exception along                  |
- | with this program; if not, contact CiviCRM LLC                     |
- | at info[AT]civicrm[DOT]org. If you have questions about the        |
- | GNU Affero General Public License or the licensing of CiviCRM,     |
- | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
- +--------------------------------------------------------------------+
 +--------------------------------------------------------------------+
 | CiviCRM version 4.6                                                |
 +--------------------------------------------------------------------+
 | Copyright CiviCRM LLC (c) 2004-2014                                |
 +--------------------------------------------------------------------+
 | This file is a part of CiviCRM.                                    |
 |                                                                    |
 | CiviCRM is free software; you can copy, modify, and distribute it  |
 | under the terms of the GNU Affero General Public License           |
 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
 |                                                                    |
 | CiviCRM is distributed in the hope that it will be useful, but     |
 | WITHOUT ANY WARRANTY; without even the implied warranty of         |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
 | See the GNU Affero General Public License for more details.        |
 |                                                                    |
 | You should have received a copy of the GNU Affero General Public   |
 | License and the CiviCRM Licensing Exception along                  |
 | with this program; if not, contact CiviCRM LLC                     |
 | at info[AT]civicrm[DOT]org. If you have questions about the        |
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
  */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -74,12 +74,14 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
     $this->membershipTypeDelete($params);
   }
 
-  ///////////////// civicrm_membership_type_create methods
+  /**
+   * Civicrm_membership_type_create methods.
+   */
   public function testCreateWithEmptyParams() {
     $membershiptype = $this->callAPIFailure('membership_type', 'create', array());
     $this->assertEquals($membershiptype['error_message'],
       'Mandatory key(s) missing from params array: domain_id, member_of_contact_id, financial_type_id, duration_unit, duration_interval, name'
-    );
+                       );
   }
 
   public function testCreateWithoutMemberOfContactId() {
@@ -96,8 +98,8 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
     );
 
     $membershiptype = $this->callAPIFailure('membership_type', 'create', $params,
-      'Mandatory key(s) missing from params array: member_of_contact_id'
-    );
+                      'Mandatory key(s) missing from params array: member_of_contact_id'
+                                           );
   }
 
   public function testCreateWithoutContributionTypeId() {
@@ -115,7 +117,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
     $membershiptype = $this->callAPIFailure('membership_type', 'create', $params);
     $this->assertEquals($membershiptype['error_message'],
       'Mandatory key(s) missing from params array: financial_type_id'
-    );
+                       );
   }
 
   public function testCreateWithoutDurationUnit() {
@@ -133,7 +135,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
     $membershiptype = $this->callAPIFailure('membership_type', 'create', $params);
     $this->assertEquals($membershiptype['error_message'],
       'Mandatory key(s) missing from params array: duration_unit'
-    );
+                       );
   }
 
   public function testCreateWithoutDurationInterval() {
@@ -150,7 +152,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
     $membershiptype = $this->callAPIFailure('membership_type', 'create', $params);
     $this->assertEquals($membershiptype['error_message'],
       'Mandatory key(s) missing from params array: financial_type_id, duration_interval'
-    );
+                       );
   }
 
   public function testCreateWithoutNameandDomainIDandDurationUnit() {
@@ -167,7 +169,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
     $membershiptype = $this->callAPIFailure('membership_type', 'create', $params);
     $this->assertEquals($membershiptype['error_message'],
       'Mandatory key(s) missing from params array: domain_id, duration_unit, name'
-    );
+                       );
   }
 
   public function testCreateWithoutName() {
@@ -212,7 +214,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
     $membershiptype = $this->callAPIFailure('membership_type', 'create', $params);
     $this->assertEquals($membershiptype['error_message'],
       'Mandatory key(s) missing from params array: domain_id, member_of_contact_id, financial_type_id, duration_unit, duration_interval, name'
-    );
+                       );
   }
 
   public function testUpdateWithoutId() {
@@ -263,8 +265,8 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
       'id' => 'doesNotExist',
     );
     $membershiptype = $this->callAPIFailure('membership_type', 'delete', $params,
-      'Error while deleting membership type. id : ' . $params['id']
-    );
+                      'Error while deleting membership type. id : ' . $params['id']
+                                           );
   }
 
   public function testDelete() {
@@ -276,4 +278,5 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
 
     $result = $this->callAPIAndDocument('membership_type', 'delete', $params, __FUNCTION__, __FILE__);
   }
+
 }
index 29c1fbb580316f6e172da9a4935f3717510678f5..32c753ebcb0cda4a1d41f90bc7f0572e26befa2a 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
index 548669c9516ac90f3a24b713ce4cd11ee3ef6bef..e4b9d0df570a03735150d53bdae0ad09890543ad 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'tests/phpunit/CiviTest/CiviUnitTestCase.php';
 
@@ -259,6 +259,7 @@ class api_v3_NoteTest extends CiviUnitTestCase {
 
     $result = $this->callAPIAndDocument('note', 'delete', $params, __FUNCTION__, __FILE__);
   }
+
 }
 
 /**
index 8b6899d785d236ddc2b02c40638b07a984184a1f..d2e12a3c3ce7030a7818d2aeccf3b754f652e03e 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -45,10 +45,9 @@ class api_v3_OptionGroupTest extends CiviUnitTestCase {
     );
   }
 
-  /*
-  * Good to test option group as a representative on the Camel Case
-  */
-
+  /**
+   * Good to test option group as a representative on the Camel Case
+   */
   public function testGetOptionGroupGetFields() {
     $result = $this->callAPISuccess('option_group', 'getfields', array());
     $this->assertFalse(empty($result['values']), 'In line ' . __LINE__);
@@ -94,20 +93,19 @@ class api_v3_OptionGroupTest extends CiviUnitTestCase {
         'value' => 35,
         'is_default' => 1,
         'is_active' => 1,
-        'format.only_id' => 1
-      )
+        'format.only_id' => 1,
+      ),
     );
     $result = $this->callAPIAndDocument('OptionGroup', 'create', $params, __FUNCTION__, __FILE__);
     $this->assertEquals('civicrm_event.amount.560', $result['values'][0]['name'], 'In line ' . __LINE__);
-    $this->assertTrue(is_integer($result['values'][0]['api.OptionValue.create']));
+    $this->assertTrue(is_int($result['values'][0]['api.OptionValue.create']));
     $this->assertGreaterThan(0, $result['values'][0]['api.OptionValue.create']);
     $this->callAPISuccess('OptionGroup', 'delete', array('id' => $result['id']));
   }
 
-  /*
+  /**
    * Test the error message when a failure is due to a key duplication issue
    */
-
   public function testGetOptionCreateFailOnDuplicate() {
     $params = array(
       'sequential' => 1,
@@ -120,11 +118,11 @@ class api_v3_OptionGroupTest extends CiviUnitTestCase {
     $this->callAPISuccess('OptionGroup', 'delete', array('id' => $result1['id']));
   }
 
-  /*
+  /**
    * Test that transaction is completely rolled back on fail.
-   * Also check error returned
+   *
+   * Check error returned.
    */
-
   public function testGetOptionCreateFailRollback() {
     $countFirst = $this->callAPISuccess('OptionGroup', 'getcount', array(
         'options' => array('limit' => 5000),
@@ -171,4 +169,5 @@ class api_v3_OptionGroupTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess($this->_entity, 'create', $this->_params);
     $this->callAPIAndDocument('OptionGroup', 'delete', array('id' => $result['id']), __FUNCTION__, __FILE__);
   }
+
 }
index b7a754a7fbe39504ea935180f492a5b9bf0f2c54..c767a2318ab0396c41405e1801bf427a9a963efb 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -241,7 +241,8 @@ class api_v3_OptionValueTest extends CiviUnitTestCase {
       'option_group', 'get', array(
         'name' => 'gender',
         'sequential' => 1,
-      ));
+      )
+    );
     $this->assertAPISuccess($optionGroup);
     $params = array(
       'option_group_id' => $optionGroup['id'],
@@ -347,4 +348,5 @@ class api_v3_OptionValueTest extends CiviUnitTestCase {
     ));
     $this->assertEquals($val, 0, "update with group id is not proper " . __LINE__);
   }
+
 }
index 3d17b76cbadb47af4d9edb0a208a0af1b49a46c6..2fa25fc6ba4b5a76894678b90ddb219377e4580f 100644 (file)
@@ -395,4 +395,5 @@ class api_v3_ParticipantPaymentTest extends CiviUnitTestCase {
     }
     $this->assertDBCompareValues('CRM_Financial_DAO_FinancialItem', $fitemParams, $compareParams);
   }
+
 }
index 1e51b16218028b34f2e6822abc25a434ab9a015d..7e32e85f6052fdc0f9263ee28d5df186beffd67f 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -78,4 +78,5 @@ class api_v3_ParticipantStatusTypeTest extends CiviUnitTestCase {
     $checkDeleted = $this->callAPISuccess('ParticipantStatusType', 'Get', array());
     $this->assertEquals($entity['count'] - 1, $checkDeleted['count'], 'In line ' . __LINE__);
   }
+
 }
index a748e5029b8f113026714508839a5678f9f1b5c5..afcf812390aa1ae078dd7933304a071ca69eee8f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -521,7 +521,7 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
     $this->callAPISuccess('PriceFieldValue', 'delete', array('id' => $pfv2['id']));
     $this->callAPISuccess('PriceField', 'delete', array('id' => $pricefield['id']));
     $this->callAPISuccess('PriceSet', 'delete', array('id' => $priceset['id']));
-    */
+     */
   }
 
   /**
@@ -729,4 +729,5 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
     $this->assertEquals(1, $result['values'][$result['id']]['api.participant_payment.create']['count']);
     $this->callAPISuccess('contact', 'delete', array('id' => $result['id']));
   }
+
 }
index 874669c6b2da825d4f2e31b3c6134184b4fda1de..c200e11913431b82df07fb5d95d0884267258cf4 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -125,4 +125,5 @@ class api_v3_PaymentProcessorTest extends CiviUnitTestCase {
     $this->assertEquals(1, $results['count'], ' in line ' . __LINE__);
     $this->assertEquals('test@test.com', $results['values'][$results['id']]['user_name'], ' in line ' . __LINE__);
   }
+
 }
index fba29f681a65113345ff37a8530abf0971bf8998..23a29ab83cec8251853386c1bff586993bfcd5b3 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -253,4 +253,5 @@ class api_v3_PaymentProcessorTypeTest extends CiviUnitTestCase {
     $this->assertEquals(1, $result['count'], ' in line ' . __LINE__);
     $this->assertEquals('CRM_Core_Payment_APITest_12', $result['values'][$result['id']]['class_name'], ' in line ' . __LINE__);
   }
+
 }
index eb55bc4e8eb4cc10e611c49a69b09ea77b6b56bf..5bb8aff2aac5ae6adbdefbcf5864e76c283033f7 100644 (file)
@@ -153,4 +153,5 @@ class api_v3_PhoneTest extends CiviUnitTestCase {
     ));
     $this->assertEquals(1, $check);
   }
+
 }
index d34f02b0b09f3246978361a29fb7b00ff720ab1e..47328ef437db4bd799ff9b8884bbad4cfd7380f5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -273,4 +273,5 @@ class api_v3_PledgePaymentTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess('PledgePayment', 'GetFields', array());
     $this->assertType('array', $result);
   }
+
 }
index d1873c6b120436aca98f6b0462522c0a1637cfda..b8a62ee94036f7209e64134b72f15d5fdc727b86 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -515,4 +515,5 @@ class api_v3_PledgeTest extends CiviUnitTestCase {
     $pledgeID = array('id' => $result['id']);
     $pledge = $this->callAPISuccess('pledge', 'delete', $pledgeID);
   }
+
 }
index e58c6f165612f62d47f3cdffd087b8cd04aa7f32..eb96412640eada734fca4ceb76f5ff3a030e69db 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
index 5943d6b2e6668ff628d5e29bc3f0cea014eeb40d..3d87b19f71886b61542f22ac69a567a53eb1ba8f 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -203,4 +203,5 @@ class api_v3_PriceFieldValueTest extends CiviUnitTestCase {
     $this->callAPISuccess($this->_entity, 'delete', array('id' => $result1['id']));
     $this->callAPISuccess($this->_entity, 'delete', array('id' => $result2['id']));
   }
+
 }
index 350ed679fd61952ebc46d54c5609e27046eb1b82..804235483c7a566070317569eae3866083f4e2af 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -158,4 +158,5 @@ class api_v3_PriceSetTest extends CiviUnitTestCase {
     $unitTest = new CiviUnitTestCase();
     $unitTest->quickCleanup($tablesToTruncate);
   }
+
 }
index 676314cc5f1fcf7f16b3bca348632adf9a031243..5a447025a5a66152ce11247409d0e0c75adad3f6 100644 (file)
@@ -53,4 +53,5 @@ class api_v3_ProductTest extends CiviUnitTestCase {
     $options = $this->callAPISuccess($this->_entity, 'getoptions', array('field' => 'period_type'));
     $this->assertArrayHasKey('rolling', $options['values']);
   }
+
 }
index 37e5bb3e151a102ac3ef67aff09963466d68ed27..a286365914ea0bdc4f5dbd9da3c72f64581c435d 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *  Include class definitions
@@ -936,4 +936,5 @@ class api_v3_ProfileTest extends CiviUnitTestCase {
         'contact_type' => 'Contact',
       ));
   }
+
 }
index aa4e8573688ff26432645ae063a6a2f4c580c86f..65a2fee0a22b6e82af551c47fddd4ca64b2b435b 100644 (file)
@@ -1118,4 +1118,5 @@ class api_v3_RelationshipTest extends CiviUnitTestCase {
     $this->callAPISuccess($this->_entity, 'create', array('id' => $relationship['id'], 'is_active' => 0));
     $this->callAPISuccess($this->_entity, 'create', array('id' => $relationship['id'], 'is_active' => 1));
   }
+
 }
index 9354fab545eeea634d7e61f41fbc30610bc02827..55a8bed18214268bab761f6768a782979697f624 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 /*
  +--------------------------------------------------------------------+
@@ -49,7 +49,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -340,4 +340,5 @@ class api_v3_RelationshipTypeTest extends CiviUnitTestCase {
 
     return $this->relationshipTypeCreate($params);
   }
+
 }
index f7d02211d42084fc29263bfe54fdf7cfaaf91d7e..6108fa53ed83a6f84d29f5c11411ad6343e03825 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -131,7 +131,7 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase {
     $this->assertEquals('Default Organization', $result[0]['civicrm_contact_sort_name']);
     $this->assertEquals('Second Domain', $result[1]['civicrm_contact_sort_name']);
     $this->assertEquals('15 Main St', $result[1]['civicrm_address_street_address']);
-    */
+     */
   }
 
   /**
@@ -200,4 +200,5 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase {
 
     return $reportTemplates;
   }
+
 }
index addf0f1452c4e72ddcba61ca769c8b7fc8e093cd..e919ddaa73cf747ea11419beeef06cd7ed3d124f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -549,4 +549,5 @@ class api_v3_SettingTest extends CiviUnitTestCase {
     $this->assertArrayHasKey('extensionsDir', $result['values'][$dom['id']]);
     $this->assertEquals('Unconfirmed', $result['values'][$dom['id']]['tag_unconfirmed']);
   }
+
 }
index 7a5dcbd7777ff796cb29a0cb795786b70e0d3e40..5dbada0b4295a1ec703947176dfba2a4b7b00301 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
index fa1146ff655b379e298f3ae6e7e96dbdcb5e3e47..a56149017b23f21026673b83c9547d7ccab55bc2 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -47,12 +47,16 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
    */
   protected $deletableTestObjects;
 
-  /** This test case doesn't require DB reset */
+  /**
+   * This test case doesn't require DB reset.
+   */
   public $DBResetRequired = FALSE;
 
   protected $_entity;
 
-  /** Map custom group entities to civicrm components */
+  /**
+   * Map custom group entities to civicrm components.
+   */
   static $componentMap = array(
     'Contribution' => 'CiviContribute',
     'Membership' => 'CiviMember',
@@ -365,7 +369,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
       'CustomSearch',
       'Extension',
       'ReportTemplate',
-      'System'
+      'System',
     );
     if ($sequential === TRUE) {
       return $entitiesWithoutGet;
@@ -439,7 +443,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
       'PaymentProcessor',
       'Setting',
       'MailingContact',
-      'SystemLog'
+      'SystemLog',
       //skip this because it doesn't make sense to update logs,
     );
     if ($sequential === TRUE) {
@@ -550,7 +554,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
           'installments',
           'original_installment_amount',
           'next_pay_date',
-          'amount' // can't be changed through API,
+          'amount', // can't be changed through API,
         ),
         'break_return' => array(// if these are passed in they are retrieved from the wrong table
           'honor_contact_id',
@@ -597,11 +601,11 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     return $knownFailures[$entity][$key];
   }
 
-  /** testing the _get **/
+  /* ----- testing the _get  ----- */
 
   /**
    * @dataProvider toBeSkipped_get
-  entities that don't need a get action
+   *   Entities that don't need a get action
    * @param $Entity
    */
   public function testNotImplemented_get($Entity) {
@@ -928,10 +932,10 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
 
     // create entities
     $baoObj1 = CRM_Core_DAO::createTestObject($baoString, array('currency' => 'USD'));
-    $this->assertTrue(is_integer($baoObj1->id), 'check first id');
+    $this->assertTrue(is_int($baoObj1->id), 'check first id');
     $this->deletableTestObjects[$baoString][] = $baoObj1->id;
     $baoObj2 = CRM_Core_DAO::createTestObject($baoString, array('currency' => 'USD'));
-    $this->assertTrue(is_integer($baoObj2->id), 'check second id');
+    $this->assertTrue(is_int($baoObj2->id), 'check second id');
     $this->deletableTestObjects[$baoString][] = $baoObj2->id;
 
     // fetch first by ID
@@ -980,7 +984,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     }
   }
 
-  /** testing the _create **/
+  /* ---- testing the _create ---- */
 
   /**
    * @dataProvider toBeSkipped_create
@@ -1177,11 +1181,11 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
           if (isset($specs['pseudoconstant']['optionGroupName'])) {
             $optionGroupID = $this->callAPISuccess('option_group', 'getvalue', array(
                 'name' => 'pdf_format',
-                'return' => 'id'
+                'return' => 'id',
               ));
             $optionValue = $this->callAPISuccess('option_value', 'create', array(
                 'option_group_id' => $optionGroupID,
-                'label' => 'new option value'
+                'label' => 'new option value',
               ));
             $options['values'][] = $optionValue['id'];
           }
@@ -1214,7 +1218,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
             'update-result' => $update,
             'getsingle-params' => $checkParams,
             'getsingle-result' => $checkEntity,
-            'expected entity' => $entity
+            'expected entity' => $entity,
           ), TRUE));
       if ($resetFKTo) {
         //reset the foreign key fields because otherwise our cleanup routine fails & some other unexpected stuff can kick in
@@ -1230,9 +1234,9 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     $baoObj->free();
   }
 
-  /** testing the _getFields **/
+  /* ---- testing the _getFields ---- */
 
-  /** testing the _delete **/
+  /* ---- testing the _delete ---- */
 
   /**
    * @dataProvider toBeSkipped_delete
@@ -1403,7 +1407,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     while ($i < $count) {
       // create entities
       $baoObj = CRM_Core_DAO::createTestObject($baoString, array('currency' => 'USD'));
-      $this->assertTrue(is_integer($baoObj->id), 'check first id');
+      $this->assertTrue(is_int($baoObj->id), 'check first id');
       $this->deletableTestObjects[$baoString][] = $baoObj->id;
       $baos[] = $baoObj;
       $i++;
@@ -1557,4 +1561,5 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
       1 => array($eventId, 'Integer'),
     ));
   }
+
 }
index cf73f07b2d99b43490c0778bd366aa65d0c4fade..416ddb74c77e088965e08b4c9592200e41e8f9b2 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -100,4 +100,5 @@ class api_v3_SystemTest extends CiviUnitTestCase {
     $this->assertRegExp('/^[0-9]+\.[0-9]+\.[0-9a-z\-]+$/', $result['values'][0]['version']);
     $this->assertEquals('UnitTests', $result['values'][0]['uf']);
   }
+
 }
index 4f72a7e80d5d499d9f6f335e12e0c63aab961d54..bc8741f6aadb2e112852ee93d225bec03582631b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -199,4 +199,5 @@ class api_v3_TagTest extends CiviUnitTestCase {
     $this->assertEquals($this->tag['description'], $result['values'][0]['description'][0], 'In line ' . __LINE__);
     $this->assertEquals($this->tag['used_for'], $result['values'][0]['extra']['used_for'], 'In line ' . __LINE__);
   }
+
 }
index 81b7d4ca61bedba08f810495a9f4b02425bb23f5..d53c0dc14129fa692f005b2d69d8e29ae82c2c3d 100644 (file)
@@ -23,7 +23,7 @@
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -529,4 +529,5 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
     );
     $this->callAPIAndDocument('contribution', 'delete', $params, __FUNCTION__, __FILE__);
   }
+
 }
index 84b95fac103f18d8328068f370cd4cdd7c3e2f51..3fd2ed1ba0a72573563721311874e24d37c6950f 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -216,4 +216,5 @@ class api_v3_UFFieldTest extends CiviUnitTestCase {
       }
     }
   }
+
 }
index 52b31722555c76ad8dd8a94f3d5443ce627567cc..2c31be91f66d294db031729135c00934a7a00a32 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -207,4 +207,5 @@ class api_v3_UFGroupTest extends CiviUnitTestCase {
     $result = $this->callAPIAndDocument('uf_group', 'delete', $params, __FUNCTION__, __FILE__);
     $this->assertEquals(0, $this->callAPISuccess('uf_group', 'getcount', $params), "in line " . __LINE__);
   }
+
 }
index fa401b3d622d5a740803a6e66db3271de6935f54..b217000e0f3081b2ac35712048d410f3a25cf908 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -217,4 +217,5 @@ class api_v3_UFJoinTest extends CiviUnitTestCase {
     $expectedResult = UF_join_create_expectedresult();
     $this->assertEquals($result, $expectedResult);
   }
+
 }
index 2d3c575784dfb0aa1ed60886c988cb8d5d5bd22a..5c084778ebebcc110b56530fe9f0e5a0b2ccf0c5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 require_once 'CiviTest/CiviUnitTestCase.php';
@@ -142,4 +142,5 @@ class api_v3_UFMatchTest extends CiviUnitTestCase {
       'id' => $result['id'],
     )));
   }
+
 }
index a0086acdc09e4abe45499efd268711f92728520e..58a98039d44b8a24bb11f451250b212b8b012a68 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 require_once 'CRM/Utils/DeprecatedUtils.php';
@@ -189,7 +189,7 @@ class api_v3_UtilsTest extends CiviUnitTestCase {
       'note' => 'note',
       'contact_id' => $this->_contactID,
       'modified_date' => '2011-01-31',
-      'subject' => NULL
+      'subject' => NULL,
     );
 
     try {
@@ -255,7 +255,7 @@ class api_v3_UtilsTest extends CiviUnitTestCase {
       'end_date' => '',
       'membership_end_date' => '0',
       'join_date' => '2010-12-20',
-      'membership_start_date' => '2010-12-20'
+      'membership_start_date' => '2010-12-20',
     );
     $fields = civicrm_api3('Membership', 'getfields', array('action' => 'get'));
     _civicrm_api3_validate_fields('Membership', 'get', $params, $fields['values']);
@@ -312,4 +312,5 @@ class api_v3_UtilsTest extends CiviUnitTestCase {
     $this->assertEquals('Household', $result['values']['contact_type']['options']['Household']);
     $this->assertEquals('HTML', $result['values']['preferred_mail_format']['options']['HTML']);
   }
+
 }
index 23fd4fab400934e9eb66aa3c92b03031719e9ce8..1aa16f2ca0fc107c2f34992b3214eba45d93ea92 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 require_once 'CiviTest/CiviUnitTestCase.php';
 
@@ -93,7 +93,7 @@ class api_v3_WebsiteTest extends CiviUnitTestCase {
     $result = $this->callAPIAndDocument($this->_entity, 'get', array(
       'options' => array(
         'metadata' => array('fields'),
-      )
+      ),
     ), __FUNCTION__, __FILE__, 'Demonostrates returning field metadata', 'GetWithMetadata');
     $this->assertEquals('Website', $result['metadata']['fields']['url']['title']);
   }
@@ -105,4 +105,5 @@ class api_v3_WebsiteTest extends CiviUnitTestCase {
     $result = $this->callAPIAndDocument($this->_entity, 'getfields', array('action' => 'get'), __FUNCTION__, __FILE__);
     $this->assertArrayKeyExists('url', $result['values']);
   }
+
 }
index 9b0f8a1a1e2173e2a68849ae66628b0cb942bd64..2b7bb51b3d226f427614b44d068e7b3e487a9953 100644 (file)
@@ -1,11 +1,11 @@
 module('group a');
 
-test( "a basic test example", function() {
+test("a basic test example", function() {
   var value = "hello";
-  equal( value, "hello", "We expect value to be hello" );
+  equal(value, "hello", "We expect value to be hello");
 });
 
-test( "another basic test example", function() {
+test("another basic test example", function() {
   var value = "hello";
-  equal( value, "hello", "We expect value to be hello" );
+  equal(value, "hello", "We expect value to be hello");
 });