-
Notifications
You must be signed in to change notification settings - Fork 23
Developer guide: coding style
blackshadowshade edited this page Dec 12, 2012
·
5 revisions
We will use PSR-0, with the following modifications/additional preferences:
- opening braces on same line for class names, function names, and control statements
- control structure braces are always used, even for single line statements
- camelCase for class names
- lower_under for method names
- indentation of 4 spaces
- no horizontal whitespace inside parentheses
- no space after function names
- single space after control keywords
- TRUE/FALSE/NULL all in uppercase
- soft line length limit of 80 characters, no hard line length limit