-
-
Notifications
You must be signed in to change notification settings - Fork 237
/
.php-cs-fixer.dist.php
28 lines (26 loc) · 1.04 KB
/
.php-cs-fixer.dist.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
<?php
// Reference: http://cs.sensiolabs.org/
return (new PhpCsFixer\Config())
->setUsingCache(false)
->setRiskyAllowed(true)
->setRules([
'@PHP70Migration' => true,
'@PHP71Migration' => true,
'@PSR2' => true,
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'increment_style' => ['style' => 'post'],
'multiline_whitespace_before_semicolons' => true,
'array_indentation' => true,
'not_operator_with_successor_space' => true,
'ordered_imports' => ['sort_algorithm' => 'length'],
'php_unit_method_casing' => ['case' => 'snake_case'],
'semicolon_after_instruction' => false,
'single_line_throw' => false,
'yoda_style' => false,
'strict_comparison' => true,
'yoda_style' => false,
'single_line_throw' => false,
'php_unit_method_casing' => ['case' => 'snake_case'],
'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true],
]);