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

Hooks/AlwaysReturnInFilter: add support for hook-ins using short arrays #563

Merged

Commits on Jul 28, 2020

  1. Hooks/AlwaysReturnInFilter: add support for hook-ins using short arrays

    As VIPCS is currently using WPCS 2.x, we can use the WPCS `Sniff::find_array_open_close()` method to get the opener/closer for an array independently of the type of array (long/short).
    
    Once VIPCS implements PHPCSUtils, this method call should be swopped out for the PHPCSUtils `Arrays::getOpenClose()` method.
    
    Addresses #358 for the `AlwaysReturnInFilter` sniff.
    
    Includes unit tests.
    jrfnl committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    060fcf1 View commit details
    Browse the repository at this point in the history