mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-11-30 04:39:48 +01:00
32 lines
1.1 KiB
PHP
32 lines
1.1 KiB
PHP
<?php declare(strict_types=1);
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setRules([
|
|
'@PSR1' => true,
|
|
'@PSR2' => true,
|
|
'psr4' => 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'],
|
|
'is_null' => ['use_yoda_style' => true],
|
|
'list_syntax' => ['syntax' => 'short'],
|
|
'trim_array_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,
|
|
'encoding' => true,
|
|
'phpdoc_to_comment' => false,
|
|
])
|
|
->setRiskyAllowed(true)
|
|
->setUsingCache(true)
|
|
->setHideProgress(false)
|
|
->setFinder(
|
|
PhpCsFixer\Finder::create()
|
|
->in([__DIR__.'/src', __DIR__.'/tests'])
|
|
->name('*.php')
|
|
); |