
no_spaces_inside_parenthesis
¶There MUST NOT be a space after the opening parenthesis. There MUST NOT be a space before the closing parenthesis.
--- Original
+++ New
<?php
-if ( $a ) {
- foo( );
+if ($a) {
+ foo();
}
--- Original
+++ New
<?php
-function foo( $bar, $baz )
+function foo($bar, $baz)
{
}
The rule is part of the following rule sets:
Using the @PER rule set will enable the no_spaces_inside_parenthesis
rule.
Using the @PSR2 rule set will enable the no_spaces_inside_parenthesis
rule.
Using the @PSR12 rule set will enable the no_spaces_inside_parenthesis
rule.
Using the @PhpCsFixer rule set will enable the no_spaces_inside_parenthesis
rule.
Using the @Symfony rule set will enable the no_spaces_inside_parenthesis
rule.