Skip to content

Instantly share code, notes, and snippets.

@mikedugan
Created May 14, 2014 20:36
Show Gist options
  • Select an option

  • Save mikedugan/2bb4518d41661e193800 to your computer and use it in GitHub Desktop.

Select an option

Save mikedugan/2bb4518d41661e193800 to your computer and use it in GitHub Desktop.
PHPStorm automatic doc inserter - go to "File and Code Templates -> Includes -> PHP Function Doc Comment" and copy this in...automatically generates name, params, returns, throws, type, and empty description. To use: ALT+INS on Windows/Linux, CMD+N on Mac
/**
#if (${STATIC} == "static") * @type ${STATIC} #end
#if (${STATIC} != "static") * nonstatic #end
* @name ${NAME}
* @description ${CARET}
#if (${PARAM_DOC} != "") ${PARAM_DOC} #end
#if (${THROWS_DOC} != "") ${THROWS_DOC} #end
* @return ${TYPE_HINT}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment