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

This package is auto-updated.

Last update: 2024-11-16 07:27:18 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__,
            ])
    );