-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
33 lines (31 loc) · 982 Bytes
/
.php-cs-fixer.php
File metadata and controls
33 lines (31 loc) · 982 Bytes
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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/examples')
->in(__DIR__ . '/tests');
$config = new PhpCsFixer\Config();
return $config
->setRules([
'@PSR2' => true,
'blank_line_after_opening_tag' => false,
'linebreak_after_opening_tag' => false,
'no_superfluous_phpdoc_tags' => false,
'array_syntax' => [
'syntax' => 'short',
],
'binary_operator_spaces' => [
'operators' => [
'=>' => 'align',
'=' => 'single_space',
],
],
'simplified_null_return' => true,
'blank_line_after_namespace' => true,
'function_typehint_space' => true,
'multiline_comment_opening_closing' => true,
'no_unused_imports' => true,
'single_line_after_imports' => true,
'fully_qualified_strict_types' => true,
])
->setUsingCache(false)
->setFinder($finder);