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

ValidHookName: minor efficiency tweaks #1815

Merged
merged 1 commit into from Oct 27, 2019

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 22, 2019

Instead of checking whether a ..._deprecated() function was matched after the function matching, remove the deprecated hook invocation functions from the target function array in getGroups().

This allows the sniff to fail earlier.

Also remove redundant check for $parameters[1]. If there are no parameters, the process_parameters() function wouldn't be called anyway.

Instead of checking whether a `..._deprecated()` function was matched after the function matching, remove the deprecated hook invocation functions from the target function array in `getGroups()`.

This allows the sniff to fail earlier.

Also remove redundant check for `$parameters[1]`. If there are no parameters, the `process_parameters()` function wouldn't be called anyway.
@GaryJones GaryJones merged commit 1563450 into develop Oct 27, 2019
@GaryJones GaryJones deleted the feature/validhookname-efficiency-tweak branch October 27, 2019 10:58
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

3 participants