There was an error while loading. Please reload this page.
1 parent 162c7fb commit 43ac0f4Copy full SHA for 43ac0f4
.php-cs-fixer.dist.php
@@ -0,0 +1,22 @@
1
+<?php
2
+
3
+use PhpCsFixer\Config;
4
+use PhpCsFixer\Finder;
5
6
+$finder = Finder::create()
7
+ ->in(__DIR__ . '/src')
8
+ ->in(__DIR__ . '/tests')
9
+ ->name('*.php');
10
11
+return (new Config())
12
+ ->setRules([
13
+ '@PSR12' => true,
14
+ 'strict_param' => true,
15
+ 'array_syntax' => ['syntax' => 'short'],
16
+ 'no_unused_imports' => true,
17
+ 'no_trailing_whitespace_in_string' => true,
18
+ 'single_quote' => true,
19
+ 'ordered_imports' => ['sort_algorithm' => 'alpha']
20
+ ])
21
+ ->setFinder($finder)
22
+ ->setUsingCache(true);
0 commit comments