Implementation
$ php-cs-fixer fix file --level=psr2
, but not compliance with the PSR2 specifications of several points
!!
All PHP source files must end with a blank line.
- You cannot have more than one statement on a line.
- The length of a line of code is not recommended to have a hard limit, the soft limit must be 120 characters, it is recommended that each line of code 80 characters or less.
- Code indentation does not fix
- etc..
What is this for?
php-cs-fixer
so the usability is not a big discount?
Is there a tool that can format PHP code according to PSR2 rules?
Like Vim.gg=G
Reply content:
Implementation $ php-cs-fixer fix file --level=psr2
, but not compliance with the PSR2 specifications of several points
!!
All PHP source files must end with a blank line.
- You cannot have more than one statement on a line.
- The length of a line of code is not recommended to have a hard limit, the soft limit must be 120 characters, it is recommended that each line of code 80 characters or less.
- Code indentation does not fix
- etc..
What is this for?
php-cs-fixer
so the usability is not a big discount?
Is there a tool that can format PHP code according to PSR2 rules?
Like Vim.gg=G