From cdd424df88e5e3faef1faa4830b065b5e48c8e69 Mon Sep 17 00:00:00 2001 From: rrooij Date: Sat, 21 Apr 2018 10:57:50 +0200 Subject: [PATCH] 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. --- snippets/php-mode/get | 2 +- snippets/php-mode/set | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/php-mode/get b/snippets/php-mode/get index b97d4c3..8241839 100644 --- a/snippets/php-mode/get +++ b/snippets/php-mode/get @@ -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; } \ No newline at end of file diff --git a/snippets/php-mode/set b/snippets/php-mode/set index 039b655..5dcbafc 100644 --- a/snippets/php-mode/set +++ b/snippets/php-mode/set @@ -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; } \ No newline at end of file