-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php_cs
39 lines (37 loc) · 1.33 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
<?php
/**
* @see https://github.com/mlocati/php-cs-fixer-configurator
*/
use PhpCsFixer\Config;
use Symfony\Component\Finder\Finder;
$finder = Finder::create()
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return Config::create()
->setRules([
'@PSR2' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => true,
'blank_line_after_namespace' => true,
'blank_line_before_return' => true,
'braces' => true,
'class_definition' => true,
'method_argument_space' => ['ensure_fully_multiline'=>false,'on_multiline'=>'ignore'],
'method_chaining_indentation' => true,
'no_extra_consecutive_blank_lines' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_short_echo_tag' => false,
'no_spaces_around_offset' => true,
'no_unused_imports' => true,
'no_whitespace_before_comma_in_array' => true,
'not_operator_with_successor_space' => true,
'ordered_imports' => ['sortAlgorithm' => 'length'],
'return_type_declaration' => ['space_before' => 'none'],
'single_quote' => true,
'trailing_comma_in_multiline_array' => false,
'trim_array_spaces' => true
])
->setFinder($finder);