diff --git a/Coding-style-policy.md b/Coding-style-policy.md index 756c8a4..9a13ba0 100644 --- a/Coding-style-policy.md +++ b/Coding-style-policy.md @@ -12,7 +12,16 @@ __echo false; } ``` -* Next proposal here +* Proposal 2 + + Use one tab per indentation level (rendered as 4 spaces in GitHub) + ```PHP + if(true){ + __echo true; + } else { + __echo false; + } + ``` ## Trailing white spaces @@ -20,15 +29,15 @@ __echo false; Lines must be trimmed of any trailing white spaces -* Next proposal here - ## Line length * Proposal 1 Lines must be limited to 80 characters -* Next proposal here +* Proposal 2 + + Lines should have a length of less than 80 characters where possible. The maximum length for one line is 120 characters. ## Variables, functions, methods and class naming @@ -42,4 +51,11 @@ class thisClass { } ``` -* Next proposal here \ No newline at end of file +* Proposal 2 + + ```PHP + var $thisVariable; // camelCase + function this_function(){} // lower-case & underscore ('_') + class ThisClass { // UpperCamelCase (PascalCase) + function ThisMethod(){} // UpperCamelCase (PascalCase) + } \ No newline at end of file