-
Installation - PHP Coding Standards Fixer
PHP Coding Standards Fixer
-
List of Available Rules - PHP Coding Standards Fixer
PHP Coding Standards Fixer
$x[] = $y;.
preg.
mt_* analogs or
settype.
iterable, then
return.
(deprecated)
The body of each structure MUST be enclosed by braces. Braces should be properly placed. Bod...
-
Usage - PHP Coding Standards Fixer
PHP Coding Standards Fixer
With config file created, you can run command as easy as:
php php-cs-fixer.phar fix
If you do not have config file, you can run following command to fix non-hidden, non-ven...
-
Rule set @Symfony - PHP Coding Standards Fixer
PHP Coding Standards Fixer
['groups' => [['Annotation', 'NamedArgumentConstructor', 'Target'], ['author', 'copyright', 'license'], ['category', 'package', 'subpackage'], ['property', 'property-read', ...
-
Rule native_function_invocation - PHP Coding Standards Fixer
PHP Coding Standards Fixer
Risky when any of the functions are overridden.
Allowed types:
@internal (all
native functions),
@compiler_optimized
(functions that are specially optimized by Zend).
Allo...
-
Rule set @PhpCsFixer - PHP Coding Standards Fixer
@PER-CS[1]
@Symfony[2]
array_indentation[3]
blank_line_before_statement[4] with config:
['statements' => ['break', 'case', 'continue', 'declare', 'default', 'exit', 'goto', 'include', 'include_once', ...