...
Object name must be singular.
Code Block borderStyle solid class Customer
Class name must follow the CamelCase practice, except that the first letter is uppercase.
Code Block borderStyle solid class MyBeautifulClass
...
Constants
- Define Constant names must be written in uppercase, except for "true", "false" and "null" which must be lowercase:
ENT_NOQUOTE
,true
. Define Constant names have to be prefixed with "
PS_
" inside the core and module.Code Block borderStyle solid define('PS_DEBUG', 1); define('PS_MODULE_NAME_DEBUG', 1);
- Define Constant names should only use alphabetical characters and "_".
...
All keywords have to be lowercase: as, case, if, echo, null
.
Constants
Constants must be uppercase, except for "true", "false" and "null" which must be lowercase: ENT_NOQUOTE
, true
.
Configuration variables
Configuration variables follow the same rules as defined above.
...