mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-19 08:48:27 +02:00
Updated Functions (markdown)
parent
af5c3ad63b
commit
3ec95eaa30
1 changed files with 23 additions and 1 deletions
22
Functions.md
22
Functions.md
|
@ -115,3 +115,25 @@ $result = my_function($param1, $param2);
|
|||
</div></details><br>
|
||||
|
||||
_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.
|
||||
|
||||
<details><summary>Example</summary><div><br>
|
||||
|
||||
**Bad**
|
||||
|
||||
```PHP
|
||||
if( $condition ) { ... }
|
||||
```
|
||||
|
||||
**Good**
|
||||
|
||||
```PHP
|
||||
if($condition) { ... }
|
||||
```
|
||||
|
||||
</div></details><br>
|
||||
|
||||
_Reference_: [`PSR2.ControlStructures.ControlStructureSpacing`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/PSR2/Sniffs/ControlStructures/ControlStructureSpacingSniff.php)
|
Loading…
Add table
Add a link
Reference in a new issue