Skip to content

Commit c522e2b

Browse files
committed
Merge pull request honza#519 from jdeniau/patch-2
Fix copy/paste bug
2 parents 0deb4bd + 01a85b1 commit c522e2b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

UltiSnips/php.snippets

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ public function get${1/\w+\s*/\u$0/}()
111111
{
112112
return $this->$1;$3
113113
}
114-
$0
115114
endsnippet
116115

117116
snippet setter "PHP Class Setter" b
@@ -266,7 +265,7 @@ namespace ${1:`!p
266265
abspath = os.path.abspath(path)
267266
m = re.search(r'[A-Z].+(?=/)', abspath)
268267
if m:
269-
snip.rv = m.group().replace('/', '\\')
268+
snip.rv = m.group().replace('/', '\\')
270269
`};
271270
endsnippet
272271

@@ -277,7 +276,7 @@ namespace ${1:`!p
277276
abspath = os.path.abspath(path)
278277
m = re.search(r'[A-Z].+(?=/)', abspath)
279278
if m:
280-
snip.rv = m.group().replace('/', '\\')
279+
snip.rv = m.group().replace('/', '\\')
281280
`};
282281

283282
/**
@@ -287,7 +286,6 @@ if m:
287286
class $1
288287
{
289288
}
290-
$0
291289
endsnippet
292290

293291
snippet interface "Interface declaration template" b
@@ -297,7 +295,7 @@ namespace ${1:`!p
297295
abspath = os.path.abspath(path)
298296
m = re.search(r'[A-Z].+(?=/)', abspath)
299297
if m:
300-
snip.rv = m.group().replace('/', '\\')
298+
snip.rv = m.group().replace('/', '\\')
301299
`};
302300

303301
/**
@@ -306,7 +304,7 @@ if m:
306304
*/
307305
interface $1
308306
{
309-
public function ${3:someFunction}();$4
307+
public function ${3:someFunction}();$4
310308
}
311309
endsnippet
312310

0 commit comments

Comments
 (0)