-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.php-cs-fixer.php
42 lines (40 loc) · 1.03 KB
/
.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
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* PHP CS Fixer configuration for MONEI PHP SDK
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/HEAD/doc/config.rst
*/
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude([
'vendor',
'node_modules',
'.yarn',
'.git',
'.github',
'.openapi-generator',
])
->notPath([
'test.php',
'.php-cs-fixer.cache',
'.phpunit.result.cache',
]);
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR12' => true,
'phpdoc_order' => true,
'array_syntax' => ['syntax' => 'short'],
'strict_comparison' => true,
'strict_param' => true,
'no_trailing_whitespace' => false,
'no_trailing_whitespace_in_comment' => false,
'braces' => false,
'single_blank_line_at_eof' => false,
'blank_line_after_namespace' => false,
'no_leading_import_slash' => false,
'phpdoc_summary' => false,
'comment_to_phpdoc' => false,
])
->setFinder($finder)
->setUsingCache(true)
->setRiskyAllowed(true)
;