mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
29 lines
763 B
PHP
29 lines
763 B
PHP
<?php
|
|
|
|
/**
|
|
* Based on the .php_cs.dist of the symfony project
|
|
* https://github.com/symfony/symfony/blob/4.4/.php_cs.dist.
|
|
*/
|
|
if (!file_exists(__DIR__.'/src')) {
|
|
exit(0);
|
|
}
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setRules([
|
|
'@Symfony' => true,
|
|
'@Symfony:risky' => true,
|
|
'@PHPUnit75Migration:risky' => true,
|
|
'php_unit_dedicate_assert' => ['target' => '5.6'],
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'fopen_flags' => false,
|
|
'protected_to_private' => false,
|
|
'combine_nested_dirname' => true,
|
|
])
|
|
->setRiskyAllowed(true)
|
|
->setFinder(
|
|
PhpCsFixer\Finder::create()
|
|
->in(__DIR__.'/src')
|
|
->in(__DIR__.'/tests')
|
|
->append([__FILE__])
|
|
)
|
|
;
|