Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFC Clarify what CRM_Price_BAO_Priceset::getMembershipCount does #18426

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

mattwire
Copy link
Contributor

Overview

Partial from #18398

This updates the docblock and variable name to clarify what the CRM_Price_BAO_Priceset::getMembershipCount() function actually does. It is called from a few places in the membership/contribution code and could probably be replaced. But first step is to make it clear what it actually does.

For example, reading the code you might easily make the assumption that the param $ids is an array of IDs.. But it's not.. It's actually a comma separated string of IDs.

Before

Difficult to understand what function is doing and expected params.

After

Easier to understand what function is doing and expected params.

Technical Details

Comments

@civibot
Copy link

civibot bot commented Sep 10, 2020

(Standard links)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants