forked from barbushin/php-imap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
38 lines (37 loc) · 1.09 KB
/
.php_cs.dist
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
30
31
32
33
34
35
36
37
38
<?php
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => [
'syntax' => 'short'
],
'ordered_imports' => true,
'phpdoc_to_comment' => false,
'no_superfluous_phpdoc_tags' => true,
'declare_strict_types' => true,
'void_return' => true,
'ordered_class_elements' => true,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => false,
],
'native_constant_invocation' => true,
'native_function_invocation' => true,
'php_unit_test_case_static_method_calls' => [
'call_type' => 'this',
],
'php_unit_method_casing' => true,
'php_unit_dedicate_assert' => [
'target' => 'newest',
],
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->in(__DIR__.'/examples')
)
;