Mathew Attlee
fff3ae4061
Strict typed snippets for PHP getters that check declare(strict_types=1) or for g:ultisnips_php_scalar_types=1
2016-06-29 22:27:30 +01:00
Mathew Attlee
e016f1f78f
Refactored PHP getter and setter snippets to have consistent triggers
2016-06-17 15:18:04 +01:00
Mathew Attlee
f79462e9ec
Consolidated PHP snippets and removed UltiSnips duplicates
2016-05-29 12:51:19 +01:00
Mathew Attlee
120ead2c37
Tidied up and consolidated snippets for PHPUnit
2016-05-27 13:18:16 +01:00
Mathew Attlee
9a8082aba6
Fixed the PHPDoc block for the getter to use @return
2016-05-25 08:57:06 +01:00
Mathew Attlee
e8cb8d0165
PHP and Twig conditional snippets to be consistent with naming convention: if, ife, eif, el, wh
2016-05-05 14:23:12 +01:00
Mathew Attlee
c95c0e4cda
Fix the PHPDoc for trait snippet
2016-04-30 13:57:11 +01:00
Mathew Attlee
a13199fb3c
Moved snippet sfa
into Symfony snippets
2016-04-30 13:33:27 +01:00
Mathew Attlee
9bee55407f
Trait snippet for PHP
2016-04-30 13:33:25 +01:00
Mathew Attlee
a5edd3369e
Use relative path when determining namespace
for PHP snippet
2016-04-29 17:32:57 +01:00
Marcelo Jacobus
29903a019e
Fixed non-documentary placeholders
2015-03-02 16:30:48 +01:00
Marcelo Jacobus
6c9ec92eec
Fixed some PHP Code Standards
2015-02-24 17:23:50 +01:00
Julien Deniau
01a85b1d63
remove blank lines
2015-02-12 11:10:28 +01:00
Julien Deniau
051bc1a91c
Fix copy/paste bug
2015-02-12 11:07:46 +01:00
Julien Deniau
23ee37a49c
Update PHP class and interface snippets
...
Include <?php and namespace automatically
2015-02-03 10:49:07 +01:00
Julien Deniau
5b86f089dc
Update PHP getter setter
...
Add return / parameter types
Set @param and @return
2015-01-30 15:25:14 +01:00
Holger Rapp
a811b756d0
Merge pull request #456 from BlackIkeEagle/php-docblock-methods
...
Php: docblock methods
2014-09-29 20:22:59 +02:00
BlackEagle
dca6268c24
php add interface snippet similar to class snippet
...
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-23 09:51:44 +02:00
BlackEagle
41f9d7dc5a
php extend class snippet so you can easily add abstract or final
...
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-23 09:50:51 +02:00
BlackEagle
6e0180c5fc
add inheritdoc docblock snippet
...
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-23 09:19:26 +02:00
BlackEagle
faec22c56d
add simple docblocks for class methods
...
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-23 09:18:53 +02:00
Holger Rapp
6db93bcabf
Merge pull request #446 from BlackIkeEagle/php-typo
...
php: fix do{} while snippet typo, does not end on"
2014-09-11 06:27:48 -07:00
BlackEagle
9665df2022
php :: add elseif
...
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-11 14:06:36 +02:00
BlackEagle
ace1d94dd8
php :: fix do{}while snippet typo, does not end on"
...
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-11 13:58:01 +02:00
Mario de Frutos
5d012dba29
More adecuate naming
2014-08-14 13:26:54 +02:00
Mario de Frutos
4e13b696d6
Avoid collision with print_r snippet
2014-08-14 10:28:31 +02:00
Cézar Antáres
91a31b1fba
PHP Class snippet was working wrong
2014-07-06 22:22:35 -05:00
Jorge López Pérez
db3b240783
Fix PHP getter and setter UltiSnips snippet
...
Was broken due to complex regular expressions applied to $1,
which made UltiSnips to complain about not knowing it.
Simplified the snippet using the already working getter and setter snippets.
2014-03-19 14:43:08 +01:00
Holger Rapp
59dcc2b72d
Brings current UltiSnips snippets into the repository.
2014-03-04 09:17:27 +01:00
yuhuanbo
fe4c59fa2d
[php] [symfony] some bugfix and improve
...
symfony snippet `ent` now support abstract class
2013-09-25 21:15:35 +08:00
yuhuanbo
2a0cd591e7
add symfony2 form snip
2013-09-08 14:56:16 +08:00
yuhuanbo
702844eb2b
add phpunit snippets
2013-08-26 21:16:33 +08:00
yuhuanbo
1eb75e363e
nc
support trait
2013-08-21 11:29:40 +08:00
yuhuanbo
786f9a66fa
snip nc
auto detect Abstract
and Interface
2013-08-19 12:00:07 +08:00
yuhuanbo
0805491b05
add symfony2 snippets
2013-08-02 22:12:34 +08:00
yuhuanbo
04a98ad387
hotfix: move cursor in var_dump call, correct the case of class name
2013-08-01 22:42:37 +08:00
yuhuanbo
fdf1e6e174
remove old php snippet which Ultisnip already include, add something new
2013-07-31 21:56:59 +08:00
Marc Weber
344ac6ea2c
new policies for if, eif, el
...
What about wh(ile)?
drop some placeholder comments which don't add (enough) value to keep
for patterns used very often.
2013-06-23 02:30:26 +02:00
Marc Weber
d07009f27f
Adding UltiSnips snippets, updating Readme
...
UltiSnips snippets are taken from UltiSnips repo.
Putting them nearby the engine seems to be the wrong thing to do.
One reason is that there are two forks now.
2013-03-17 20:13:47 +01:00