<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(
[
'@Symfony' => true,
'@Symfony:risky' => true,
'ordered_imports' => true,
'ordered_class_elements' => true,
'no_alternative_syntax' => false,
'echo_tag_syntax' => [
'format' => 'short',
],
'array_syntax' => ['syntax' => 'short'],
'phpdoc_order' => true,
'phpdoc_no_empty_return' => false,
'phpdoc_add_missing_param_annotation' => true,
'combine_nested_dirname' => false,
'pow_to_exponentiation' => false,
'strict_comparison' => true,
'strict_param' => true,
'php_unit_strict' => true,
'header_comment' => [
'header' => <<< 'EOD'
eduVPN - End-user friendly VPN.
Copyright: 2016-2019, The Commons Conservancy eduVPN Programme
SPDX-License-Identifier: AGPL-3.0+
EOD
],
]
)
->setFinder(PhpCsFixer\Finder::create()->in(__DIR__));