mirror of
https://github.com/elyby/php-code-style.git
synced 2025-05-26 03:09:11 +05:30
18 lines
387 B
PHP
18 lines
387 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Ely\CS;
|
|
|
|
use PhpCsFixer\Config as PhpCsFixerConfig;
|
|
|
|
class Config {
|
|
|
|
public static function create(array $overwrittenRules = []): PhpCsFixerConfig {
|
|
return (new PhpCsFixerConfig())
|
|
->setRiskyAllowed(true)
|
|
->registerCustomFixers(new Fixers())
|
|
->setRules(Rules::create($overwrittenRules));
|
|
}
|
|
|
|
}
|