File tree Expand file tree Collapse file tree 1 file changed +20
-13
lines changed Expand file tree Collapse file tree 1 file changed +20
-13
lines changed Original file line number Diff line number Diff line change 33
33
</target >
34
34
35
35
<target name =" cs" >
36
- <exec
37
- executable=" vendor/bin/phpcs"
38
- logoutput=" true"
39
- passthru=" true"
40
- checkreturn=" true"
41
- >
42
- <arg value =" --extensions=php" />
43
- <arg value =" --encoding=utf-8" />
44
- <arg value =" --tab-width=4" />
45
- <arg value =" -sp" />
46
- <arg path =" src" />
47
- <arg path =" tests" />
48
- </exec >
36
+ <php expression =" PHP_VERSION_ID >= 70400 ?'true':'false'" returnProperty =" isPHP74" level =" verbose" />
37
+ <if >
38
+ <equals arg1=" ${ isPHP74 } " arg2=" false" />
39
+ <then >
40
+ <exec
41
+ executable=" vendor/bin/phpcs"
42
+ logoutput=" true"
43
+ passthru=" true"
44
+ checkreturn=" true"
45
+ >
46
+ <arg value =" --colors" />
47
+ <arg value =" --extensions=php" />
48
+ <arg value =" --encoding=utf-8" />
49
+ <arg value =" --tab-width=4" />
50
+ <arg value =" -sp" />
51
+ <arg path =" src" />
52
+ <arg path =" tests" />
53
+ </exec >
54
+ </then >
55
+ </if >
49
56
</target >
50
57
51
58
<target name =" cs-fix" >
You can’t perform that action at this time.
0 commit comments