-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php_cs.php
34 lines (30 loc) · 833 Bytes
/
.php_cs.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
30
31
32
33
34
<?php
$config = new \PhpCsFixer\Config();
$config->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
'array_syntax' => ['syntax' => 'short'],
'mb_str_functions' => true,
'native_function_invocation' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'strict_param' => true,
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
]);
$finder = \PhpCsFixer\Finder::create();
$finder->files();
$finder->in('src');
$finder->in('tests');
$config->setFinder($finder);
$config->setUsingCache(true);
$config->setRiskyAllowed(true);
return $config;