samwilson/piwigo-coding-standards

Piwigo coding standards ruleset for phpcs.

0.1.1 2019-08-23 01:19 UTC

This package is auto-updated.

Last update: 2024-10-23 13:21:31 UTC


README

This is a PHP Code Sniffer (phpcs) ruleset for enforcing the coding standards of Piwigo.

Installation

composer require --dev samwilson/piwigo-coding-standards

Usage

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