|
| 1 | +<?php |
| 2 | +/* |
| 3 | + * This document has been generated with |
| 4 | + * https://mlocati.github.io/php-cs-fixer-configurator/#version:3.8.0|configurator |
| 5 | + * you can change this configuration by importing this file. |
| 6 | + */ |
| 7 | +$config = new PhpCsFixer\Config(); |
| 8 | +return $config |
| 9 | + ->setFinder(PhpCsFixer\Finder::create() |
| 10 | + ->ignoreVCSIgnored(true) |
| 11 | + ->in(__DIR__) |
| 12 | + ) |
| 13 | + ->setRiskyAllowed(true) |
| 14 | + ->setIndent("\t") |
| 15 | + ->setRules([ |
| 16 | + 'align_multiline_comment' => true, |
| 17 | + 'array_indentation' => true, |
| 18 | + 'array_push' => true, |
| 19 | + 'array_syntax' => true, |
| 20 | + 'assign_null_coalescing_to_coalesce_equal' => true, |
| 21 | + 'binary_operator_spaces' => true, |
| 22 | + 'blank_line_after_namespace' => true, |
| 23 | + 'blank_line_before_statement' => true, |
| 24 | + 'braces' => ['allow_single_line_closure' => true], |
| 25 | + 'cast_spaces' => true, |
| 26 | + 'class_definition' => true, |
| 27 | + 'class_reference_name_casing' => true, |
| 28 | + 'clean_namespace' => true, |
| 29 | + 'combine_consecutive_issets' => true, |
| 30 | + 'combine_consecutive_unsets' => true, |
| 31 | + 'combine_nested_dirname' => true, |
| 32 | + 'compact_nullable_typehint' => true, |
| 33 | + 'concat_space' => ['spacing' => 'one'], |
| 34 | + 'constant_case' => true, |
| 35 | + 'control_structure_continuation_position' => true, |
| 36 | + 'declare_equal_normalize' => true, |
| 37 | + 'declare_parentheses' => true, |
| 38 | + 'declare_strict_types' => true, |
| 39 | + 'dir_constant' => true, |
| 40 | + 'elseif' => true, |
| 41 | + 'encoding' => true, |
| 42 | + 'full_opening_tag' => true, |
| 43 | + 'fully_qualified_strict_types' => true, |
| 44 | + 'function_declaration' => ['trailing_comma_single_line' => true], |
| 45 | + 'function_to_constant' => true, |
| 46 | + 'function_typehint_space' => true, |
| 47 | + 'get_class_to_class_keyword' => true, |
| 48 | + 'global_namespace_import' => true, |
| 49 | + 'indentation_type' => true, |
| 50 | + 'integer_literal_case' => true, |
| 51 | + 'is_null' => true, |
| 52 | + 'lambda_not_used_import' => true, |
| 53 | + 'line_ending' => true, |
| 54 | + 'linebreak_after_opening_tag' => true, |
| 55 | + 'list_syntax' => true, |
| 56 | + 'logical_operators' => true, |
| 57 | + 'lowercase_cast' => true, |
| 58 | + 'lowercase_keywords' => true, |
| 59 | + 'lowercase_static_reference' => true, |
| 60 | + 'magic_constant_casing' => true, |
| 61 | + 'magic_method_casing' => true, |
| 62 | + 'method_argument_space' => true, |
| 63 | + 'method_chaining_indentation' => true, |
| 64 | + 'modernize_strpos' => true, |
| 65 | + 'modernize_types_casting' => true, |
| 66 | + 'multiline_comment_opening_closing' => true, |
| 67 | + 'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'], |
| 68 | + 'native_function_casing' => true, |
| 69 | + 'native_function_type_declaration_casing' => true, |
| 70 | + 'new_with_braces' => ['anonymous_class' => false], |
| 71 | + 'no_alias_language_construct_call' => true, |
| 72 | + 'no_blank_lines_after_class_opening' => true, |
| 73 | + 'no_blank_lines_after_phpdoc' => true, |
| 74 | + 'no_closing_tag' => true, |
| 75 | + 'no_empty_phpdoc' => true, |
| 76 | + 'no_empty_statement' => true, |
| 77 | + 'no_extra_blank_lines' => ['tokens' => ['break', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'return', 'square_brace_block', 'switch', 'throw', 'use', 'use_trait']], |
| 78 | + 'no_leading_import_slash' => true, |
| 79 | + 'no_leading_namespace_whitespace' => true, |
| 80 | + 'no_multiline_whitespace_around_double_arrow' => true, |
| 81 | + 'no_short_bool_cast' => true, |
| 82 | + 'no_singleline_whitespace_before_semicolons' => true, |
| 83 | + 'no_space_around_double_colon' => true, |
| 84 | + 'no_spaces_after_function_name' => true, |
| 85 | + 'no_spaces_around_offset' => true, |
| 86 | + 'no_spaces_inside_parenthesis' => true, |
| 87 | + 'no_superfluous_elseif' => true, |
| 88 | + 'no_trailing_comma_in_singleline_array' => true, |
| 89 | + 'no_trailing_comma_in_singleline_function_call' => true, |
| 90 | + 'no_trailing_whitespace' => true, |
| 91 | + 'no_trailing_whitespace_in_comment' => true, |
| 92 | + 'no_unneeded_control_parentheses' => ['statements' => ['break', 'clone', 'continue', 'echo_print', 'return', 'switch_case', 'yield', 'yield_from']], |
| 93 | + 'no_unneeded_import_alias' => true, |
| 94 | + 'no_unset_cast' => true, |
| 95 | + 'no_unused_imports' => true, |
| 96 | + 'no_useless_else' => true, |
| 97 | + 'no_useless_return' => true, |
| 98 | + 'no_useless_sprintf' => true, |
| 99 | + 'no_whitespace_before_comma_in_array' => ['after_heredoc' => true], |
| 100 | + 'no_whitespace_in_blank_line' => true, |
| 101 | + 'non_printable_character' => true, |
| 102 | + 'normalize_index_brace' => true, |
| 103 | + 'nullable_type_declaration_for_default_null_value' => true, |
| 104 | + 'object_operator_without_whitespace' => true, |
| 105 | + 'octal_notation' => true, |
| 106 | + 'operator_linebreak' => ['only_booleans' => true, 'position' => 'end'], |
| 107 | + 'php_unit_construct' => true, |
| 108 | + 'php_unit_dedicate_assert' => true, |
| 109 | + 'php_unit_dedicate_assert_internal_type' => true, |
| 110 | + 'php_unit_expectation' => true, |
| 111 | + 'php_unit_internal_class' => true, |
| 112 | + 'php_unit_method_casing' => true, |
| 113 | + 'php_unit_test_case_static_method_calls' => true, |
| 114 | + 'phpdoc_add_missing_param_annotation' => ['only_untyped' => false], |
| 115 | + 'phpdoc_align' => ['align' => 'left', 'tags' => ['method', 'param', 'property', 'property-read', 'property-write', 'return', 'throws', 'type', 'var']], |
| 116 | + 'phpdoc_indent' => true, |
| 117 | + 'phpdoc_line_span' => true, |
| 118 | + 'phpdoc_no_alias_tag' => true, |
| 119 | + 'phpdoc_no_useless_inheritdoc' => true, |
| 120 | + 'phpdoc_scalar' => true, |
| 121 | + 'phpdoc_separation' => true, |
| 122 | + 'phpdoc_single_line_var_spacing' => true, |
| 123 | + 'phpdoc_trim' => true, |
| 124 | + 'return_assignment' => true, |
| 125 | + 'return_type_declaration' => true, |
| 126 | + 'self_static_accessor' => true, |
| 127 | + 'semicolon_after_instruction' => true, |
| 128 | + 'short_scalar_cast' => true, |
| 129 | + 'simple_to_complex_string_variable' => true, |
| 130 | + 'simplified_if_return' => true, |
| 131 | + 'single_blank_line_at_eof' => true, |
| 132 | + 'single_blank_line_before_namespace' => true, |
| 133 | + 'single_class_element_per_statement' => true, |
| 134 | + 'single_import_per_statement' => true, |
| 135 | + 'single_line_after_imports' => true, |
| 136 | + 'single_line_comment_spacing' => true, |
| 137 | + 'single_quote' => true, |
| 138 | + 'single_space_after_construct' => true, |
| 139 | + 'single_trait_insert_per_statement' => true, |
| 140 | + 'space_after_semicolon' => ['remove_in_empty_for_expressions' => true], |
| 141 | + 'standardize_increment' => true, |
| 142 | + 'standardize_not_equals' => true, |
| 143 | + 'static_lambda' => true, |
| 144 | + 'strict_param' => true, |
| 145 | + 'string_length_to_empty' => true, |
| 146 | + 'switch_case_semicolon_to_colon' => true, |
| 147 | + 'switch_case_space' => true, |
| 148 | + 'switch_continue_to_break' => true, |
| 149 | + 'ternary_operator_spaces' => true, |
| 150 | + 'ternary_to_elvis_operator' => true, |
| 151 | + 'ternary_to_null_coalescing' => true, |
| 152 | + 'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['arguments', 'arrays', 'parameters']], |
| 153 | + 'trim_array_spaces' => true, |
| 154 | + 'types_spaces' => ['space' => 'none'], |
| 155 | + 'unary_operator_spaces' => true, |
| 156 | + 'use_arrow_functions' => true, |
| 157 | + 'visibility_required' => true, |
| 158 | + 'void_return' => true, |
| 159 | + 'yoda_style' => ['always_move_variable' => false, 'equal' => false, 'identical' => false, 'less_and_greater' => false], |
| 160 | + ]) |
| 161 | +; |
0 commit comments