-
Notifications
You must be signed in to change notification settings - Fork 461
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
[rector] apply SetList::DEAD_CODE, better type checking (see description for breakdown) #7011
Conversation
2236ac8
to
d16ca47
Compare
@respencer if you have any free time, feel free to pull this down and see if anything is any more broken than how things are currently |
I'm constantly finding things that are broken. We shouldn't continue to add to this PR though. What's an acceptable middle ground for you? |
@respencer I'm thinking we can merge this after the current release finally gets cut. |
I still have a few things to add, but there's some wonky changes I want to track down the cause of before continuing. |
23e29dd
to
f9d0e23
Compare
5a8d78c
to
5b442e1
Compare
Holding this until rectorphp/rector-src#5964 gets released and then I'll rerun |
bd4eb4e
to
cb06ab4
Compare
This commit includes a variety of changes that improve the codebase's quality and consistency. The following changes were made: - Replaced `==` with `===` for strict comparisons. - Removed redundant `break` statements after `return` in switch-case structures. - Fixed variable naming consistency and unnecessary variable assignments. - Simplified conditional statements and removed unused code. - Corrected minor typos and formatted code for better readability. - Enhanced type safety by casting variables explicitly and adding type hints. - Improved function and variable documentation with consistent comments. - Refactored repeated logic to improve maintainability. - Removed redundant checks for null values and unnecessary extractions. functions
Also deleted unused monthCounter variable.
This commit includes a variety of changes that improve the codebase's quality and consistency. The following changes were made: - Replaced `==` with `===` for strict comparisons. - Removed redundant `break` statements after `return` in switch-case structures. - Fixed variable naming consistency and unnecessary variable assignments. - Simplified conditional statements and removed unused code. - Corrected minor typos and formatted code for better readability. - Enhanced type safety by casting variables explicitly and adding type hints. - Improved function and variable documentation with consistent comments. - Refactored repeated logic to improve maintainability. - Removed redundant checks for null values and unnecessary extractions.
cb06ab4
to
30d74c7
Compare
@respencer / @DawoudIO this has been rebased and is ready to go |
This commit includes a variety of changes that improve the codebase's quality and consistency. The following changes were made:
==
with===
for strict comparisons.break
statements afterreturn
in switch-case structures.