From 9b02aaf865a3e4b91a0c64b3bd326ffd9429e1db Mon Sep 17 00:00:00 2001 From: Jesper Skovgaard Nielsen Date: Wed, 8 Jan 2014 10:14:28 +0100 Subject: [PATCH] Make construct snippet PSR compliant. --- UltiSnips/php.snippets | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UltiSnips/php.snippets b/UltiSnips/php.snippets index 9e48930..6d8b138 100644 --- a/UltiSnips/php.snippets +++ b/UltiSnips/php.snippets @@ -230,9 +230,10 @@ endsnippet snippet construct "__construct()" b /** - * @param $2mixed ${1/, /\n * \@param mixed /g} + * @param $2mixed ${1/, /\n * \@param mixed /g} */ -public function __construct(${1:$dependencies}) {${1/\$(\w+)(, )*/\n\t$this->$1 = $$1;/g} +public function __construct(${1:$dependencies}) +{${1/\$(\w+)(, )*/\n $this->$1 = $$1;/g} } $0 endsnippet