|
1 | 1 | { |
2 | 2 | "Inflector::camel2id": { |
3 | 3 | "prefix": "Inflector::camel2id", |
4 | | - "body": "Inflector::camel2id(\\$${name}, \\$${separator = '-'}, \\$${strict = false})$3", |
| 4 | + "body": "Inflector::camel2id(\\$${1:name}, \\$${2:separator = ${3|'-','_'|}}, \\$${4:strict = ${5|true, false|}})$6", |
5 | 5 | "description": "Creats a tring from camelcase to id." |
6 | 6 | }, |
7 | 7 | "Inflector::camel2words": { |
8 | 8 | "prefix": "Inflector::camel2words", |
9 | | - "body": "Inflector::camel2words(\\$${name}, \\$${ucwords = true})$3", |
| 9 | + "body": "Inflector::camel2words(\\$${1:name}, \\$${2:ucwords = ${3|true, false|}})$4", |
10 | 10 | "description": "Creats a string from camelcase to words." |
11 | 11 | }, |
12 | 12 | "Inflector::camelize": { |
13 | 13 | "prefix": "Inflector::camelize", |
14 | | - "body": "Inflector::camelize(\\$${words})$3", |
| 14 | + "body": "Inflector::camelize(\\$${1:words})$2", |
15 | 15 | "description": "Creats camelize words." |
16 | 16 | }, |
17 | 17 | "Inflector::classify": { |
18 | 18 | "prefix": "Inflector::classify", |
19 | | - "body": "Inflector::classify(\\$${tableName})$3", |
| 19 | + "body": "Inflector::classify(\\$${1:tableName})$2", |
20 | 20 | "description": "Classify a table name" |
21 | 21 | }, |
22 | 22 | "Inflector::humanize": { |
23 | 23 | "prefix": "Inflector::humanize", |
24 | | - "body": "Inflector::humanize(\\$${word}, \\$${ucAll = false})$3", |
| 24 | + "body": "Inflector::humanize(\\$${1:word}, \\$${2:ucAll = ${3|true, false|}})$4", |
25 | 25 | "description": "Creats humanize words." |
26 | 26 | }, |
27 | 27 | "Inflector::id2camel": { |
28 | 28 | "prefix": "Inflector::id2camel", |
29 | | - "body": "Inflector::id2camel(\\$${id}, \\$${separator = '-'})$3", |
| 29 | + "body": "Inflector::id2camel(\\$${1:id}, \\$${2:separator = ${3|'-','_'|}})$4", |
30 | 30 | "description": "Creats string from id to camelcase." |
31 | 31 | }, |
32 | 32 | "Inflector::ordinalize": { |
|
36 | 36 | }, |
37 | 37 | "Inflector::pluralize": { |
38 | 38 | "prefix": "Inflector::pluralize", |
39 | | - "body": "Inflector::pluralize(\\$${word})$3", |
| 39 | + "body": "Inflector::pluralize(\\$${1:word})$2", |
40 | 40 | "description": "Pluralize word." |
41 | 41 | }, |
42 | 42 | "Inflector::sentence": { |
43 | 43 | "prefix": "Inflector::sentence", |
44 | | - "body": "Inflector::sentence(${array \\$word}, \\$${twoWordsConnector = null}, \\$${lastWordConnector = null}, \\$${connector = ','})$3", |
| 44 | + "body": "Inflector::sentence(${1:array \\$word}, \\$${2:twoWordsConnector ${3|true, false|}}, \\$${4:lastWordConnector ${5|true, false|}}, \\$${6:connector = ','})$7", |
45 | 45 | "description": "Create sectence from array." |
46 | 46 | }, |
47 | 47 | "Inflector::singularize": { |
|
51 | 51 | }, |
52 | 52 | "Inflector::slug": { |
53 | 53 | "prefix": "Inflector::slug", |
54 | | - "body": "Inflector::slug(\\$${string}, \\$${replacement = '-'}, \\$${lowercase = true})$3", |
| 54 | + "body": "Inflector::slug(\\$${1:string}, \\$${2:replacement = ${3|'-','_'|}}, \\$${4:lowercase = ${5|true, false|}})$6", |
55 | 55 | "description": "Creats a slugify string." |
56 | 56 | }, |
57 | 57 | "Inflector::tableize": { |
|
61 | 61 | }, |
62 | 62 | "Inflector::titleize": { |
63 | 63 | "prefix": "Inflector::titleize", |
64 | | - "body": "Inflector::titleize(\\$${words}, \\$${ucAll})$3", |
| 64 | + "body": "Inflector::titleize(\\$${1:words}, \\$${2:ucAll})$3", |
65 | 65 | "description": "Creats a titleize string." |
66 | 66 | }, |
67 | 67 | "Inflector::transliterate": { |
68 | 68 | "prefix": "Inflector::transliterate", |
69 | | - "body": "Inflector::transliterate(\\$${string}, \\$${transliterator = null})$3", |
| 69 | + "body": "Inflector::transliterate(\\$${1:string}, \\$${2:transliterator ${5|true, false|}})$3", |
70 | 70 | "description": "Creats a transliterate string." |
71 | 71 | }, |
72 | 72 | "Inflector::underscore": { |
|
0 commit comments