Created
December 19, 2013 15:24
-
-
Save pmjones/8040873 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some (but not all) rules for submitting Aura code: | |
- PSR-1 and 2 | |
- !-operator is followed by space: `! isset()` vs `!isset()` | |
- under_scores for vars and props, not camelCase | |
- 100% test coverage of your added code | |
- No `new` keyword except in factories/builders | |
- Although `new` is ok with core PHP classes, and exceptions | |
- Use existing vocabulary: fetch, set, get, load, prep, init, etc | |
- Use __invoke() for "main" object method | |
- No FQCNs in code; use 'use' statements | |
- no public properties (expose via __get() and __set() if needed) | |
The purpose is to make sure it all looks like the product of a single mind. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment