This repository has been archived by the owner on Mar 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.php_cs
51 lines (46 loc) · 1.8 KB
/
.php_cs
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
46
47
48
49
50
<?php
$header = <<<EOF
This file is part of the RollerworksBreadcrumbsBundle package.
(c) Sebastiaan Stok <[email protected]>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP70Migration' => false,
'@PHP71Migration' => false,
'array_syntax' => array('syntax' => 'short'),
'combine_consecutive_unsets' => true,
// 'declare_strict_types' => true,
'header_comment' => ['header' => $header],
'heredoc_to_nowdoc' => true,
'linebreak_after_opening_tag' => true,
'no_extra_consecutive_blank_lines' => ['continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block'],
'no_short_echo_tag' => true,
'no_unreachable_default_argument_value' => false,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => false,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => false,
'phpdoc_annotation_without_dot' => true,
'phpdoc_no_empty_return' => false, // PHP 7 compatibility
'phpdoc_order' => true,
// This breaks for variable @var blocks
'phpdoc_to_comment' => false,
'phpdoc_var_without_name' => false,
'semicolon_after_instruction' => true,
'single_import_per_statement' => false,
'strict_comparison' => true,
'strict_param' => true,
'yoda_style' => false, # to broad
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->exclude('Fixtures')
->in([__DIR__.'/src', __DIR__.'/tests'])
)
;