Created
May 28, 2019 15:58
-
-
Save MissAllSunday/b171ca6af5f2c3e1a7488318585aec15 to your computer and use it in GitHub Desktop.
ruleset for SMF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return PhpCsFixer\Config::create() | |
->setUsingCache(false) | |
->setRules([ | |
'array_syntax' => [ | |
'syntax' => 'long' | |
], | |
'ordered_imports' => true, | |
'binary_operator_spaces' => true, | |
'cast_spaces' => true, | |
'full_opening_tag' => true, | |
'function_declaration' => [ | |
'closure_function_spacing' => 'none' | |
], | |
'function_typehint_space' => true, | |
'lowercase_cast' => true, | |
'lowercase_constants' => true, | |
'lowercase_keywords' => true, | |
'lowercase_static_reference' => true, | |
'magic_constant_casing' => true, | |
'magic_method_casing' => true, | |
'method_argument_space' => true, | |
'method_chaining_indentation' => true, | |
'multiline_comment_opening_closing' => true, | |
'native_function_casing' => true, | |
'native_function_type_declaration_casing' => true, | |
'new_with_braces' => true, | |
'no_binary_string' => true, | |
'no_blank_lines_after_phpdoc' => true, | |
'no_empty_comment' => true, | |
'no_empty_phpdoc' => true, | |
'no_empty_statement' => true, | |
'no_mixed_echo_print' => [ | |
'use' => 'echo' | |
], | |
'no_short_echo_tag' => true, | |
'no_spaces_after_function_name' => true, | |
'no_unneeded_curly_braces' => true, | |
'standardize_not_equals' => true, | |
'ternary_operator_spaces' => true, | |
]) | |
->setFinder( | |
PhpCsFixer\Finder::create() | |
->exclude(['bin', 'vendor',' Packages']) | |
->in(__DIR__) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment