This is a PHP Code Sniffer (phpcs) ruleset for enforcing the coding standards of Piwigo.
- Author: Sam Wilson
- Homepage: https://github.com/samwilson/piwigo-coding-standards
- Packagist: https://packagist.org/packages/samwilson/piwigo-coding-standards
- License: GPL 3.0 or later, first published 2019
composer require --dev samwilson/piwigo-coding-standards
Create a .phpcs.xml
file such as the following:
<?xml version="1.0"?>
<ruleset>
<rule ref="vendor/samwilson/piwigo-coding-standards/Piwigo/ruleset.xml" />
<file>.</file>
<exclude-pattern>./vendor</exclude-pattern>
</ruleset>
Then run:
./vendor/bin/phpcs