forked from Quinn-Interactive/silverstripe-seo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
45 lines (43 loc) · 1.56 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
39
40
41
42
43
44
45
<?php
$finder = PhpCsFixer\Finder::create()
// ->exclude('somedir')
// ->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [ 'default' => 'align',],
'concat_space' => ['spacing' => 'one'],
'explicit_string_variable' => true,
'no_closing_tag' => true,
'no_extra_blank_lines' => true,
'no_unused_imports' => true,
'no_whitespace_in_blank_line' => true,
'ordered_class_elements' => [
'order' => [
'use_trait',
'constant_public',
'constant_protected',
'constant_private',
'property_public',
'property_protected',
'property_private',
'construct',
'destruct',
'magic',
'phpunit',
'method_public',
'method_protected',
'method_private',
'method_public_static',
'method_protected_static',
'method_private_static',
],
'sortAlgorithm' => 'alpha',
],
'ordered_imports' => true,
'single_line_after_imports' => true,
'no_empty_statement' => true,
])
->setFinder($finder);