Skip to content

Instantly share code, notes, and snippets.

@pmjones
Created December 19, 2013 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmjones/8040873 to your computer and use it in GitHub Desktop.
Save pmjones/8040873 to your computer and use it in GitHub Desktop.
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