From faef139b4a13fce3a40f0bd4e399103b6395763b Mon Sep 17 00:00:00 2001 From: pmaziere Date: Tue, 23 Aug 2016 22:37:34 +0200 Subject: [PATCH] Created Coding style policy (markdown) --- Coding-style-policy.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Coding-style-policy.md diff --git a/Coding-style-policy.md b/Coding-style-policy.md new file mode 100644 index 0000000..c17728f --- /dev/null +++ b/Coding-style-policy.md @@ -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(){} +} +``` +