File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 44; cakephp = 0
55
66; 自动分析类的属性并生成构造方法
7- ; 可选择 camel/snak /golang 三种风格的构造方法
7+ ; 可选择 camel/snake /golang 三种风格的构造方法
88; constructor = camel
99
1010; 自动分析类的属性并生成 set/get 方法
11- ; 可选择 camel/snak /golang 三种风格的方法命名
11+ ; 可选择 camel/snake /golang 三种风格的方法命名
1212; setters_and_getters = camel
1313
1414; 试运行
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ echo "./app ./bootstrap ./database" > ./.fmtdirs
2929
3030``` bash
3131cd /workspace/myapplication
32- vendor/bin/phpfmt .
32+ vendor/bin/phpfmt
3333```
3434
3535## Global Installation
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ php=`which php`
44
55fmtconf=$PWD /.phpfmt.ini
66dirconf=$PWD /.phpfmtdirs
7+ fmtphar=$PWD /verndor/zhouyl/phpfmt-tool/fmt.phar
78fmthome=$HOME /.phpfmt
8- fmtphar=$fmthome /fmt.phar
99
1010# url prefix for phpfmt & configuration download
1111downurl=" --no-check-certificate https://raw.githubusercontent.com/zhouyl/phpfmt-tool/master"
4646fi
4747
4848if [ ! -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
5154fi
5255
5356# get the target directories
You can’t perform that action at this time.
0 commit comments