-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
36 lines (34 loc) · 1.1 KB
/
.php-cs-fixer.php
File metadata and controls
36 lines (34 loc) · 1.1 KB
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
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('vendor')
->notPath('tests/API/endpoints/_support/_generated')
->in(__DIR__)
->name('*.php');
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'@PhpCsFixer' => true,
'php_unit_test_class_requires_covers' => false,
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
'php_unit_method_casing' => ['case' => 'snake_case'],
'trailing_comma_in_multiline' => true,
'class_attributes_separation' => ['elements' => [
'const' => 'one',
'method' => 'one',
'property' => 'one',
'trait_import' => 'none',
],
],
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
],
'phpdoc_to_comment' => [
'ignored_tags' => ['deprecated'],
],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
])
->setFinder($finder);