Skip to content

Instantly share code, notes, and snippets.

@irfanbaigse
Last active April 24, 2017 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irfanbaigse/622716e7ba5b73d8cc197c9e87e51a48 to your computer and use it in GitHub Desktop.
Save irfanbaigse/622716e7ba5b73d8cc197c9e87e51a48 to your computer and use it in GitHub Desktop.
PhpStrom auto generate function doc comment
/**
* ${NAME}
*
#if (!$!PARAM_DOC || $!PARAM_DOC != "")
#set( $paramCommentArr = ${PARAM_DOC.split("\n")} )
#foreach( $paramComment in $paramCommentArr )
#set ($index = $paramComment.indexOf("$") + 1)
${paramComment} $paramComment.substring($index)
#end
#end
#if (${TYPE_HINT} != "void") * @return ${TYPE_HINT}
#else
* @return void
#end
${THROWS_DOC}
*
* @author Irfan Baig <irfan.baig@gmail.com>
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment