diff --git a/Functions.md b/Functions.md index c4952a8..b383c37 100644 --- a/Functions.md +++ b/Functions.md @@ -114,4 +114,26 @@ $result = my_function($param1, $param2);
-_Reference_: [`Generic.Functions.FunctionCallArgumentSpacing`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php) \ No newline at end of file +_Reference_: [`Generic.Functions.FunctionCallArgumentSpacing`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php) + +# Do not add spaces after opening or before closing bracket + +Parenthesis must tightly enclose parameters. + +
Example

+ +**Bad** + +```PHP +if( $condition ) { ... } +``` + +**Good** + +```PHP +if($condition) { ... } +``` + +

+ +_Reference_: [`PSR2.ControlStructures.ControlStructureSpacing`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/PSR2/Sniffs/ControlStructures/ControlStructureSpacingSniff.php) \ No newline at end of file