eloquent/code-style

The Eloquent code style definition for PHP.

1.0.2 2019-11-15 23:50 UTC

This package is auto-updated.

Last update: 2019-11-27 00:12:35 UTC


README

Installation

Install dependencies:

composer require --dev friendsofphp/php-cs-fixer eloquent/code-style

Add a .php_cs file:

<?php return Eloquent\CodeStyle\Config::create(__DIR__);

To customize excluded paths, access the existing finder object:

<?php

$config = Eloquent\CodeStyle\Config::create(__DIR__);
$config->getFinder()->exclude([
    'artifacts',
    'test/fixture',
]);

return $config;

Usage

vendor/bin/php-cs-fixer fix