X-Cart:Coding conventions
From X-Cart 4 Classic
Whitespace etc.
Indenting and alignment
Line continuation
Spaces
Braceless control structures
Logical structure
2.1 Assignment expressions
Ternary operator
String literals
C borrowings
PHP pitfalls
Naming
Functions
Variables
Extension Functions and Variables
HTTP and session stuff
Database
Common local variables
Inline documentation
Messages