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

Refactored PHPMD rules and improved readability #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tsybenko
Copy link

@tsybenko tsybenko commented Jan 18, 2024

PR Description

This commit simplifies the PHPMD (PHP Mess Detector) rules logic, improving overall code readability and maintainability. In several classes, unnecessary if-else checks were converted into more straightforward return statements. In addition, helper methods were introduced to reduce code duplication. This results in cleaner and more concise code that is easier to understand and modify in the future.

Checklist

  • I agree with the Code Contribution License Agreement in CONTRIBUTING.md

…ty, standardized regex pattern delimiters

This commit simplifies the PHPMD (PHP Mess Detector) rules logic, improving overall code readability and maintainability. In several classes, unnecessary if-else checks were converted into more straightforward return statements. In addition, helper methods were introduced to reduce code duplication. This results in cleaner and more concise code that is easier to understand and modify in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant