nvim/UltiSnips/php.snippets

34 lines
479 B
Plaintext

snippet pp "<?php ... ?>"
<?php $0; ?>
endsnippet
snippet pe "<?php ... ?>"
<?php echo "$0"; ?>
endsnippet
snippet ph "<?php ... ?>"
<?php esc_html( $0 ); ?>
endsnippet
snippet pf "public function ..."
public function $1($2) {
$0
}
endsnippet
snippet psf "public static function ..."
public static function $1($2) {
$0
}
endsnippet
snippet prsf "public static function ..."
private static function $1($2) {
$0
}
endsnippet
snippet ''= "'...' => "
'$1' => $0,
endsnippet