File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ phpunit.bin = ${basedir}/vendor/bin/phpunit
7
7
8
8
# PHP Code Sniffer
9
9
# # Paths
10
+ phpcbf.bin = ${basedir}/vendor/bin/phpcbf
10
11
phpcs.bin = ${basedir}/vendor/bin/phpcs
11
12
phpcs.dir = ${basedir}/vendor/squizlabs/php_codesniffer
12
13
phpcs.symlink.path = ${basedir}/vendor/squizlabs/php_codesniffer/src/Standards/SymfonyCustom
Original file line number Diff line number Diff line change 44
44
</exec >
45
45
</target >
46
46
47
+ <target name =" phpcbf" depends =" symlink-cs" description =" Find coding standard violations using PHP Code Sniffer" >
48
+ <exec executable =" ${ phpcbf.bin } " failonerror =" true" >
49
+ <arg value =" --standard=SymfonyCustom" />
50
+ <arg value =" --extensions=php" />
51
+ <arg value =" --ignore=vendor/*" />
52
+ <arg path =" ${ basedir } " />
53
+ </exec >
54
+ </target >
55
+
47
56
<target name =" symlink-cs" description =" Symlink this coding standard" unless =" symlink.exists" >
48
57
<symlink link =" ${ phpcs.symlink.path } " resource =" ${ basedir } /SymfonyCustom" />
49
58
</target >
You can’t perform that action at this time.
0 commit comments