Skip to content

Commit 85f6955

Browse files
committed
support php-cs-fixer
1 parent e7408af commit 85f6955

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66
#### 运行
77
```shell
88
php bin/console start
9+
```
10+
11+
12+
#### 格式化代码
13+
```shell
14+
composer cs ./app
915
```

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"require-dev": {
2020
"friendsofphp/php-cs-fixer": "^3.22.0"
2121
},
22+
"scripts": {
23+
"cs": [
24+
"./vendor/bin/php-cs-fixer fix --verbose"
25+
]
26+
},
2227
"minimum-stability": "dev",
2328
"prefer-stable": true
2429
}

0 commit comments

Comments
 (0)