swow / swow-php-cs-fixer-config
Config file of php-cs-fixer which is used by Swow
dev-develop
2024-04-27 14:25 UTC
Requires
- php: >=8.0
- friendsofphp/php-cs-fixer: ^3.9
This package is auto-updated.
Last update: 2024-10-16 07:20:42 UTC
README
Usage
composer require swow/swow-php-cs-fixer-config:dev-develop
touch .php-cs-fixer.dist.php
<?php use Swow\PhpCsFixer\Config; require __DIR__ . '/vendor/autoload.php'; return (new Config()) ->setHeaderComment( projectName: 'your project name', projectLink: 'your project link', contactName: 'your name', contactMail: 'your mail address' )->setFinder( PhpCsFixer\Finder::create() ->in([ __DIR__ . '/src', ]) ->append([ __FILE__, ]) );