forked from exonet/powerdns-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
29 lines (26 loc) · 942 Bytes
/
.php-cs-fixer.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
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->in(__DIR__.'/examples');
$config = new PhpCsFixer\Config();
return $config
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'@PhpCsFixer' => true,
'phpdoc_order' => true,
'ordered_class_elements' => true,
'multiline_whitespace_before_semicolons' => false,
'no_superfluous_phpdoc_tags' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_types_order' => [
'null_adjustment' => 'always_last',
],
'yoda_style' => false,
'ternary_to_null_coalescing' => true,
'array_syntax' => ['syntax' => 'short'],
'php_unit_test_class_requires_covers' => false,
'global_namespace_import' => ['import_classes' => true, 'import_constants' => false, 'import_functions' => false],
])
->setFinder($finder);