phpyh/coding-standard

PHPyh Coding Standard For PHP CS Fixer

2.6.2 2024-09-03 06:59 UTC

This package is auto-updated.

Last update: 2024-09-03 07:00:28 UTC


README

Latest Stable Version Total Downloads psalm-level type-coverage

安装

composer require --dev phpyh/coding-standard

与 PHP CS Fixer 一起使用

更新您的 .php-cs-fixer.dist.php

<?php

use PHPyh\CodingStandard\PhpCsFixerCodingStandard;

$finder = PhpCsFixer\Finder::create()
    ->in(__DIR__.'/src')
    // ...
;

$config = (new PhpCsFixer\Config())
    ->setFinder($finder)
    // ...
;

(new PhpCsFixerCodingStandard())->applyTo($config, [
    // overriding rules
]);

return $config;