rshop/php-cs-fixer-config

Provides a configuration for friendsofphp/php-cs-fixer

v2.0.1 2019-11-11 12:37 UTC

This package is auto-updated.

Last update: 2020-05-11 13:58:39 UTC


README

This repository provides configurations for friendsofphp/php-cs-fixer.

Installation

Install the latest version using composer require --dev rshop/php-cs-fixer-config

Usage

Create a configuration file .php_cs in the root of your project:

<?php

$config = new Rshop\CS\Config\Rshop();

$config->getFinder()->in(__DIR__);

return $config;

To modify configuration file use setRule method. To declare strict types use setStrict method.