123456789101112131415161718192021222324252627282930313233 |
- <?php
- $header = <<<'EOF'
- This file is part of PHP CS Fixer.
- (c) Fabien Potencier <fabien@symfony.com>
- Dariusz Rumiński <dariusz.ruminski@gmail.com>
- This source file is subject to the MIT license that is bundled
- with this source code in the file LICENSE.
- EOF;
- return PhpCsFixer\Config::create()
- ->setRiskyAllowed(true)
- ->setRules(array(
- '@Symfony' => true,
- 'combine_consecutive_unsets' => true,
- 'header_comment' => array('header' => $header),
- 'long_array_syntax' => true,
- 'no_useless_return' => true,
- 'ordered_imports' => true,
- 'php_unit_construct' => true,
- 'php_unit_dedicate_assert' => true,
- 'php_unit_strict' => true,
- 'strict_comparison' => true,
- 'strict_param' => true,
- ))
- ->finder(
- PhpCsFixer\Finder::create()
- ->exclude('tests/Fixtures')
- ->in(__DIR__)
- )
- ;
|