Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 83f79ed

Browse files
committed
Add versions of 'this' and 'ethis' snippets that work inside of php tags.
1 parent c2ac02f commit 83f79ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

snippets/language-php.cson

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@
8989
'case …':
9090
'prefix': 'case'
9191
'body': 'case \'${1:variable}\':\n\t${0:# code...}\n\tbreak;'
92+
'$this->…':
93+
'prefix': 'this'
94+
'body': '$this->$0'
95+
'echo $this->…':
96+
'prefix': 'ethis'
97+
'body': 'echo $this->$0'
9298
'Throw Exception':
9399
'prefix': 'throw'
94100
'body': 'throw new $1Exception(${2:"${3:Error Processing Request}"}${4:, ${5:1}});\n$0'

0 commit comments

Comments
 (0)