swisnl/php-cs-fixer-config

Default PHP-CS-Fixer config factory used at SWIS

1.16.0 2023-01-31 11:29 UTC

This package is auto-updated.

Last update: 2023-03-01 01:00:10 UTC


README

Default PHP-CS-Fixer config factory used at SWIS

Install

Via Composer

$ composer require --dev swisnl/php-cs-fixer-config

Usage

Just use the config factory in your PHP-CS-Fixer config, and you're good to go!

<?php

$finder = PhpCsFixer\Finder::create()
    ->in([
        __DIR__.'/app',
        __DIR__.'/config',
        __DIR__.'/database',
        __DIR__.'/resources/lang',
        __DIR__.'/routes',
        __DIR__.'/tests',
    ])
;

return Swis\PhpCsFixer\Config\Factory::create()
    ->setFinder($finder);

Change log

Please see CHANGELOG for more information on what has changed recently.

Security

If you discover any security related issues, please email security@swis.nl instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.