Skip to content

Commit b9bbf40

Browse files
committed
Update rev tools
1 parent 6e6df94 commit b9bbf40

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.php_cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,23 @@
22
return PhpCsFixer\Config::create()
33
->setRiskyAllowed(true)
44
->setRules([
5+
'@DoctrineAnnotation' => true,
56
'@Symfony' => true,
67
'@Symfony:risky' => true,
8+
'@PHPUnit60Migration:risky' => true,
79
'@PHP70Migration' => true,
810
'@PHP70Migration:risky' => true,
911
'align_multiline_comment' => true,
1012
'array_syntax' => ['syntax' => 'short'],
1113
'blank_line_before_statement' => true,
1214
'concat_space' => ['spacing' => 'one'],
15+
'escape_implicit_backslashes' => true,
16+
'explicit_indirect_variable' => true,
17+
'explicit_string_variable' => true,
1318
'heredoc_to_nowdoc' => true,
1419
'list_syntax' => ['syntax' => 'long'],
1520
'method_argument_space' => ['ensure_fully_multiline' => true],
21+
'method_chaining_indentation' => true,
1622
'native_function_invocation' => true,
1723
'no_break_comment' => true,
1824
'no_extra_consecutive_blank_lines' => ['tokens' => ['break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block']],
@@ -29,9 +35,11 @@ return PhpCsFixer\Config::create()
2935
'phpdoc_add_missing_param_annotation' => true,
3036
'phpdoc_order' => true,
3137
'phpdoc_types_order' => true,
38+
'random_api_migration' => true,
3239
'semicolon_after_instruction' => true,
3340
'silenced_deprecation_error' => false,
3441
'simplified_null_return' => true,
42+
'single_line_comment_style' => true,
3543
])
3644
->setFinder(
3745
PhpCsFixer\Finder::create()

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"require-dev": {
2727
"phpunit/phpunit": "^6.2",
28-
"friendsofphp/php-cs-fixer": "^2.6",
28+
"friendsofphp/php-cs-fixer": "^2.9",
2929
"zendframework/zend-mail": "^2.8"
3030
},
3131
"autoload": {

0 commit comments

Comments
 (0)