forked from flix-tech/avro-serde-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
29 lines (26 loc) · 959 Bytes
/
.php-cs-fixer.dist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(['src', 'test'])
;
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
'imports_order' => ['class', 'const', 'function'],
],
'phpdoc_summary' => false,
'phpdoc_to_comment' => false,
'yoda_style' => true,
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'list_syntax' => ['syntax' => 'short'],
'no_null_property_initialization' => true,
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'all', 'strict' => false],
'ordered_class_elements' => true,
'php_unit_method_casing' => false,
])
->setFinder($finder)
->setCacheFile('.php_cs.' . (string) getenv('PHP_VERSION') . '.cache')
->setUsingCache(true);