-
Notifications
You must be signed in to change notification settings - Fork 30
ExtDesk Coding Standards Style
Always use:
-
Spaces instead of Tabs (4 spaces per 'tab');
-
" (quotes) only when applicable, example, in PHP only use the quote then you need to put a variable or a single quotes inside the string. Apply this for the javascript and PHP;
-
Code in english, variables, methods, functions and object names;
(Based on http://framework.zend.com/manual/en/coding-standard.html)
The target line length is 80 characters. Keep each line code under 80 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 120 characters.
Line termination follows the Unix text file convention. Lines must end with a single linefeed (LF) character. Linefeed characters are represented as ordinal 10, or hexadecimal 0x0A.
Note: Do not use carriage returns (CR) as is the convention in Apple OS's (0x0D) or the carriage return - linefeed combination (CRLF) as is standard for the Windows OS (0x0D, 0x0A).