mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-11-30 04:39:48 +01:00
47 lines
1.7 KiB
PHP
47 lines
1.7 KiB
PHP
<?php declare(strict_types=1);
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setRules([
|
|
'@PSR1' => true,
|
|
'@PSR2' => true,
|
|
'psr4' => true,
|
|
'@Symfony' => true,
|
|
'declare_strict_types' => true,
|
|
'strict_param' => true,
|
|
'strict_comparison' => true,
|
|
'align_multiline_comment' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'binary_operator_spaces' => true,
|
|
'concat_space' => ['spacing' => 'one'],
|
|
'declare_equal_normalize' => true,
|
|
'escape_implicit_backslashes' => true,
|
|
'is_null' => ['use_yoda_style' => true],
|
|
'linebreak_after_opening_tag' => true,
|
|
'list_syntax' => ['syntax' => 'short'],
|
|
'lowercase_cast' => true,
|
|
'magic_constant_casing' => true,
|
|
'method_chaining_indentation' => true,
|
|
'method_separation' => true,
|
|
'modernize_types_casting' => true,
|
|
'no_alias_functions' => true,
|
|
'trim_array_spaces' => true,
|
|
'unary_operator_spaces' => true,
|
|
'whitespace_after_comma_in_array' => true,
|
|
'yoda_style' => ['equal' => true, 'identical' => true, 'always_move_variable' => true],
|
|
'ordered_imports' => true,
|
|
'ordered_class_elements' => true,
|
|
'no_superfluous_elseif' => true,
|
|
'class_keyword_remove' => false,
|
|
'encoding' => true,
|
|
'full_opening_tag' => true,
|
|
'mb_str_functions' => false,
|
|
'phpdoc_to_comment' => false,
|
|
])
|
|
->setRiskyAllowed(true)
|
|
->setUsingCache(true)
|
|
->setHideProgress(false)
|
|
->setFinder(
|
|
PhpCsFixer\Finder::create()
|
|
->in([__DIR__.'/src', __DIR__.'/tests'])
|
|
->name('*.php')
|
|
); |