php-mode: fix case in getters and setters (#271)

Fix the case of the getter and setter templates. The previous
method "capitalize" turned upper case characters to lower case
elsewhere in the string.
This commit is contained in:
rrooij 2018-04-21 10:57:50 +02:00 committed by Andrea Crotti
parent 829e3b0e22
commit cdd424df88
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
# key: get
# group: definitions
# --
public function get${1:$(capitalize yas-text)}()
public function get${1:$(upcase-initials yas-text)}()
{
return \$this->$1;
}

View File

@ -4,7 +4,7 @@
# key: set
# group: definitions
# --
public function set${1:$(capitalize yas-text)}(\$$1)
public function set${1:$(upcase-initials yas-text)}(\$$1)
{
\$this->$1 = \$$1;
}