myonlinestore/coding-standard

MyOnlineStore Coding Standard

1.1.3 2019-11-01 09:41 UTC

This package is auto-updated.

Last update: 2020-03-30 00:17:31 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"/>