CRM-14106 - Regex targeting the first part of if statements
authorColeman Watts <coleman@civicrm.org>
Wed, 22 Jan 2014 05:25:13 +0000 (21:25 -0800)
committerColeman Watts <coleman@civicrm.org>
Wed, 22 Jan 2014 05:25:13 +0000 (21:25 -0800)
commita74880802265c949ef3284b795d320396966629f
tree74a20acafdcc74c6e2e3aafedaca851be20fa051
parent0d8afee278524bae3856993b85abe3e4208ea065
CRM-14106 - Regex targeting the first part of if statements

Pattern used
if\s*\(\s*CRM_Utils_Array::value\s*\([ ]*(['"$0-9][^,]*),\s*(\$[^ )]*)\s*\)\s*(\&\&|\|\||\))
if \(!empty\($2\[$1\]\)$3
412 files changed:
CRM/ACL/Page/ACLBasic.php
CRM/Activity/BAO/Activity.php
CRM/Activity/BAO/Query.php
CRM/Activity/Form/Activity.php
CRM/Activity/Form/ActivityView.php
CRM/Activity/Form/Task/AddToTag.php
CRM/Activity/Form/Task/Batch.php
CRM/Activity/Form/Task/RemoveFromTag.php
CRM/Activity/Import/Form/MapField.php
CRM/Activity/Import/Form/Preview.php
CRM/Activity/Import/Parser/Activity.php
CRM/Activity/Page/AJAX.php
CRM/Activity/Selector/Activity.php
CRM/Activity/StateMachine/Search.php
CRM/Admin/Form.php
CRM/Admin/Form/Job.php
CRM/Admin/Form/MessageTemplates.php
CRM/Admin/Form/Navigation.php
CRM/Admin/Form/OptionGroup.php
CRM/Admin/Form/OptionValue.php
CRM/Admin/Form/Options.php
CRM/Admin/Form/ParticipantStatus.php
CRM/Admin/Form/PaymentProcessor.php
CRM/Admin/Form/PaymentProcessorType.php
CRM/Admin/Form/Preferences.php
CRM/Admin/Form/Preferences/Display.php
CRM/Admin/Form/Preferences/Mailing.php
CRM/Admin/Form/RelationshipType.php
CRM/Admin/Form/ScheduleReminders.php
CRM/Admin/Form/Setting.php
CRM/Admin/Form/Setting/Localization.php
CRM/Admin/Form/Setting/Smtp.php
CRM/Admin/Form/Setting/UpdateConfigBackend.php
CRM/Admin/Form/WordReplacements.php
CRM/Admin/Page/ContactType.php
CRM/Admin/Page/LabelFormats.php
CRM/Badge/BAO/Badge.php
CRM/Batch/BAO/Batch.php
CRM/Batch/Form/Entry.php
CRM/Campaign/BAO/Campaign.php
CRM/Campaign/BAO/Petition.php
CRM/Campaign/BAO/Survey.php
CRM/Campaign/Form/Campaign.php
CRM/Campaign/Form/Petition.php
CRM/Campaign/Form/Search.php
CRM/Campaign/Form/Survey/Main.php
CRM/Campaign/Form/Survey/Results.php
CRM/Campaign/Form/Task/Interview.php
CRM/Campaign/Form/Task/Reserve.php
CRM/Campaign/Page/AJAX.php
CRM/Campaign/Page/DashBoard.php
CRM/Campaign/StateMachine/Search.php
CRM/Case/BAO/Case.php
CRM/Case/BAO/Query.php
CRM/Case/Form/Activity.php
CRM/Case/Form/Activity/ChangeCaseStartDate.php
CRM/Case/Form/Activity/ChangeCaseType.php
CRM/Case/Form/Case.php
CRM/Case/Form/CaseView.php
CRM/Case/Form/Search.php
CRM/Case/StateMachine/Search.php
CRM/Case/XMLProcessor/Process.php
CRM/Case/XMLProcessor/Report.php
CRM/Contact/BAO/Contact.php
CRM/Contact/BAO/Contact/Permission.php
CRM/Contact/BAO/Contact/Utils.php
CRM/Contact/BAO/ContactType.php
CRM/Contact/BAO/Group.php
CRM/Contact/BAO/GroupContact.php
CRM/Contact/BAO/GroupOrganization.php
CRM/Contact/BAO/Individual.php
CRM/Contact/BAO/Query.php
CRM/Contact/BAO/Relationship.php
CRM/Contact/BAO/RelationshipType.php
CRM/Contact/BAO/SavedSearch.php
CRM/Contact/Form/Contact.php
CRM/Contact/Form/CustomData.php
CRM/Contact/Form/DedupeFind.php
CRM/Contact/Form/DedupeRules.php
CRM/Contact/Form/Edit/Address.php
CRM/Contact/Form/Edit/CustomData.php
CRM/Contact/Form/Edit/Household.php
CRM/Contact/Form/Edit/Organization.php
CRM/Contact/Form/Inline/Address.php
CRM/Contact/Form/Inline/Demographics.php
CRM/Contact/Form/Inline/Email.php
CRM/Contact/Form/Inline/IM.php
CRM/Contact/Form/Inline/OpenID.php
CRM/Contact/Form/Inline/Phone.php
CRM/Contact/Form/Location.php
CRM/Contact/Form/Merge.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/ContribSYBNT.php
CRM/Contact/Form/Search/Custom/MultipleValues.php
CRM/Contact/Form/Search/Custom/Proximity.php
CRM/Contact/Form/Task/AddToHousehold.php
CRM/Contact/Form/Task/AddToOrganization.php
CRM/Contact/Form/Task/AddToTag.php
CRM/Contact/Form/Task/Batch.php
CRM/Contact/Form/Task/EmailCommon.php
CRM/Contact/Form/Task/Label.php
CRM/Contact/Form/Task/LabelCommon.php
CRM/Contact/Form/Task/PDFLetterCommon.php
CRM/Contact/Form/Task/ProximityCommon.php
CRM/Contact/Form/Task/RemoveFromTag.php
CRM/Contact/Form/Task/SMSCommon.php
CRM/Contact/Import/Form/MapField.php
CRM/Contact/Import/Form/Preview.php
CRM/Contact/Import/Parser/Contact.php
CRM/Contact/Page/AJAX.php
CRM/Contact/Page/Inline/Address.php
CRM/Contact/Page/Inline/CommunicationPreferences.php
CRM/Contact/Page/Inline/ContactInfo.php
CRM/Contact/Page/Inline/Demographics.php
CRM/Contact/Page/View/Summary.php
CRM/Contact/Page/View/UserDashBoard.php
CRM/Contact/Page/View/Vcard.php
CRM/Contact/Selector.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/Query.php
CRM/Contribute/Form.php
CRM/Contribute/Form/AbstractEditPayment.php
CRM/Contribute/Form/AdditionalInfo.php
CRM/Contribute/Form/AdditionalPayment.php
CRM/Contribute/Form/Contribution.php
CRM/Contribute/Form/Contribution/Confirm.php
CRM/Contribute/Form/Contribution/Main.php
CRM/Contribute/Form/Contribution/ThankYou.php
CRM/Contribute/Form/ContributionBase.php
CRM/Contribute/Form/ContributionPage.php
CRM/Contribute/Form/ContributionPage/Amount.php
CRM/Contribute/Form/ContributionPage/Premium.php
CRM/Contribute/Form/ContributionPage/Settings.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/SoftCredit.php
CRM/Contribute/Form/Task/Batch.php
CRM/Contribute/Form/UpdateBilling.php
CRM/Contribute/Form/UpdateSubscription.php
CRM/Contribute/Import/Form/MapField.php
CRM/Contribute/Import/Parser/Contribution.php
CRM/Contribute/Page/ContributionPage.php
CRM/Contribute/Page/ContributionRecur.php
CRM/Contribute/Selector/Search.php
CRM/Contribute/StateMachine/Search.php
CRM/Core/BAO/ActionSchedule.php
CRM/Core/BAO/Address.php
CRM/Core/BAO/Block.php
CRM/Core/BAO/CMSUser.php
CRM/Core/BAO/ConfigSetting.php
CRM/Core/BAO/CustomField.php
CRM/Core/BAO/CustomGroup.php
CRM/Core/BAO/CustomValueTable.php
CRM/Core/BAO/Dashboard.php
CRM/Core/BAO/Email.php
CRM/Core/BAO/FinancialTrxn.php
CRM/Core/BAO/Mapping.php
CRM/Core/BAO/Note.php
CRM/Core/BAO/OptionValue.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/Website.php
CRM/Core/Component.php
CRM/Core/Controller.php
CRM/Core/DAO.php
CRM/Core/Form.php
CRM/Core/Form/Tag.php
CRM/Core/Invoke.php
CRM/Core/Menu.php
CRM/Core/OptionValue.php
CRM/Core/Page.php
CRM/Core/Page/AJAX.php
CRM/Core/Page/Basic.php
CRM/Core/Payment/AuthorizeNet.php
CRM/Core/Payment/BaseIPN.php
CRM/Core/Payment/Google.php
CRM/Core/Payment/GoogleIPN.php
CRM/Core/Payment/PayPalImpl.php
CRM/Core/Payment/ProcessorForm.php
CRM/Core/SelectValues.php
CRM/Core/Session.php
CRM/Core/StateMachine.php
CRM/Custom/Form/Field.php
CRM/Custom/Form/Group.php
CRM/Custom/Form/Option.php
CRM/Custom/Form/Preview.php
CRM/Custom/Import/Form/MapField.php
CRM/Dedupe/Finder.php
CRM/Dedupe/Merger.php
CRM/Event/BAO/Event.php
CRM/Event/BAO/Participant.php
CRM/Event/BAO/ParticipantStatusType.php
CRM/Event/BAO/Query.php
CRM/Event/Cart/Form/Checkout/Payment.php
CRM/Event/Form/EventFees.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/ScheduleReminders.php
CRM/Event/Form/Participant.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/Batch.php
CRM/Event/Import/Form/MapField.php
CRM/Event/Import/Parser/Participant.php
CRM/Event/Page/EventInfo.php
CRM/Event/Selector/Search.php
CRM/Event/StateMachine/Search.php
CRM/Export/BAO/Export.php
CRM/Export/Form/Map.php
CRM/Financial/BAO/ExportFormat.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/Form/FinancialBatch.php
CRM/Financial/Form/FinancialTypeAccount.php
CRM/Financial/Form/Search.php
CRM/Financial/Page/FinancialType.php
CRM/Friend/BAO/Friend.php
CRM/Friend/Form.php
CRM/Friend/Form/Event.php
CRM/Grant/BAO/Grant.php
CRM/Grant/BAO/Query.php
CRM/Grant/Form/Grant.php
CRM/Grant/StateMachine/Search.php
CRM/Group/Form/Edit.php
CRM/Group/Page/AJAX.php
CRM/Logging/Differ.php
CRM/Logging/ReportSummary.php
CRM/Mailing/BAO/Mailing.php
CRM/Mailing/BAO/Query.php
CRM/Mailing/Event/BAO/Forward.php
CRM/Mailing/Form/Group.php
CRM/Mailing/Form/Test.php
CRM/Mailing/Form/Upload.php
CRM/Member/BAO/Membership.php
CRM/Member/BAO/MembershipStatus.php
CRM/Member/BAO/MembershipType.php
CRM/Member/BAO/Query.php
CRM/Member/Form.php
CRM/Member/Form/Membership.php
CRM/Member/Form/MembershipBlock.php
CRM/Member/Form/MembershipRenewal.php
CRM/Member/Form/MembershipStatus.php
CRM/Member/Form/MembershipType.php
CRM/Member/Form/MembershipView.php
CRM/Member/Form/Task/Batch.php
CRM/Member/Import/Form/MapField.php
CRM/Member/Import/Form/Preview.php
CRM/Member/Import/Parser/Membership.php
CRM/Member/Page/Tab.php
CRM/Member/Page/UserDashboard.php
CRM/Member/Selector/Search.php
CRM/Member/StateMachine/Search.php
CRM/PCP/BAO/PCP.php
CRM/PCP/Form/Contribute.php
CRM/PCP/Form/Event.php
CRM/PCP/Page/PCP.php
CRM/PCP/Page/PCPInfo.php
CRM/Pledge/BAO/Pledge.php
CRM/Pledge/BAO/PledgeBlock.php
CRM/Pledge/BAO/PledgePayment.php
CRM/Pledge/BAO/Query.php
CRM/Pledge/Form/Pledge.php
CRM/Pledge/Form/PledgeView.php
CRM/Pledge/Selector/Search.php
CRM/Pledge/StateMachine/Search.php
CRM/Price/BAO/LineItem.php
CRM/Price/BAO/PriceField.php
CRM/Price/BAO/PriceFieldValue.php
CRM/Price/BAO/PriceSet.php
CRM/Price/Form/Field.php
CRM/Price/Form/Option.php
CRM/Price/Form/Preview.php
CRM/Price/Page/Option.php
CRM/Profile/Form.php
CRM/Profile/Form/Edit.php
CRM/Profile/Page/Listings.php
CRM/Profile/Selector/Listings.php
CRM/Report/BAO/ReportInstance.php
CRM/Report/Form.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/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/Lybunt.php
CRM/Report/Form/Contribute/OrganizationSummary.php
CRM/Report/Form/Contribute/PCP.php
CRM/Report/Form/Contribute/Repeat.php
CRM/Report/Form/Contribute/SoftCredit.php
CRM/Report/Form/Contribute/Summary.php
CRM/Report/Form/Contribute/Sybunt.php
CRM/Report/Form/Contribute/TopDonor.php
CRM/Report/Form/Event/IncomeCountSummary.php
CRM/Report/Form/Event/ParticipantListCount.php
CRM/Report/Form/Event/ParticipantListing.php
CRM/Report/Form/Event/Summary.php
CRM/Report/Form/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/Pbnp.php
CRM/Report/Form/Pledge/Summary.php
CRM/Report/Form/Walklist/Walklist.php
CRM/Report/Utils/Report.php
CRM/SMS/Form/Group.php
CRM/SMS/Form/Upload.php
CRM/UF/Form/AbstractPreview.php
CRM/UF/Form/Field.php
CRM/UF/Form/Group.php
CRM/UF/Page/Group.php
CRM/Upgrade/Incremental/php/FourTwo.php
CRM/Upgrade/Incremental/php/ThreeFour.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/Field.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/FieldValue.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/Set.php
CRM/Upgrade/Snapshot/V4p2/Price/DAO/Field.php
CRM/Upgrade/Snapshot/V4p2/Price/DAO/FieldValue.php
CRM/Upgrade/Snapshot/V4p2/Price/DAO/LineItem.php
CRM/Upgrade/Snapshot/V4p2/Price/DAO/Set.php
CRM/Upgrade/Snapshot/V4p2/Price/DAO/SetEntity.php
CRM/Utils/Address/BatchUpdate.php
CRM/Utils/Date.php
CRM/Utils/DeprecatedUtils.php
CRM/Utils/Geocode/Google.php
CRM/Utils/Geocode/Yahoo.php
CRM/Utils/Mail.php
CRM/Utils/OpenFlashChart.php
CRM/Utils/REST.php
CRM/Utils/Sort.php
CRM/Utils/System.php
CRM/Utils/System/Drupal.php
CRM/Utils/System/Drupal6.php
CRM/Utils/System/WordPress.php
CRM/Utils/Token.php
api/api.php
api/v3/ActionSchedule.php
api/v3/Activity.php
api/v3/Contact.php
api/v3/Contribution.php
api/v3/CustomValue.php
api/v3/Dashboard.php
api/v3/Domain.php
api/v3/Event.php
api/v3/Generic.php
api/v3/Membership.php
api/v3/MembershipStatus.php
api/v3/Participant.php
api/v3/ParticipantPayment.php
api/v3/Profile.php
api/v3/Relationship.php
api/v3/Setting.php
api/v3/utils.php
bin/deprecated/ParticipantProcessor.php
bin/deprecated/UpdateAddress.php
tests/phpunit/CiviTest/CiviSeleniumTestCase.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/WebTest/Contribute/OfflineContributionTest.php
tests/phpunit/api/v3/GrantTest.php
tests/phpunit/api/v3/SyntaxConformanceTest.php
tools/CRM/Auction/BAO/Auction.php
tools/CRM/Auction/BAO/Item.php
tools/CRM/Auction/Form/SearchAuction.php
tools/extensions/org.civicrm.report.baykeeper/Baykeeper.php
tools/extensions/org.civicrm.report.grant/Grant.php
tools/extensions/org.civicrm.search.multivalue/MultiValue.php