Files
archived-x-prober/.php_cs53
2019-08-30 21:59:55 +08:00

74 lines
3.6 KiB
Plaintext

<?php
$config = PhpCsFixer\Config::create()
->setIndent(' ')
->setLineEnding("\n")
->setCacheFile(__DIR__ . '/.tmp/.php_cs53.cache')
->setRiskyAllowed(true)
->setRules([
'@PHP70Migration' => false,
'@PHP71Migration' => false,
'@PSR2' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'cast_spaces' => true,
'declare_equal_normalize' => ['space' => 'single'],
'blank_line_after_namespace' => true,
'array_syntax' => ['syntax' => 'long'],
'binary_operator_spaces' => [
'default' => 'align_single_space_minimal',
],
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'combine_nested_dirname' => true,
'comment_to_phpdoc' => true,
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
'fully_qualified_strict_types' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => ['syntax' => 'long'],
'method_argument_space' => ['ensure_fully_multiline' => true],
'native_constant_invocation' => true,
'native_function_invocation' => true,
'no_alternative_syntax' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_null_property_initialization' => true,
'no_short_echo_tag' => true,
'no_superfluous_elseif' => true,
'no_unneeded_control_parentheses' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'not_operator_with_space' => true,
'not_operator_with_successor_space' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_ordered_covers' => true,
'php_unit_set_up_tear_down_visibility' => true,
'php_unit_strict' => true,
'php_unit_test_class_requires_covers' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'phpdoc_to_comment' => false,
'phpdoc_types_order' => true,
'pow_to_exponentiation' => false,
'random_api_migration' => true,
'single_line_comment_style' => true,
'strict_comparison' => false,
'strict_param' => false,
'string_line_ending' => true,
'ternary_operator_spaces' => true,
'ternary_to_null_coalescing' => false,
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
'yoda_style' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
);
return $config;