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

Inline some single use variables at function returns #710

Merged

Conversation

pattonwebz
Copy link
Member

@pattonwebz pattonwebz commented Jul 10, 2024

This PR inlines variables at the return statement if they existed only to be returned. None of these seemed to aid in readability in my view so I swapped every instance that was detected.

There were 2 other instances inside the simple_html_dom.php file that I did not modify here since that package is a cloned 3rd party file.

@SteveJonesDev
Copy link
Member

Partially fixes #386

@SteveJonesDev SteveJonesDev added the enhancement New feature or request label Jul 12, 2024
@SteveJonesDev SteveJonesDev added this to the v1.15.0 milestone Jul 12, 2024
@pattonwebz pattonwebz merged commit e63742f into develop Jul 12, 2024
16 checks passed
@pattonwebz pattonwebz deleted the william/no-issue/inline-single-use-vars-before-returns branch September 23, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants