forked from unzerdev/php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs
More file actions
30 lines (28 loc) · 1.04 KB
/
.php_cs
File metadata and controls
30 lines (28 loc) · 1.04 KB
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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/test');
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules(
array(
'@PSR2' => true,
'no_blank_lines_after_phpdoc' => true,
'phpdoc_add_missing_param_annotation' => true,
'native_function_casing' => true,
'method_separation' => true,
'method_argument_space' => true,
'no_empty_statement' => true,
'no_leading_import_slash' => true,
'no_multiline_whitespace_around_double_arrow' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_spaces_around_offset' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_unused_imports' => true,
'normalize_index_brace' => true,
'phpdoc_align' => true,
'phpdoc_separation' => true,
)
)
->setFinder($finder);