This is the summary of my book.
- Potential Errors
- No Dangling References
- Good Practices
- Always Has Visibility
- Always Typehint
- Avoid Redefining Properties
- Avoid Those Functions
- Commented Fallthrough
- Compatible Typehint
- Constant Condition
- Declares Or Executes
- Definitions Only Files
- No Closure Argument Collisions
- Lowercase Keywords
- No Array_merge In Loops
- No Assign Null Method
- No Catch Overwrite
- No Commented Code
- No Curly Array
- No Dead Code
- No Deep Definitions
- No Double Quotes
- No Duplicate Case In Switch
- No Duplicate Keys In Array
- No Duplicated Code
- No Empty Blocks
- No Empty Catch
- No Executable
- No Exit
- No Extra Argument
- Avoid Globals
- No Goto
- No Hardcoded Path
- No Incompilable
- No Isolated Block
- No Missing Argument
- No Mixed Incrementations
- No Multiple Instruction Per Line
- No Nested Ternary
- No @
- No Obsolete Directives
- No Obsolete Extensions
- No PHP4 Class Syntax
- No References On Objects
- Disallow Use Of Reserved Words As Names
- No Return Void
- No $this In Static Methods
- No Switch With Multiple Default
- No Switch Without Default
- No Undefined Properties
- No Undefined Variables
- Properties Used Locally
- No Unresolved Use Statement
- No Unused Arguments
- No Unused Methods
- No Unused Property
- No Unused Variables
- No Useless Reference Arguments
- No Useless Final
- Useless Instructions
- No Useless Math
- Useless Unset
- No Useless Use
- One Class Per File
- Properties Used Locally
- Strict Comparisons
- Use Const
- Use Constant Rather Than Function
- Use Object API
- Use Self
- Security
- PHP Manual recommendations
- Coding Conventions
- Performances