From ebe3b513dfb8b5f1ee854b0e8ef4cd6a33c3caa1 Mon Sep 17 00:00:00 2001 From: Thomas Atkinson Date: Tue, 31 Oct 2017 20:48:31 +1100 Subject: [PATCH] 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. --- snippets/php-mode/param-doc | 2 +- snippets/php-mode/return-doc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/snippets/php-mode/param-doc b/snippets/php-mode/param-doc index 2925912..d1cff1a 100644 --- a/snippets/php-mode/param-doc +++ b/snippets/php-mode/param-doc @@ -4,5 +4,5 @@ # key: *param # group: annotation # -- -* @param ${1:type} ${2:$variable} ${3:description}${0: +* @param ${1:type} ${2:$variable} ${3:description}${0: *} \ No newline at end of file diff --git a/snippets/php-mode/return-doc b/snippets/php-mode/return-doc index b91d235..84f569e 100644 --- a/snippets/php-mode/return-doc +++ b/snippets/php-mode/return-doc @@ -4,5 +4,4 @@ # key: *return # group: annotation # -- -* @return ${1:type} ${2:description}${0: -*} \ No newline at end of file +* @return ${1:type} ${2:description} \ No newline at end of file