8000 Simplify `RuleSet::addRule()` · Issue #1015 · MyIntervals/PHP-CSS-Parser · GitHub
[go: up one dir, main page]

Skip to content

Simplify RuleSet::addRule() #1015

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

Open
oliverklee opened this issue Feb 27, 2025 · 0 comments
Open

Simplify RuleSet::addRule() #1015

oliverklee opened this issue Feb 27, 2025 · 0 comments

Comments

@oliverklee
Copy link
Contributor

From #1004 (comment):

The local $rulesCount is probably unnecessary here, since count is atomic (!== [] might be possible if the type of $rules can be guaranteed to be an array), and end() could be used to access the last element. But that's beyond the scope of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant
0