pojokcodeid.nvim-lazy/my-snippets/laravel5/snippets/hash.json
asep komarudin 1ab37bd478 update
2023-01-15 00:19:37 +07:00

26 lines
No EOL
821 B
JSON

{
"Hash-check.sublime-snippet": {
"prefix": "Hash::check",
"body": [
"Hash::check(${1:\\$value}, ${2:\\$hashedValue})$3"
],
"description": "Check the given plain value against a hash."
},
"Hash-make.sublime-snippet": {
"prefix": "Hash::make",
"body": [
"Hash::make(${1:\\$value})$2"
],
"description": "Hash the given value."
},
"Hash-needsRehash.sublime-snippet": {
"prefix": "Hash::needsRehash",
"body": [
"if (Hash::needsRehash(${1:\\$hashedValue}))",
"{",
" ${2:\\$hashed} = Hash::make(${3:\\$value});",
"}$4"
],
"description": "Check if the given hash has been hashed using the given options."
}
}