|
| 1 | +<?php |
| 2 | + |
| 3 | +$header = <<<'EOF' |
| 4 | +This file is part of PHPUnit Good Practices. |
| 5 | +
|
| 6 | +(c) Dariusz Rumiński <dariusz.ruminski@gmail.com> |
| 7 | +
|
| 8 | +This source file is subject to the MIT license that is bundled |
| 9 | +with this source code in the file LICENSE. |
| 10 | +EOF; |
| 11 | + |
| 12 | +return PhpCsFixer\Config::create() |
| 13 | + ->setRiskyAllowed(true) |
| 14 | + ->setRules(array( |
| 15 | + '@Symfony' => true, |
| 16 | + '@Symfony:risky' => true, |
| 17 | + 'array_syntax' => array('syntax' => 'long'), |
| 18 | + 'combine_consecutive_unsets' => true, |
| 19 | + 'header_comment' => array('header' => $header), |
| 20 | + 'heredoc_to_nowdoc' => true, |
| 21 | + 'no_extra_consecutive_blank_lines' => array('break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block'), |
| 22 | + 'no_short_echo_tag' => true, |
| 23 | + 'no_unreachable_default_argument_value' => true, |
| 24 | + 'no_useless_else' => true, |
| 25 | + 'no_useless_return' => true, |
| 26 | + 'ordered_class_elements' => true, |
| 27 | + 'ordered_imports' => true, |
| 28 | + 'phpdoc_add_missing_param_annotation' => true, |
| 29 | + 'phpdoc_order' => true, |
| 30 | + 'semicolon_after_instruction' => true, |
| 31 | + 'strict_comparison' => true, |
| 32 | + 'strict_param' => true, |
| 33 | + )) |
| 34 | + ->setFinder( |
| 35 | + PhpCsFixer\Finder::create() |
| 36 | + ->in(__DIR__) |
| 37 | + ) |
| 38 | +; |
0 commit comments