|
| 1 | +<?php |
| 2 | +/* |
| 3 | + * This document has been generated with |
| 4 | + * https://mlocati.github.io/php-cs-fixer-configurator/#version:2.15|configurator |
| 5 | + * you can change this configuration by importing this file. |
| 6 | + */ |
| 7 | + |
| 8 | +return PhpCsFixer\Config::create() |
| 9 | + ->setRiskyAllowed(true) |
| 10 | + ->setIndent(' ') |
| 11 | + ->setRules([ |
| 12 | + '@PSR2' => true, |
| 13 | + '@PhpCsFixer' => true, |
| 14 | + '@Symfony:risky' => true, |
| 15 | + 'concat_space' => ['spacing' => 'one'], |
| 16 | + 'array_syntax' => ['syntax' => 'short'], |
| 17 | + 'array_indentation' => true, |
| 18 | + 'combine_consecutive_unsets' => true, |
| 19 | + 'method_separation' => true, |
| 20 | + 'single_quote' => true, |
| 21 | + 'declare_equal_normalize' => true, |
| 22 | + 'function_typehint_space' => true, |
| 23 | + 'hash_to_slash_comment' => true, |
| 24 | + 'include' => true, |
| 25 | + 'lowercase_cast' => true, |
| 26 | + 'no_multiline_whitespace_before_semicolons' => true, |
| 27 | + 'no_leading_import_slash' => true, |
| 28 | + 'no_multiline_whitespace_around_double_arrow' => true, |
| 29 | + 'no_spaces_around_offset' => true, |
| 30 | + 'no_unneeded_control_parentheses' => true, |
| 31 | + 'no_unused_imports' => true, |
| 32 | + 'no_whitespace_before_comma_in_array' => true, |
| 33 | + 'no_whitespace_in_blank_line' => true, |
| 34 | + 'object_operator_without_whitespace' => true, |
| 35 | + 'single_blank_line_before_namespace' => true, |
| 36 | + 'single_class_element_per_statement' => true, |
| 37 | + 'space_after_semicolon' => true, |
| 38 | + 'standardize_not_equals' => true, |
| 39 | + 'ternary_operator_spaces' => true, |
| 40 | + 'trailing_comma_in_multiline_array' => true, |
| 41 | + 'trim_array_spaces' => true, |
| 42 | + 'unary_operator_spaces' => true, |
| 43 | + 'whitespace_after_comma_in_array' => true, |
| 44 | + 'no_extra_consecutive_blank_lines' => [ |
| 45 | + 'curly_brace_block', |
| 46 | + 'extra', |
| 47 | + 'parenthesis_brace_block', |
| 48 | + 'square_brace_block', |
| 49 | + 'throw', |
| 50 | + 'use', |
| 51 | + ], |
| 52 | + 'binary_operator_spaces' => [ |
| 53 | + 'align_double_arrow' => true, |
| 54 | + 'align_equals' => true, |
| 55 | + ], |
| 56 | + 'braces' => [ |
| 57 | + 'allow_single_line_closure' => true, |
| 58 | + ], |
| 59 | + ]) |
| 60 | + ->setFinder( |
| 61 | + PhpCsFixer\Finder::create() |
| 62 | + ->exclude('vendor') |
| 63 | + ->exclude('tests') |
| 64 | + ->in(__DIR__) |
| 65 | + ); |
0 commit comments