From ba38c83495b448bc3b46241b5249003c55142621 Mon Sep 17 00:00:00 2001 From: Matthew Barry Date: Mon, 11 Jan 2016 10:29:54 -0600 Subject: [PATCH] Use snipMate syntax mixed UltiSnips and snipMate syntax was causing parse errors. --- snippets/php.snippets | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/snippets/php.snippets b/snippets/php.snippets index d45b766..27e2844 100644 --- a/snippets/php.snippets +++ b/snippets/php.snippets @@ -605,33 +605,25 @@ snippet te throw new ${1:Exception}("${2:Error Processing Request}"); snippet fpc "file_put_contents" b -file_put_contents(${1:file}, ${2:content}${3:, FILE_APPEND});$0 -endsnippet + file_put_contents(${1:file}, ${2:content}${3:, FILE_APPEND});$0 snippet sr "str_replace" -str_replace(${1:search}, ${2:replace}, ${3:subject})$0 -endsnippet + str_replace(${1:search}, ${2:replace}, ${3:subject})$0 snippet ia "in_array" -in_array(${1:needle}, ${2:haystack})$0 -endsnippet + in_array(${1:needle}, ${2:haystack})$0 snippet is "isset" -isset(${1:var})$0 -endsnippet + isset(${1:var})$0 snippet isa "isset array" -isset($${1:array}[${2:key}])$0 -endsnippet + isset($${1:array}[${2:key}])$0 snippet in "is_null" -is_null($${1:var})$0 -endsnippet + is_null($${1:var})$0 snippet fe "file_exists" -file_exists(${1:file})$0 -endsnippet + file_exists(${1:file})$0 snippet id "is_dir" -is_dir(${1:path})$0 -endsnippet + is_dir(${1:path})$0