1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-04 15:47:32 +02:00

Created Constants (markdown)

LogMANOriginal
2018-11-05 13:12:37 +01:00
parent d13addd88f
commit c06b3ee625

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)