mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-08 09:05:57 +03:00
Created Keywords (markdown)
parent
c06b3ee625
commit
fea051ee90
1 changed files with 23 additions and 0 deletions
23
Keywords.md
Normal file
23
Keywords.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
`true`, `false` and `null` must be written in lower case letters.
|
||||
|
||||
<details><summary>Example</summary><div><br>
|
||||
|
||||
**Bad**
|
||||
|
||||
```PHP
|
||||
if($condition === TRUE && $error === FALSE) {
|
||||
return NULL;
|
||||
}
|
||||
```
|
||||
|
||||
**Good**
|
||||
|
||||
```PHP
|
||||
if($condition === true && $error === false) {
|
||||
return null;
|
||||
}
|
||||
```
|
||||
|
||||
</div></details><br>
|
||||
|
||||
_Reference_: [`Generic.PHP.LowerCaseConstant`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/PHP/LowerCaseConstantSniff.php)
|
Loading…
Add table
Reference in a new issue