This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Coding guidelines
Olivier Paroz edited this page Sep 13, 2015
·
10 revisions
Make it easier to review
- Keep method cyclomatic complexity below 5.
- Keep methods short, below 20 lines
- Use meaningful method and variable names
- Keep referring to media types as mimetype, so that people woring on core understand what it means
t('gallery',"This is my very long" +
" string, that I want to split");
t('gallery',"This is my very long string, that I want to split");
PHP uses a short-circuit evaluation technique when looking at conditions
if (conditionA && conditionB)
If conditionA is false, conditionB will never be tested.
- General
- Installation
- Configuration
- OCC commands
- Developers