Popular coding standards in php, such as: psr, zend, pear, and their brackets all have to start another line, which is not very suitable. The editor is Vim, And the syntastic plug-in is used to call phpcs for encoding specification check. Now I want to extend and modify the psr2 specification in phpcs... popular coding standards in php, such as: psr, zend, pear, and their brackets all have to start another line, which is not very suitable.
The editor is Vim, And the syntastic plug-in is used to call phpcs for encoding specification check. Now I want to extend/modify the psr2 specification in phpcs, so that the curly braces can be placed in the same line as the function definition (other rules can be adapted ).
Reply content:
Popular coding standards in php, such as: psr, zend, pear, and their brackets all have to start another line, which is not very suitable.
The editor is Vim, And the syntastic plug-in is used to call phpcs for encoding specification check. Now I want to extend/modify the psr2 specification in phpcs, so that the curly braces can be placed in the same line as the function definition (other rules can be adapted ).