mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-15 12:41:00 +03:00
Created Operators (markdown)
parent
0d0798009e
commit
0bbf586e6c
1 changed files with 21 additions and 0 deletions
21
Operators.md
Normal file
21
Operators.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Operators must have a space around them
|
||||
|
||||
Operators must be readable and therefore should have spaces around them.
|
||||
|
||||
<details><summary>Example</summary><div><br>
|
||||
|
||||
**Bad**
|
||||
|
||||
```PHP
|
||||
$text='Hello '.$name.'!';
|
||||
```
|
||||
|
||||
**Good**
|
||||
|
||||
```PHP
|
||||
$text = 'Hello ' . $name . '!';
|
||||
```
|
||||
|
||||
</div></details><br>
|
||||
|
||||
_Reference_: [`Squiz.WhiteSpace.OperatorSpacing`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php)
|
Loading…
Add table
Reference in a new issue