Created Coding style policy (markdown)

pmaziere 2016-08-23 22:37:34 +02:00
parent fdd92b9d9d
commit faef139b4a

29
Coding-style-policy.md Normal file

@ -0,0 +1,29 @@
_**WORK IN PROGRESS: nothing described here should be considered as definitive**_
## Indentation
Use two space characters for each indentation level
```PHP
if ( true ){
echo true;
else{
echo false;
}
```
## Trailing white spaces
Lines must be trimmed of any trailing white spaces
## Line length
Lines must be limited to 80 characters
## Variables, functions, methods and class naming
```PHP
var $thisVariable;
function thisFunction(){}
class thisClass {
function thisMethod(){}
}
```