Created
October 18, 2020 10:21
-
-
Save iwasherefirst2/04c0a0be8cc72f2d117529424dee4c81 to your computer and use it in GitHub Desktop.
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 | |
/* | |
* This document has been generated with | |
* https://mlocati.github.io/php-cs-fixer-configurator/#version:2.15.3|configurator | |
* you can change this configuration by importing this file. | |
*/ | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'@PSR2' => true, | |
'blank_line_after_namespace' => true, | |
'class_definition' => true, | |
'elseif' => true, | |
'encoding' => true, | |
'full_opening_tag' => true, | |
'function_declaration' => true, | |
'indentation_type' => true, | |
'lowercase_constants' => true, | |
'lowercase_keywords' => true, | |
'method_argument_space' => true, | |
'no_break_comment' => true, | |
'no_closing_tag' => true, | |
'no_spaces_after_function_name' => true, | |
'no_trailing_whitespace' => true, | |
'no_trailing_whitespace_in_comment' => true, | |
'no_extra_blank_lines' => true, | |
'align_multiline_comment' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'array_indentation' => true, | |
//'binary_operator_spaces' => true, ('=' is binary operator..) | |
'blank_line_after_opening_tag' => true, | |
'cast_spaces' => true, | |
'combine_consecutive_issets' => true, | |
'combine_consecutive_unsets' => true, | |
'concat_space' => ['spacing' => 'one'], | |
'explicit_indirect_variable' => true, | |
'fully_qualified_strict_types' => true, | |
'function_typehint_space' => true, | |
'linebreak_after_opening_tag' => true, | |
'lowercase_static_reference' => true, | |
'no_blank_lines_after_class_opening' => true, | |
'no_empty_comment' => true, | |
'no_empty_phpdoc' => true, | |
'no_empty_statement' => true, | |
'no_multiline_whitespace_around_double_arrow' => true, | |
'no_null_property_initialization' => true, | |
'no_trailing_comma_in_singleline_array' => true, | |
'no_useless_return' => true, | |
'no_useless_else' => true, | |
//'no_unused_imports' => true, | |
'ordered_imports' => true, | |
'ordered_class_elements' => true, | |
'single_quote' => true, | |
'whitespace_after_comma_in_array' => true, | |
'backtick_to_shell_exec' => true, | |
'class_attributes_separation' => true, | |
'no_superfluous_elseif' => true, | |
'ternary_operator_spaces' => true, | |
'ternary_to_null_coalescing' => true, | |
'trailing_comma_in_multiline_array' => true, | |
'trim_array_spaces' => true, | |
'space_after_semicolon' => true, | |
]) | |
->setFinder(PhpCsFixer\Finder::create() | |
->exclude('vendor') | |
->in(__DIR__) | |
) | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment