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

Universal/DisallowAlternativeSyntax: bug fix - ignore inline HTML in nested closed scopes #160

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 14, 2022

... as the HTML in that case is not necessarily echo-ed out when the control structure is executed, but rather is executed when the function in the nested closed scope is called and executed, so the inline HTML does not "belong" with the control structure.

This should also potentially improve performance of the sniff when large chunks of code without inline HTML are wrapped within a control structure.

Includes tests.

…nested closed scopes

... as the HTML in that case is not necessarily echo-ed out when the control structure is executed, but rather is executed when the function in the nested closed scope is called and executed, so the inline HTML does not "belong" with the control structure.

This should also potentially improve performance of the sniff when large chunks of code without inline HTML are wrapped within a control structure.

Includes tests.
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Nov 14, 2022
@jrfnl jrfnl merged commit 6e4697f into develop Nov 14, 2022
@jrfnl jrfnl deleted the universal/disallowalternativesyntax-bug-fix-1 branch November 14, 2022 00:59
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.

None yet

1 participant