Merge pull request #127 from nulpunkt/master
PHP: Make construct snippet PSR compliant.
This commit is contained in:
commit
8a3f34b561
@ -232,7 +232,8 @@ snippet construct "__construct()" b
|
||||
/**
|
||||
* @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
|
||||
|
Loading…
x
Reference in New Issue
Block a user