-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
[REF] get rid of variable variable structure #17089
Conversation
(Standard links)
|
19e2733
to
66b8b8e
Compare
retest this please |
CRM/Member/BAO/Membership.php
Outdated
@@ -269,15 +268,11 @@ public static function create(&$params, &$ids = []) { | |||
$excludeIsAdmin = TRUE; | |||
} | |||
|
|||
$calcStatus = CRM_Member_BAO_MembershipStatus::getMembershipStatusByDate($start_date, $end_date, $join_date, | |||
$calcStatus = CRM_Member_BAO_MembershipStatus::getMembershipStatusByDate($params['start_date'], $params['$end_date'], $params['join_date'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eileenmcnaughton there is a stray $ in the end_date
66b8b8e
to
a672cae
Compare
tests/phpunit/api/v3/ContactTest.php
Outdated
$contactmembership = $this->callAPISuccess("membership", "getsingle", [ | ||
"contact_id" => $contact["id"], | ||
]); | ||
$contactmembership = $this->callAPISuccessGetSingle('membership', ['contact_id' => $contact["id"],]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor thing but why the trailing ,? @eileenmcnaughton
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jenkins didn't think it was minor
a672cae
to
070a89a
Compare
Readability improvement
070a89a
to
e6d0c73
Compare
Overview
Readability improvement
Before
After
Technical Details
Variable variables are hard to read
Comments