Skip to content

Commit

Permalink
Implement PSR-2 code standard.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Oct 19, 2013
1 parent 307f2f5 commit 8e26692
Show file tree
Hide file tree
Showing 8 changed files with 348 additions and 346 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tools:
php_mess_detector: true
php_code_sniffer:
config:
standard: PSR1
standard: PSR2
php_code_coverage:
config_path: phpunit.xml
php_cpd:
Expand Down
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<target name="phpcs" description="Find coding standard violations using PHP_CodeSniffer and print human readable output. Intended for usage on the command line before committing.">
<exec executable="phpcs">
<arg value="--standard=${basedir}/build/phpcs.xml" />
<arg value="--ignore=${basedir}/src/fixture/" />
<arg path="${basedir}/src" />
</exec>
</target>
Expand Down
3 changes: 2 additions & 1 deletion build/phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<ruleset name="name-of-your-coding-standard">
<description>Description of your coding standard</description>
<description>PSR2 Compliant</description>
<rule ref="PSR2"/>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
</ruleset>
Empty file modified build/phpunit.xml
100644 → 100755
Empty file.
Loading

0 comments on commit 8e26692

Please sign in to comment.