Skip to content

Commit 348cd90

Browse files
minor bug fixes
1 parent b5a054b commit 348cd90

File tree

11 files changed

+30
-26
lines changed

11 files changed

+30
-26
lines changed

.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Language="en-US" Id="yii2-snippets" Version="0.0.2" Publisher="imanilchaudhari"/>
4+
<Identity Language="en-US" Id="yii2-snippets" Version="0.0.10" Publisher="imanilchaudhari"/>
55
<DisplayName>Yii2 Snippets</DisplayName>
66
<Description xml:space="preserve">Yii2 snippets for Visual Studio Code</Description>
77
<Tags>yii2,snippet,yii2 snippets</Tags>

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
## 0.0.10 (September 16, 2017)
4+
- Fixed minor bugs
5+
- Added: usefull php functions
36
## 0.0.9 (June 20, 2017)
47
- Fixed minor bugs
58
- Added: usefull php functions

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
[![Version](http://vsmarketplacebadge.apphb.com/version/imanilchaudhari.yii2-snippets.svg)](https://marketplace.visualstudio.com/items?itemName=imanilchaudhari.yii2-snippets)
2-
[![Installs](http://vsmarketplacebadge.apphb.com/installs/imanilchaudhari.yii2-snippets.svg)](https://marketplace.visualstudio.com/items?itemName=imanilchaudhari.yii2-snippets)
1+
[![Version](https://vsmarketplacebadge.apphb.com/version/imanilchaudhari.yii2-snippets.svg)](https://marketplace.visualstudio.com/items?itemName=imanilchaudhari.yii2-snippets)
2+
[![Installs](https://vsmarketplacebadge.apphb.com/installs/imanilchaudhari.yii2-snippets.svg)](https://marketplace.visualstudio.com/items?itemName=imanilchaudhari.yii2-snippets)
33
[![Ratings](https://vsmarketplacebadge.apphb.com/rating/imanilchaudhari.yii2-snippets.svg)](https://marketplace.visualstudio.com/items?itemName=imanilchaudhari.yii2-snippets)
44
[![Dependency Status](https://david-dm.org/imanilchaudhari/yii2-snippets-vscode.svg)](https://david-dm.org/imanilchaudhari/yii2-snippets-vscode)
5-
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/imanilchaudhari/yii2-snippets-vscode.svg)](http://isitmaintained.com/project/imanilchaudhari/yii2-snippets-vscode "Average time to resolve an issue")
6-
[![Percentage of issues still open](http://isitmaintained.com/badge/open/imanilchaudhari/yii2-snippets-vscode.svg)](http://isitmaintained.com/project/imanilchaudhari/yii2-snippets-vscode "Percentage of issues still open")
5+
[![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/imanilchaudhari/yii2-snippets-vscode.svg)](https://isitmaintained.com/project/imanilchaudhari/yii2-snippets-vscode "Average time to resolve an issue")
6+
[![Percentage of issues still open](https://isitmaintained.com/badge/open/imanilchaudhari/yii2-snippets-vscode.svg)](https://isitmaintained.com/project/imanilchaudhari/yii2-snippets-vscode "Percentage of issues still open")
77

88
## Yii2 Snippets
99
Yii2 snippets for Visual Studio Code.
@@ -29,8 +29,9 @@ Snippets named as the tag without braces
2929

3030
## Screenshot
3131

32-
![Screenshot](https://github.com/imanilchaudhari/yii2-snippets-vscode/raw/master/images/screenshot1.png)
33-
![Screenshot](https://github.com/imanilchaudhari/yii2-snippets-vscode/raw/master/images/screenshot2.png)
32+
![Screenshot](https://github.com/imanilchaudhari/yii2-snippets-vscode/raw/master/images/1.png)
33+
![Screenshot](https://github.com/imanilchaudhari/yii2-snippets-vscode/raw/master/images/2.png)
34+
![Screenshot](https://github.com/imanilchaudhari/yii2-snippets-vscode/raw/master/images/3.png)
3435

3536
## Installation
3637

images/1.png

43.7 KB
Loading

images/2.png

58.6 KB
Loading

images/3.png

9.4 KB
Loading

images/screenshot1.png

-119 KB
Binary file not shown.

images/screenshot2.png

-103 KB
Binary file not shown.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "yii2-snippets",
33
"displayName": "Yii2 Snippets",
44
"description": "Yii2 snippets for Visual Studio Code",
5-
"version": "0.0.9",
5+
"version": "0.0.10",
66
"publisher": "imanilchaudhari",
77
"keywords": [
88
"yii2",
@@ -12,7 +12,7 @@
1212
"author": {
1313
"name": "Anil Chaudhari",
1414
"email": "imanilchaudhari@outlook.com",
15-
"url": "https://anilcodes.com"
15+
"url": "http://anilchaudhari.com.np"
1616
},
1717
"homepage": "https://github.com/imanilchaudhari/yii2-snippets-vscode",
1818
"bugs": {

snippets/helpers/inflector.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
{
22
"Inflector::camel2id": {
33
"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",
55
"description": "Creats a tring from camelcase to id."
66
},
77
"Inflector::camel2words": {
88
"prefix": "Inflector::camel2words",
9-
"body": "Inflector::camel2words(\\$${name}, \\$${ucwords = true})$3",
9+
"body": "Inflector::camel2words(\\$${1:name}, \\$${2:ucwords = ${3|true, false|}})$4",
1010
"description": "Creats a string from camelcase to words."
1111
},
1212
"Inflector::camelize": {
1313
"prefix": "Inflector::camelize",
14-
"body": "Inflector::camelize(\\$${words})$3",
14+
"body": "Inflector::camelize(\\$${1:words})$2",
1515
"description": "Creats camelize words."
1616
},
1717
"Inflector::classify": {
1818
"prefix": "Inflector::classify",
19-
"body": "Inflector::classify(\\$${tableName})$3",
19+
"body": "Inflector::classify(\\$${1:tableName})$2",
2020
"description": "Classify a table name"
2121
},
2222
"Inflector::humanize": {
2323
"prefix": "Inflector::humanize",
24-
"body": "Inflector::humanize(\\$${word}, \\$${ucAll = false})$3",
24+
"body": "Inflector::humanize(\\$${1:word}, \\$${2:ucAll = ${3|true, false|}})$4",
2525
"description": "Creats humanize words."
2626
},
2727
"Inflector::id2camel": {
2828
"prefix": "Inflector::id2camel",
29-
"body": "Inflector::id2camel(\\$${id}, \\$${separator = '-'})$3",
29+
"body": "Inflector::id2camel(\\$${1:id}, \\$${2:separator = ${3|'-','_'|}})$4",
3030
"description": "Creats string from id to camelcase."
3131
},
3232
"Inflector::ordinalize": {
@@ -36,12 +36,12 @@
3636
},
3737
"Inflector::pluralize": {
3838
"prefix": "Inflector::pluralize",
39-
"body": "Inflector::pluralize(\\$${word})$3",
39+
"body": "Inflector::pluralize(\\$${1:word})$2",
4040
"description": "Pluralize word."
4141
},
4242
"Inflector::sentence": {
4343
"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",
4545
"description": "Create sectence from array."
4646
},
4747
"Inflector::singularize": {
@@ -51,7 +51,7 @@
5151
},
5252
"Inflector::slug": {
5353
"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",
5555
"description": "Creats a slugify string."
5656
},
5757
"Inflector::tableize": {
@@ -61,12 +61,12 @@
6161
},
6262
"Inflector::titleize": {
6363
"prefix": "Inflector::titleize",
64-
"body": "Inflector::titleize(\\$${words}, \\$${ucAll})$3",
64+
"body": "Inflector::titleize(\\$${1:words}, \\$${2:ucAll})$3",
6565
"description": "Creats a titleize string."
6666
},
6767
"Inflector::transliterate": {
6868
"prefix": "Inflector::transliterate",
69-
"body": "Inflector::transliterate(\\$${string}, \\$${transliterator = null})$3",
69+
"body": "Inflector::transliterate(\\$${1:string}, \\$${2:transliterator ${5|true, false|}})$3",
7070
"description": "Creats a transliterate string."
7171
},
7272
"Inflector::underscore": {

0 commit comments

Comments
 (0)