From 9931e0888b2419326ae10ebbfae532261c5c125f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:11:56 +0200 Subject: Fix submodules --- vim/bundle/vim-snippets | 1 + vim/bundle/vim-snippets/UltiSnips/php.snippets | 251 ------------------------- 2 files changed, 1 insertion(+), 251 deletions(-) create mode 160000 vim/bundle/vim-snippets delete mode 100644 vim/bundle/vim-snippets/UltiSnips/php.snippets (limited to 'vim/bundle/vim-snippets/UltiSnips/php.snippets') diff --git a/vim/bundle/vim-snippets b/vim/bundle/vim-snippets new file mode 160000 index 0000000..15d7e5e --- /dev/null +++ b/vim/bundle/vim-snippets @@ -0,0 +1 @@ +Subproject commit 15d7e5ec26ec93adee4051b6359be90a943aa38d diff --git a/vim/bundle/vim-snippets/UltiSnips/php.snippets b/vim/bundle/vim-snippets/UltiSnips/php.snippets deleted file mode 100644 index 7ba51c7..0000000 --- a/vim/bundle/vim-snippets/UltiSnips/php.snippets +++ /dev/null @@ -1,251 +0,0 @@ -priority -50 - -## Snippets from SnipMate, taken from -## https://github.com/scrooloose/snipmate-snippets.git - -snippet gm "PHP Class Getter" b -/** - * Getter for $1 - * - * @return ${2:string} - */ -public function get${1/\w+\s*/\u$0/}() -{ - return $this->$1; -} -endsnippet - -snippet sm "PHP Class Setter" b -/** - * Setter for $1 - * - * @param ${2:string} $$1 - * @return ${3:`!p snip.rv=snip.basename`} - */ -public function set${1/\w+\s*/\u$0/}(${4:${2/(void|string|int|integer|double|float|object|boolear|null|mixed|number|resource)|(.*)/(?1::$2 )/}}$$1) -{ - $this->$1 = $$1; - - ${5:return $this;} -} -endsnippet - -snippet gs "PHP Class Getter Setter" b -/** - * Getter for $1 - * - * @return ${2:string} - */ -public function get${1/\w+\s*/\u$0/}() -{ - return $this->$1; -} - -/** - * Setter for $1 - * - * @param $2 $$1 - * @return ${3:`!p snip.rv=snip.basename`} - */ -public function set${1/\w+\s*/\u$0/}(${4:${2/(void|string|int|integer|double|float|object|boolear|null|mixed|number|resource)|(.*)/(?1::$2 )/}}$$1) -{ - $this->$1 = $$1; - - ${5:return $this;} -} -endsnippet - -snippet pub "Public function" b -/** - * ${3:undocumented function} - * - * @return ${4:void} - */ -public function ${1:name}(${2:$param}) -{ - ${VISUAL}${5:return null;} -} -$0 -endsnippet - -snippet pro "Protected function" b -/** - * ${3:undocumented function} - * - * @return ${4:void} - */ -protected function ${1:name}(${2:$param}) -{ - ${VISUAL}${5:return null;} -} -$0 -endsnippet - -snippet pri "Private function" b -/** - * ${3:undocumented function} - * - * @return ${4:void} - */ -private function ${1:name}(${2:$param}) -{ - ${VISUAL}${5:return null;} -} -$0 -endsnippet - -snippet pubs "Public static function" b -/** - * ${3:undocumented function} - * - * @return ${4:void} - */ -public static function ${1:name}(${2:$param}) -{ - ${VISUAL}${5:return null;} -} -$0 -endsnippet - -snippet pros "Protected static function" b -/** - * ${3:undocumented function} - * - * @return ${4:void} - */ -protected static function ${1:name}(${2:$param}) -{ - ${VISUAL}${5:return null;} -} -$0 -endsnippet - -snippet pris "Private static function" b -/** - * ${3:undocumented function} - * - * @return ${4:void} - */ -private static function ${1:name}(${2:$param}) -{ - ${VISUAL}${5:return null;} -} -$0 -endsnippet - -snippet fu "Function snip" b -function ${1:name}(${2:$param}) -{ - ${VISUAL}${3:return null;} -} -$0 -endsnippet - -snippet new "New class instance" b -$${1:variableName} = new ${2:${1/\w+\s*/\u$0/}}($3); -$0 -endsnippet - -snippet ns "namespace declaration" b -namespace ${1:`!p -relpath = os.path.relpath(path) -m = re.search(r'[A-Z].+(?=/)', relpath) -if m: - snip.rv = m.group().replace('/', '\\') -`}; -endsnippet - -snippet class "Class declaration template" b -$1 = $$1;/g} -} -$0 -endsnippet - -# PHPUnit snippets -snippet testcase "class XYZTest extends \PHPUnit_Framework_TestCase { ... }" -