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

[1.x] Remove unused variable declaration #285

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

alirezadp10
Copy link
Contributor

As registersRoutes is a boolean variable, I guess it would be better to change ‍‍‍registersRoutes to isRoutesRegistered as it conveys the purpose more accurately.

@timacdonald
Copy link
Member

I think it is fine.

We use registersRoutes across our other packages in the ecosystem: https://github.com/search?q=org%3Alaravel%20registersRoutes&type=code

This is also an internal facing method. There isn't really an reason user-land apps would call this.

@alirezadp10
Copy link
Contributor Author

Yes, you're right. I dropped that commit and just kept the last one.

@timacdonald timacdonald changed the title change method and property name for more clarity [1.x] Remove unused variable declaration Jan 18, 2024
Copy link
Member

@timacdonald timacdonald left a comment

Choose a reason for hiding this comment

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

We can ignore the static analysis error. That has been fixed in 1.x

@taylorotwell taylorotwell merged commit b111f88 into laravel:1.x Jan 19, 2024
9 of 10 checks passed
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