|
| 1 | +<?php declare(strict_types = 1); |
| 2 | + |
| 3 | +$finder = PhpCsFixer\Finder::create() |
| 4 | + ->in(__DIR__.'/src') |
| 5 | +; |
| 6 | + |
| 7 | +return PhpCsFixer\Config::create() |
| 8 | + ->setRiskyAllowed(true) |
| 9 | + ->setRules([ |
| 10 | + '@PSR1' => true, |
| 11 | + '@PSR2' => true, |
| 12 | + '@Symfony' => true, |
| 13 | + '@Symfony:risky' => true, |
| 14 | + '@PHP70Migration' => true, |
| 15 | + '@PHP70Migration:risky' => true, |
| 16 | + '@PHP71Migration' => true, |
| 17 | + 'phpdoc_summary' => false, |
| 18 | + 'yoda_style' => false, |
| 19 | + 'combine_consecutive_unsets' => true, |
| 20 | + 'blank_line_after_opening_tag' => false, |
| 21 | + 'phpdoc_to_comment' => false, |
| 22 | + 'phpdoc_no_empty_return' => false, |
| 23 | + 'strict_param' => true, |
| 24 | + 'doctrine_annotation_indentation' => true, |
| 25 | + 'mb_str_functions' => true, |
| 26 | + 'native_function_invocation' => true, |
| 27 | + 'no_short_echo_tag' => true, |
| 28 | + 'no_unreachable_default_argument_value' => true, |
| 29 | + 'no_useless_else' => true, |
| 30 | + 'no_useless_return' => true, |
| 31 | + 'ordered_class_elements' => true, |
| 32 | + 'phpdoc_add_missing_param_annotation' => true, |
| 33 | + 'phpdoc_order' => true, |
| 34 | + 'simplified_null_return' => false, |
| 35 | + 'strict_comparison' => true, |
| 36 | + 'ordered_imports' => ['sortAlgorithm' => 'alpha'], |
| 37 | + 'declare_equal_normalize' => ['space' => 'single'], |
| 38 | + 'array_syntax' => ['syntax' => 'short'], |
| 39 | + 'list_syntax' => ['syntax' => 'short'], |
| 40 | + 'doctrine_annotation_braces' => ['syntax' => 'with_braces'], |
| 41 | + 'general_phpdoc_annotation_remove' => ['annotations' => ['author', 'created', 'version', 'package', 'copyright', 'license', 'throws']], |
| 42 | + ]) |
| 43 | + ->setFinder($finder) |
| 44 | +; |
0 commit comments