| |||||
It works by analyzing a piece of PHP code and comparing it to the PSR-1 and PSR-2 coding standards.
Based on the got results, it then tries to fix the code to comply as much as possible to the standard.
Preset configs are provided for default PHP projects, Magento and Symfony (2.x).
Here are some key features of "PHP Coding Standards Fixer":
Fixers:
· Indentation
· Empty lines
· Trailing spaces
· Proper line endings
· Proper end of file endings
· Declaring visibility
· Removes unused statements
· Adds new lines where needed
· Short tag proper usage
· Aligns phpdoc tags
· Opening and closing braces
· Else if statements
· Control spaces
Requirements:
· PHP 5.3.3 or higher

Via: PHP Coding Standards Fixer 0.2.0 / 0.3-DEV






0 Comment:
Post a Comment