Installation instructions:
- Clone repository on your drive
- Run
composer install
- Run:
chmod +x phpcsx phpmd
- Configure your PhpStorm to use both scripts
- (Optional) Open PhpStorm Settings -> Editor -> File and Code Templates [Includes] -> Php Function Doc Comment And replace content with:
#set( $name = ${NAME} ) /** * $name.substring(0,1).toUpperCase()$name.substring(1).replaceAll("([A-Z])", " $1") * ${PARAM_DOC} #if (${TYPE_HINT} != "void") * @return ${TYPE_HINT} #end ${THROWS_DOC} */
This will generate a short description for functions and methods with Function / Method name.