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] Minor function extraction in report class. #12658

Merged
merged 1 commit into from
Aug 14, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Small code simplification

Before

One long function

After

generateFilterClause is extracted

Technical Details

This mirrors a similar refactor in the extended reports class (which also
allows it to be called from more than one place.

Note I checked & there is no code difference between returning NULL & an empty string. I only went with the latter because it met the return string phpdoc

Comments

This mirrors a similar refactor in the extended reports class (which also
allows it to be called from more than one place
@civibot
Copy link

civibot bot commented Aug 14, 2018

(Standard links)

@seamuslee001
Copy link
Contributor

Adding merge on pass as this seems a straightforward refactor and also there are a number of unit tests on reports and if there is an issue here those unit tests should show a problem

@eileenmcnaughton
Copy link
Contributor Author

Thanks @seamuslee001

@seamuslee001
Copy link
Contributor

Jenkins re test this please

@eileenmcnaughton eileenmcnaughton merged commit 505bff5 into civicrm:master Aug 14, 2018
@eileenmcnaughton eileenmcnaughton deleted the report_function branch August 14, 2018 07:25
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.

3 participants