mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-28 13:58:53 +02:00
Created Constants (markdown)
parent
d13addd88f
commit
c06b3ee625
1 changed files with 21 additions and 0 deletions
21
Constants.md
Normal file
21
Constants.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
As in most languages, constants should be written in UPPERCASE.
|
||||
|
||||
_Notice_: This does not apply to keywords!
|
||||
|
||||
<details><summary>Example</summary><div><br>
|
||||
|
||||
**Bad**
|
||||
|
||||
```PHP
|
||||
const pi = 3.14;
|
||||
```
|
||||
|
||||
**Good**
|
||||
|
||||
```PHP
|
||||
const PI = 3.14;
|
||||
```
|
||||
|
||||
</div></details><br>
|
||||
|
||||
_Reference_: [`Generic.NamingConventions.UpperCaseConstantName`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php)
|
Loading…
Add table
Add a link
Reference in a new issue