This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
forked from somework/composer-symlinks
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php-cs-fixer.php
45 lines (42 loc) · 1.86 KB
/
.php-cs-fixer.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/src',
])
->files()
->name('*.php');
$config = new PhpCsFixer\Config();
return $config
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
//'psr0' => true,
'align_multiline_comment' => true,
'dir_constant' => true,
'linebreak_after_opening_tag' => true,
'modernize_types_casting' => true,
'multiline_whitespace_before_semicolons' => true,
'no_null_property_initialization' => true,
'no_php4_constructor' => true,
'no_superfluous_elseif' => true,
'no_unneeded_final_method' => true,
'no_unneeded_curly_braces' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => true,
'php_unit_construct' => true,
'phpdoc_order' => true,
'pow_to_exponentiation' => true,
'random_api_migration' => true,
'phpdoc_types_order' => true,
'single_quote' => true,
'standardize_not_equals' => true,
'trailing_comma_in_multiline' => true,
'include' => true,
'array_syntax' => [
'syntax' => 'short',
],
])
->setFinder($finder);