Skip to content

Commit e98732a

Browse files
committed
Formatted code using php-cs-fixer based on configuration file config/php-cs-fixer.json
Command to run php-cs-fixer: ~/.config/composer/vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix . --allow-risky=yes --using-cache=no --rules="$(cat config/php-cs-fixer.json)"
1 parent 06d0c6b commit e98732a

38 files changed

+599
-549
lines changed

config/php-cs-fixer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"@Symfony": true,
3+
"@PSR2": true,
4+
"array_syntax": {
5+
"syntax": "short"
6+
},
7+
"hash_to_slash_comment": true,
8+
"heredoc_to_nowdoc": true,
9+
"modernize_types_casting": true,
10+
"multiline_comment_opening_closing": true,
11+
"multiline_whitespace_before_semicolons": true,
12+
"native_function_invocation": false,
13+
"new_with_braces": false,
14+
"no_useless_else": false,
15+
"no_useless_return": true,
16+
"not_operator_with_successor_space": true,
17+
"ordered_class_elements": true,
18+
"ordered_imports": true,
19+
"pow_to_exponentiation": true,
20+
"simplified_null_return": true,
21+
"ternary_to_null_coalescing": true,
22+
"yoda_style": false,
23+
"void_return": false,
24+
"concat_space": {
25+
"spacing": "one"
26+
}
27+
}

0 commit comments

Comments
 (0)