|
| 1 | +<?php |
| 2 | +return PhpCsFixer\Config::create() |
| 3 | + ->setRiskyAllowed(true) |
| 4 | + ->setRules([ |
| 5 | + "@PSR1" => true, |
| 6 | + "@PSR2" => true, |
| 7 | + "braces" => [ |
| 8 | + "allow_single_line_closure" => true, |
| 9 | + "position_after_functions_and_oop_constructs" => "same", |
| 10 | + ], |
| 11 | + "array_syntax" => ["syntax" => "short"], |
| 12 | + "cast_spaces" => true, |
| 13 | + "combine_consecutive_unsets" => true, |
| 14 | + "no_multiline_whitespace_before_semicolons" => true, |
| 15 | + "no_unused_imports" => true, |
| 16 | + "no_useless_else" => true, |
| 17 | + "no_useless_return" => true, |
| 18 | + "no_whitespace_before_comma_in_array" => true, |
| 19 | + "no_whitespace_in_blank_line" => true, |
| 20 | + "normalize_index_brace" => true, |
| 21 | + "ordered_imports" => true, |
| 22 | + "php_unit_construct" => true, |
| 23 | + "php_unit_dedicate_assert" => true, |
| 24 | + "php_unit_fqcn_annotation" => true, |
| 25 | + "phpdoc_summary" => true, |
| 26 | + "phpdoc_types" => true, |
| 27 | + "psr4" => true, |
| 28 | + "return_type_declaration" => ["space_before" => "none"], |
| 29 | + "short_scalar_cast" => true, |
| 30 | + "single_blank_line_before_namespace" => true, |
| 31 | + ]) |
| 32 | + ->setFinder( |
| 33 | + PhpCsFixer\Finder::create() |
| 34 | + ->exclude('lib') |
| 35 | + ->exclude('utils') |
| 36 | + ->in(__DIR__) |
| 37 | + ); |
0 commit comments