-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
39 lines (34 loc) · 1 KB
/
.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
30
31
32
33
34
35
36
37
38
39
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude([
'.cache',
'vendor',
]);
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setCacheFile(__DIR__.'/.cache/php-cs-fixer/.php-cs-fixer.cache')
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@PSR12' => true,
'@PhpCsFixer' => true,
'strict_param' => true,
'declare_strict_types' => true,
'trailing_comma_in_multiline' => [
'elements' => ['arrays', 'arguments', 'parameters', 'match'],
],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => false,
'import_functions' => false,
],
'php_unit_test_class_requires_covers' => false,
'php_unit_internal_class' => false,
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
])
->setFinder($finder);