exoticca/coding-style

PHP Coding Style rules for Exoticca's projects.

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 0

Open Issues: 11

pkg:composer/exoticca/coding-style


README

Opinionated linting configuration inspired on Codely's Coding Style.

How to use

Install the package via Composer:

composer require --dev exoticca/coding-style

Create a ecs.php file in the root of your project:

use Exoticca\CodingStyle;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return ECSConfig
    ::configure()
    ->withSets([
        CodingStyle::DEFAULT,
    ])
    ->withPaths([
        __DIR__.'/src',
        __DIR__.'/tests',
    ])
    ->withRootFiles();

Execute the following command to see the suggested changes:

vendor/bin/ecs

To actually fix your code, add --fix:

vendor/bin/ecs --fix

For more information, check the Easy Coding Standard documentation

What it does

Checks the code style of your project using: