Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

justcoded/phpcodesniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Code Sniffer and Mess Detector scripts / rules

Installation instructions:

  1. Clone repository on your drive
  2. Run composer install
  3. Run: chmod +x phpcsx phpmd
  4. Configure your PhpStorm to use both scripts
  5. (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.

About

PHP Code Sniffer custom rules pack

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages