From 0bff557efcf748b1c8e6d2a1a05db22dce89f6b8 Mon Sep 17 00:00:00 2001 From: Daniel Del Rio Date: Mon, 11 Jun 2012 16:02:33 -0400 Subject: [PATCH 1/2] Space was added for doc_cp and packaged changed to package for doc_c. --- snippets/php.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/php.snippets b/snippets/php.snippets index 3ce9e26c..938d9a80 100644 --- a/snippets/php.snippets +++ b/snippets/php.snippets @@ -43,7 +43,7 @@ snippet doc_cp * * @package ${2:default} * @author ${3:`g:snips_author`} - **/${4} + **/${4} # Class Variable - post doc snippet doc_vp /** @@ -64,7 +64,7 @@ snippet doc_c /** * ${3:undocumented class} * - * @packaged ${4:default} + * @package ${4:default} * @author ${5:`g:snips_author`} **/ ${1:}class ${2:} From 64a0367d5cefa52fcd75dff0f7d24ae8f5a18585 Mon Sep 17 00:00:00 2001 From: Daniel Del Rio Date: Mon, 11 Jun 2012 16:19:22 -0400 Subject: [PATCH 2/2] -Changed docblock endings to */ from **/ to match the specification from phpdoc. I also changed one ending from *// to */ as it seems that was an error. --- snippets/php.snippets | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/snippets/php.snippets b/snippets/php.snippets index 938d9a80..f133765b 100644 --- a/snippets/php.snippets +++ b/snippets/php.snippets @@ -35,7 +35,7 @@ snippet $_ SESSION['...'] snippet /* /** * ${1} - **/ + */ # Class - post doc snippet doc_cp /** @@ -43,21 +43,21 @@ snippet doc_cp * * @package ${2:default} * @author ${3:`g:snips_author`} - **/${4} + */${4} # Class Variable - post doc snippet doc_vp /** * ${1:undocumented class variable} * * @var ${2:string} - **/${3} + */${3} # Class Variable snippet doc_v /** * ${3:undocumented class variable} * * @var ${4:string} - **/ + */ ${1:var} $${2};${5} # Class snippet doc_c @@ -66,7 +66,7 @@ snippet doc_c * * @package ${4:default} * @author ${5:`g:snips_author`} - **/ + */ ${1:}class ${2:} {${6} } // END $1class $2 @@ -74,12 +74,12 @@ snippet doc_c snippet doc_dp /** * ${1:undocumented constant} - **/${2} + */${2} # Constant Definition snippet doc_d /** * ${3:undocumented constant} - **/ + */ define(${1}, ${2});${4} # Function - post doc snippet doc_fp @@ -88,7 +88,7 @@ snippet doc_fp * * @return ${2:void} * @author ${3:`g:snips_author`} - **/${4} + */${4} # Function signature snippet doc_s /** @@ -96,7 +96,7 @@ snippet doc_s * * @return ${5:void} * @author ${6:`g:snips_author`} - **/ + */ ${1}function ${2}(${3});${7} # Function snippet doc_f @@ -105,7 +105,7 @@ snippet doc_f * * @return ${5:void} * @author ${6:`g:snips_author`} - **/ + */ ${1}function ${2}(${3}) {${7} } @@ -118,11 +118,11 @@ snippet doc_h * @version ${3:$Id$} * @copyright ${4:$2}, `strftime('%d %B, %Y')` * @package ${5:default} - **/ + */ /** * Define DocBlock - *// + */ # Interface snippet doc_i /** @@ -130,7 +130,7 @@ snippet doc_i * * @package ${3:default} * @author ${4:`g:snips_author`} - **/ + */ interface ${1:} {${5} } // END interface $1 @@ -138,7 +138,7 @@ snippet doc_i snippet class /** * ${1} - **/ + */ class ${2:ClassName} { ${3}