Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PEAR.Functions.FunctionCallSignature enforces spaces when no arguments if required spaces is not 0 #1512
For a single line function call without parameters, the behaviour is inconsistent however when these properties are set to something other than
<rule ref="PEAR.Functions.FunctionCallSignature"> <properties> <property name="requiredSpacesAfterOpen" value="1"/> <property name="requiredSpacesBeforeClose" value="1"/> </properties> </rule>
ms_cookie_constants(); // Is ignored. ms_cookie_constants( ); // Is ignored as has one space. ms_cookie_constants( ); // Gets corrected to one space.
I'd be happy to send in a PR to make the behaviour consistent, but would want to know which of the expected behaviours is desired.