summaryrefslogtreecommitdiff
path: root/.php-cs-fixer.dist.php
diff options
context:
space:
mode:
Diffstat (limited to '.php-cs-fixer.dist.php')
-rw-r--r--.php-cs-fixer.dist.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php
new file mode 100644
index 0000000..931a884
--- /dev/null
+++ b/.php-cs-fixer.dist.php
@@ -0,0 +1,19 @@
+<?php
+
+declare(strict_types=1);
+
+use PhpCsFixer\Config;
+use PhpCsFixer\Finder;
+use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
+
+return (new Config())
+ ->setParallelConfig(ParallelConfigFactory::detect())
+ ->setRiskyAllowed(false)
+ ->setRules([
+ '@auto' => true,
+ '@PSR12' => true,
+ 'new_with_parentheses' => [
+ 'named_class' => false,
+ ],
+ ])
+ ->setFinder((new Finder())->in(__DIR__));