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

Add and apply Rector #107

Merged
merged 40 commits into from
Aug 14, 2024
Merged

Add and apply Rector #107

merged 40 commits into from
Aug 14, 2024

Conversation

GaryJones
Copy link
Contributor

https://getrector.com/ is a tool for PHP development that can help rewrite code to meet certain rules, such as tidying up code when different minimum versions of PHP are supported or following common or best practices around code quality, dead code, coding style, and more.

I've applied each PHP ruleset, and then different levels of the prepared sets in different commits - for review, these would be much easier to see the similar changes, that reviewing all the changes at once.

One notable change not covered here is the addition of type declarations.

I believe there is no change in functionality from this PR.

No intentional changes in behaviour - mostly whitespace changes to ensure more compliance with coding standards.
RemoveUnusedForeachKeyRector
RecastingRemovalRector
RemoveNullPropertyInitializationRector
SimplifyUselessVariableRector
RemoveNonExistingVarAnnotationRector
RemoveNullTagValueNodeRector
RemoveUnusedPrivatePropertyRector
RemoveUnreachableStatementRector
RemoveUnusedVariableAssignRector
RemoveDeadReturnRector
SimplifyIfReturnBoolRector
UnnecessaryTernaryExpressionRector
SimplifyIfElseToTernaryRector
SimplifyBoolIdenticalTrueRector
SimplifyRegexPatternRector
CompleteDynamicPropertiesRector
ExplicitReturnNullRector
AbsolutizeRequireAndIncludePathRector
ChangeArrayPushToArrayAssignRector
IssetOnPropertyObjectToPropertyExistsRector
SwitchNegatedTernaryRector
CountArrayToEmptyArrayComparisonRector
SimplifyEmptyCheckOnEmptyArrayRector
LocallyCalledStaticMethodToNonStaticRector
EncapsedStringsToSprintfRector
ExplicitPublicClassMethodRector
SymplifyQuoteEscapeRector
NewlineAfterStatementRector
@GaryJones GaryJones added this to the Next milestone Aug 14, 2024
@GaryJones GaryJones self-assigned this Aug 14, 2024
These changes were missed during the merge conflict resolution.
@GaryJones GaryJones merged commit d5f46c6 into develop Aug 14, 2024
5 checks passed
@GaryJones GaryJones deleted the feature/add-rector branch August 14, 2024 17:55
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.

1 participant