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

Faulty Core fixes: spaces between function call parenthesis #970

Closed
jrfnl opened this Issue Jun 17, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@jrfnl
Contributor

jrfnl commented Jun 17, 2017

Summary:

A function call with no parameters should not have any spaces between the parenthesis.
The current fixer seems to remove some spaces, but still leaves one.

Most likely cause: PEAR.Functions.FunctionCallSignature

Example:

File: ./src/wp-settings.php

Source:

ms_cookie_constants(  ); // Line 282
wp_templating_constants(  ); // Line 393

Fixed as:

ms_cookie_constants( );
wp_templating_constants( );

Expected fix:

ms_cookie_constants();
wp_templating_constants();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment