Developer guide: coding style - ManvilleFog/buttonmen GitHub Wiki
Coding style for buttonmen development
We will use PSR-0, with the following modifications/additional preferences:
Braces
- opening braces on same line for class names, function names, and control statements
- control structure braces are always used, even for single line statements
Naming
- StudlyCaps for class names
- lower_under for method names
- camelCase for variable names
Whitespace
- indentation of 4 spaces
- no horizontal whitespace padding the inside of parentheses
- no space after function names
- single space after control keywords
- single space after commas
Other
- TRUE/FALSE/NULL all in uppercase
- soft line length limit of 80 characters, no hard line length limit