File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 4
4
; cakephp = 0
5
5
6
6
; 自动分析类的属性并生成构造方法
7
- ; 可选择 camel/snak /golang 三种风格的构造方法
7
+ ; 可选择 camel/snake /golang 三种风格的构造方法
8
8
; constructor = camel
9
9
10
10
; 自动分析类的属性并生成 set/get 方法
11
- ; 可选择 camel/snak /golang 三种风格的方法命名
11
+ ; 可选择 camel/snake /golang 三种风格的方法命名
12
12
; setters_and_getters = camel
13
13
14
14
; 试运行
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ echo "./app ./bootstrap ./database" > ./.fmtdirs
29
29
30
30
``` bash
31
31
cd /workspace/myapplication
32
- vendor/bin/phpfmt .
32
+ vendor/bin/phpfmt
33
33
```
34
34
35
35
## Global Installation
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ php=`which php`
4
4
5
5
fmtconf=$PWD /.phpfmt.ini
6
6
dirconf=$PWD /.phpfmtdirs
7
+ fmtphar=$PWD /verndor/zhouyl/phpfmt-tool/fmt.phar
7
8
fmthome=$HOME /.phpfmt
8
- fmtphar=$fmthome /fmt.phar
9
9
10
10
# url prefix for phpfmt & configuration download
11
11
downurl=" --no-check-certificate https://raw.githubusercontent.com/zhouyl/phpfmt-tool/master"
46
46
fi
47
47
48
48
if [ ! -f $fmtphar ]; then
49
- echo " Download the phpfmt.phar: $fmtphar "
50
- download $fmtphar
49
+ fmtphar=$fmthome /fmt.phar
50
+ if [ ! -f $fmtphar ]; then
51
+ echo " Download the phpfmt.phar: $fmtphar "
52
+ download $fmtphar
53
+ fi
51
54
fi
52
55
53
56
# get the target directories
You can’t perform that action at this time.
0 commit comments