Skip to content

refactor:Make addMember an alias of add #470

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

Merged
merged 2 commits into from
Dec 4, 2016
Merged

refactor:Make addMember an alias of add #470

merged 2 commits into from
Dec 4, 2016

Conversation

alexanderholman
Copy link
Contributor

Duplicate code existed for adding member to an organisation

Under lib/Github/Api/Organisation/Members.php the addMember and add
methods returned the exact same code and used the exact same arguments.

With that in mind I made addMember an "alias" returning $this->add
passing the same arguments through.

Duplicate code existed for adding member to an organisation

Under lib/Github/Api/Organisation/Members.php the addMember and add
methods returned the exact same code and used the exact same arguments.

With that in mind I made addMember an "alias" returning $this->add
passing the same arguments through.
@cursedcoder cursedcoder merged commit 32e7fb7 into KnpLabs:master Dec 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants