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

Refactor get_by_id Method Using Switch Statement for Improved Readabi… #979

Merged
merged 6 commits into from
Nov 12, 2024

Conversation

bgr8
Copy link
Contributor

@bgr8 bgr8 commented Nov 9, 2024

Pull Request Title:
Refactor get_by_id Method Using Switch Statement for Improved Readability

Description:
This pull request refactors the get_by_id method by replacing multiple if conditions with a switch statement, enhancing code readability and maintainability.

includes/collection/class-users.php Outdated Show resolved Hide resolved
includes/collection/class-users.php Outdated Show resolved Hide resolved
@pfefferle pfefferle merged commit a2916a9 into Automattic:trunk Nov 12, 2024
11 checks passed
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