42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
<?php
|
|
|
|
$header = <<<EOF
|
|
This file is part of the HWIOAuthBundle package.
|
|
|
|
(c) Hardware Info <opensource@hardware.info>
|
|
|
|
For the full copyright and license information, please view the LICENSE
|
|
file that was distributed with this source code.
|
|
EOF;
|
|
|
|
return (new PhpCsFixer\Config())
|
|
->setRules(array(
|
|
'@Symfony' => true,
|
|
'@Symfony:risky' => true,
|
|
'@PHP71Migration' => true,
|
|
'@PHPUnit60Migration:risky' => true,
|
|
'combine_consecutive_issets' => true,
|
|
'combine_consecutive_unsets' => true,
|
|
'heredoc_to_nowdoc' => false,
|
|
'header_comment' => ['header' => $header],
|
|
'no_unreachable_default_argument_value' => false,
|
|
'ordered_class_elements' => true,
|
|
'ordered_imports' => true,
|
|
'php_unit_method_casing' => ['case' => 'camel_case'],
|
|
'php_unit_set_up_tear_down_visibility' => true,
|
|
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'],
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'no_superfluous_phpdoc_tags' => [
|
|
'allow_mixed' => true,
|
|
'allow_unused_params' => false,
|
|
],
|
|
'phpdoc_types_order' => false,
|
|
))
|
|
->setRiskyAllowed(true)
|
|
->setFinder(
|
|
PhpCsFixer\Finder::create()
|
|
->in(__DIR__.'/src')
|
|
->in(__DIR__.'/tests')
|
|
)
|
|
;
|