myonlinestore/coding-standard

MyOnlineStore Coding Standard

1.1.2 2019-08-08 09:48 UTC

README

Install

Install the package with composer:

composer require myonlinestore/coding-standard

Add the ruleset to your phpcs.xml.dist file:

<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
    <arg name="basepath" value="."/>
    <arg name="extensions" value="php"/>
    <arg name="parallel" value="80"/>
    <arg name="cache" value=".phpcs-cache"/>
    <arg name="colors"/>
    <arg value="sp"/>

    <file>src</file>
    <file>tests</file>

    <rule ref="vendor/myonlinestore/coding-standard/MyOnlineStore/ruleset.xml"/>
</ruleset>

Monolith Excludes

<exclude name="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment"/>