yasnippet-snippets/snippets/php-mode/param-doc
Thomas Atkinson ebe3b513df Php doc changes (#232)
* Change type indent width for phpdoc param tags

phpcs expects one space between @param tag and type
identifier. Checking
http://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.pkg.html
there is only meant to be one space included.

* Remove * at end of phpdoc return tag

The return tag should be the last tag in the phpdoc block and should
not add a extra line for a extra tag.
2017-10-31 09:48:31 +00:00

8 lines
No EOL
186 B
Text

# -*- mode: snippet -*-
# contributor: USAMI Kenta <tadsan@zonu.me>
# name: PHPDoc @param
# key: *param
# group: annotation
# --
* @param ${1:type} ${2:$variable} ${3:description}${0:
*}