|
| 1 | +<?php |
| 2 | +/* |
| 3 | + * This document has been generated with |
| 4 | + * https://mlocati.github.io/php-cs-fixer-configurator/#version:3.48.0|configurator |
| 5 | + * you can change this configuration by importing this file. |
| 6 | + */ |
| 7 | +$config = new PhpCsFixer\Config(); |
| 8 | + |
| 9 | +return $config |
| 10 | + ->setRiskyAllowed(true) |
| 11 | + ->setRules([ |
| 12 | + '@PSR2' => true, |
| 13 | + 'align_multiline_comment' => true, |
| 14 | + 'array_indentation' => true, |
| 15 | + 'array_push' => true, |
| 16 | + 'array_syntax' => true, |
| 17 | + 'backtick_to_shell_exec' => true, |
| 18 | + 'binary_operator_spaces' => true, |
| 19 | + 'blank_line_after_namespace' => true, |
| 20 | + 'blank_line_after_opening_tag' => true, |
| 21 | + 'blank_line_before_statement' => true, |
| 22 | + 'blank_lines_before_namespace' => true, |
| 23 | + 'cast_spaces' => true, |
| 24 | + 'class_attributes_separation' => true, |
| 25 | + 'class_definition' => true, |
| 26 | + 'clean_namespace' => true, |
| 27 | + 'combine_consecutive_issets' => true, |
| 28 | + 'combine_consecutive_unsets' => true, |
| 29 | + 'combine_nested_dirname' => true, |
| 30 | + 'compact_nullable_type_declaration' => true, |
| 31 | + 'concat_space' => true, |
| 32 | + 'constant_case' => true, |
| 33 | + 'declare_equal_normalize' => true, |
| 34 | + 'dir_constant' => true, |
| 35 | + 'elseif' => true, |
| 36 | + 'encoding' => true, |
| 37 | + 'ereg_to_preg' => true, |
| 38 | + 'explicit_indirect_variable' => true, |
| 39 | + 'explicit_string_variable' => true, |
| 40 | + 'fopen_flag_order' => true, |
| 41 | + 'full_opening_tag' => true, |
| 42 | + 'function_declaration' => true, |
| 43 | + 'function_to_constant' => true, |
| 44 | + 'general_phpdoc_tag_rename' => true, |
| 45 | + 'implode_call' => true, |
| 46 | + 'include' => true, |
| 47 | + 'indentation_type' => true, |
| 48 | + 'is_null' => true, |
| 49 | + 'line_ending' => true, |
| 50 | + 'linebreak_after_opening_tag' => true, |
| 51 | + 'list_syntax' => true, |
| 52 | + 'logical_operators' => true, |
| 53 | + 'lowercase_cast' => true, |
| 54 | + 'lowercase_keywords' => true, |
| 55 | + 'lowercase_static_reference' => true, |
| 56 | + 'magic_constant_casing' => true, |
| 57 | + 'magic_method_casing' => true, |
| 58 | + 'method_argument_space' => true, |
| 59 | + 'method_chaining_indentation' => true, |
| 60 | + 'modernize_types_casting' => true, |
| 61 | + 'multiline_whitespace_before_semicolons' => true, |
| 62 | + 'native_function_casing' => true, |
| 63 | + 'native_function_invocation' => true, |
| 64 | + 'native_type_declaration_casing' => true, |
| 65 | + 'new_with_parentheses' => true, |
| 66 | + 'no_alias_functions' => true, |
| 67 | + 'no_alias_language_construct_call' => true, |
| 68 | + 'no_alternative_syntax' => true, |
| 69 | + 'no_blank_lines_after_phpdoc' => true, |
| 70 | + 'no_break_comment' => true, |
| 71 | + 'no_closing_tag' => true, |
| 72 | + 'no_empty_comment' => true, |
| 73 | + 'no_empty_phpdoc' => true, |
| 74 | + 'no_empty_statement' => true, |
| 75 | + 'no_homoglyph_names' => true, |
| 76 | + 'no_leading_import_slash' => true, |
| 77 | + 'no_leading_namespace_whitespace' => true, |
| 78 | + 'no_mixed_echo_print' => true, |
| 79 | + 'no_multiline_whitespace_around_double_arrow' => true, |
| 80 | + 'no_php4_constructor' => true, |
| 81 | + 'no_short_bool_cast' => true, |
| 82 | + 'no_spaces_after_function_name' => true, |
| 83 | + 'no_superfluous_phpdoc_tags' => true, |
| 84 | + 'no_trailing_whitespace' => true, |
| 85 | + 'no_trailing_whitespace_in_comment' => true, |
| 86 | + 'no_unneeded_braces' => true, |
| 87 | + 'no_unneeded_control_parentheses' => true, |
| 88 | + 'no_unneeded_final_method' => true, |
| 89 | + 'no_unreachable_default_argument_value' => true, |
| 90 | + 'no_unset_cast' => true, |
| 91 | + 'no_unset_on_property' => true, |
| 92 | + 'no_unused_imports' => true, |
| 93 | + 'no_useless_else' => true, |
| 94 | + 'no_useless_return' => true, |
| 95 | + 'no_useless_sprintf' => true, |
| 96 | + 'no_whitespace_before_comma_in_array' => true, |
| 97 | + 'no_whitespace_in_blank_line' => true, |
| 98 | + 'non_printable_character' => true, |
| 99 | + 'normalize_index_brace' => true, |
| 100 | + 'not_operator_with_successor_space' => true, |
| 101 | + 'nullable_type_declaration_for_default_null_value' => true, |
| 102 | + 'object_operator_without_whitespace' => true, |
| 103 | + 'ordered_class_elements' => true, |
| 104 | + 'ordered_imports' => true, |
| 105 | + 'ordered_interfaces' => true, |
| 106 | + 'ordered_traits' => true, |
| 107 | + 'phpdoc_no_useless_inheritdoc' => true, |
| 108 | + 'phpdoc_order' => true, |
| 109 | + 'phpdoc_return_self_reference' => true, |
| 110 | + 'phpdoc_scalar' => true, |
| 111 | + 'phpdoc_tag_casing' => true, |
| 112 | + 'protected_to_private' => true, |
| 113 | + 'psr_autoloading' => true, |
| 114 | + 'return_type_declaration' => true, |
| 115 | + 'semicolon_after_instruction' => true, |
| 116 | + 'set_type_to_cast' => true, |
| 117 | + 'short_scalar_cast' => true, |
| 118 | + 'simple_to_complex_string_variable' => true, |
| 119 | + 'simplified_if_return' => true, |
| 120 | + 'simplified_null_return' => true, |
| 121 | + 'single_blank_line_at_eof' => true, |
| 122 | + 'single_class_element_per_statement' => true, |
| 123 | + 'single_import_per_statement' => true, |
| 124 | + 'single_line_after_imports' => true, |
| 125 | + 'single_line_comment_style' => true, |
| 126 | + 'single_quote' => true, |
| 127 | + 'single_trait_insert_per_statement' => true, |
| 128 | + 'spaces_inside_parentheses' => false, |
| 129 | + 'standardize_not_equals' => true, |
| 130 | + 'static_lambda' => true, |
| 131 | + 'string_line_ending' => true, |
| 132 | + 'switch_case_semicolon_to_colon' => true, |
| 133 | + 'switch_case_space' => true, |
| 134 | + 'switch_continue_to_break' => true, |
| 135 | + 'ternary_operator_spaces' => true, |
| 136 | + 'ternary_to_elvis_operator' => true, |
| 137 | + 'ternary_to_null_coalescing' => true, |
| 138 | + 'trim_array_spaces' => true, |
| 139 | + 'type_declaration_spaces' => true, |
| 140 | + 'unary_operator_spaces' => true, |
| 141 | + 'visibility_required' => true, |
| 142 | + 'whitespace_after_comma_in_array' => true, |
| 143 | + 'yoda_style' => true, |
| 144 | + ]) |
| 145 | + ->setFinder(PhpCsFixer\Finder::create() |
| 146 | + ->exclude('vendor') |
| 147 | + ->in(__DIR__.'\src') |
| 148 | + ->in(__DIR__.'\test') |
| 149 | + ) |
| 150 | +; |
| 151 | + |
0 commit comments