This is the summary of my book.
- Possible Errors
- No Dangling References
- Good Practices
- Always Has Visibility
- Always Typehint
- Always Use Semicolon
- No Magic Number
- Avoid Those Functions
- Commented Fallthrough
- Compatible Typehint
- Constant Condition
- Declares Or Executes
- Definitions Only Files
- No Closure Argument Collisions
- Leave Last Closing Tag Out
- Lowercase Keywords
- No Array_merge In Loops
- No Assign Null From Method
- No Bracketless Blocks
- No Catch Overwrite
- No Commented Code
- No Curly Array
- No Dead Code
- No Deep Definitions
- No Double Comparisons
- 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 Implied Cast
- No Implied If
- No Incompilable
- No Isolated Block
- No Missing Argument
- No Mixed Loops
- No Multiple Instruction Per Line
- No Nested Ternary
- No @
- No Obsolete Directives
- No Obsolete Extensions
- No PHP4 Class Syntax
- No Raw Exception
- No References On Objects
- No Reserved Words As Names
- No $this In Static Methods
- No Switch With Multiple Default
- No Switch Without Default
- No Unchecked Resources
- No Undefined Properties
- No Undefined Variables
- Unresolved Catch
- Unresolved Instanceof
- No Unresolved Use Statement
- No Unthrown Exceptions
- No Unused Arguments
- No Unused Methods
- No Unused Property
- No Unused Variables
- No Useless Reference Arguments
- No Useless Final
- Useless Flow Control
- Useless Instructions
- No Useless Interfaces
- No Useless Math
- No Useless Return
- Useless Unset
- No Useless Use
- Not a method
- One Class Per File
- Properties Used Locally
- Strict Comparisons
- Use Const
- Use Constant Rather Than Function
- Use Foreach
- Use Object API
- Use Provided Constants
- Use Self
- Security
- PHP Manual recommendations
- All Unique Arguments
- Default Argument At The End
- Assigning To Array With List
- No Aliases
- No Buried Assignation
- No Constant As Array Keys
- No Deprecated
- No Direct Call To Magic Method
- No Incompatible References
- No Letters For Logical Operators
- No Parenthesis For Language Construct
- No Reassign References
- No Short Tags
- No Unnecessary Concatenations
- Use Default Property Values
- Use Smart Autoload
- Performances