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

[2.x] Codebase cleanup #4161

Open
wants to merge 43 commits into
base: 2.x
Choose a base branch
from
Open

[2.x] Codebase cleanup #4161

wants to merge 43 commits into from

Conversation

xHeaven
Copy link

@xHeaven xHeaven commented Jan 17, 2025

This PR aims to cleanup the codebase as well as utilize the latest technologies provided by PHP up to 8.2.

It's a pretty big one, but I've cut everything up into lots of commits, so if you don't like something, it's easily revertable.

There are no breaking changes here. Code style will have to be updated by StyleCI(?) - though, I wish there was php-cs-fixer or something like that included in the project, so I could properly adhere to the coding styles without thinking about it too much.

The method can either return `int` or `null`. There is no need to coalesce `null` into `null`.
No modifier = `public`, therefore I've added `public`.
@xHeaven xHeaven requested a review from a team as a code owner January 17, 2025 21:39
Copy link

@MrSuddenJoy MrSuddenJoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code looks good to me. Well done 👍🏻

Copy link
Member

@luceos luceos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's is fantastic work, wow. Gigantic effort to go over all these files, did you do all of this manually or use some kind of refactoring utility?

I left a few remarks here and there, but overall I could not find any area where changes would negatively impact the application.

@xHeaven
Copy link
Author

xHeaven commented Feb 24, 2025

That's is fantastic work, wow. Gigantic effort to go over all these files, did you do all of this manually or use some kind of refactoring utility?

I left a few remarks here and there, but overall I could not find any area where changes would negatively impact the application.

It was a completely manual effort, except for a few small things that were reported by my IDE itself. It certainly took me a bit of time, though, due to the size of the project, but I hope it was worth it. ✨

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.

3 participants