mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Updated documentation with the new coding standard
This commit is contained in:
parent
2281989866
commit
98d1051583
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ Here's a few primers if you are new to Friendica or to the PSR-2 coding standard
|
|||
* By default, strings are enclosed in single quotes, but feel free to use double quotes if it makes more sense (SQL queries, adding tabs and line feeds).
|
||||
* Operators are wrapped by spaces, e.g. `$var === true`, `$var = 1 + 2` and `'string' . $concat . 'enation'`
|
||||
* Braces are mandatory in conditions
|
||||
* Boolean operators are `&&` and `||` for PHP conditions, `AND` and `OR` for SQL queries
|
||||
* No closing PHP tag
|
||||
* No trailing spaces
|
||||
|
||||
|
|
Loading…
Reference in a new issue