|
|
@ -49,7 +49,7 @@ return static function (ContainerConfigurator $containerConfigurator): void { |
|
|
|
$services->set(\PhpCsFixer\Fixer\ReturnNotation\NoUselessReturnFixer::class); |
|
|
|
$services->set(\PhpCsFixer\Fixer\ReturnNotation\NoUselessReturnFixer::class); |
|
|
|
$services->set(\PhpCsFixer\Fixer\CastNotation\ModernizeTypesCastingFixer::class); |
|
|
|
$services->set(\PhpCsFixer\Fixer\CastNotation\ModernizeTypesCastingFixer::class); |
|
|
|
$services->set(\PhpCsFixer\Fixer\Casing\ConstantCaseFixer::class); |
|
|
|
$services->set(\PhpCsFixer\Fixer\Casing\ConstantCaseFixer::class); |
|
|
|
//$services->set(\PhpCsFixer\Fixer\Phpdoc\PhpdocOrderFixer::class); |
|
|
|
|
|
|
|
$services->set(\PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer::class); |
|
|
|
$services->set(\PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer::class); |
|
|
|
$services->set(\PhpCsFixer\Fixer\Operator\ConcatSpaceFixer::class) |
|
|
|
$services->set(\PhpCsFixer\Fixer\Operator\ConcatSpaceFixer::class) |
|
|
|
->call( |
|
|
|
->call( |
|
|
@ -76,12 +76,15 @@ return static function (ContainerConfigurator $containerConfigurator): void { |
|
|
|
Option::PATHS, |
|
|
|
Option::PATHS, |
|
|
|
[ |
|
|
|
[ |
|
|
|
__DIR__.'/src', |
|
|
|
__DIR__.'/src', |
|
|
|
|
|
|
|
//__DIR__.'/public/main/admin', |
|
|
|
] |
|
|
|
] |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$parameters->set( |
|
|
|
$parameters->set( |
|
|
|
Option::SKIP, |
|
|
|
Option::SKIP, |
|
|
|
[ |
|
|
|
[ |
|
|
|
|
|
|
|
__DIR__.'/public/main/admin/db.php', |
|
|
|
|
|
|
|
|
|
|
|
__DIR__.'/src/CoreBundle/Hook/*', |
|
|
|
__DIR__.'/src/CoreBundle/Hook/*', |
|
|
|
__DIR__.'/src/CoreBundle/Component/HTMLPurifier/Filter/AllowIframes.php', |
|
|
|
__DIR__.'/src/CoreBundle/Component/HTMLPurifier/Filter/AllowIframes.php', |
|
|
|
__DIR__.'/src/CoreBundle/Traits/*', |
|
|
|
__DIR__.'/src/CoreBundle/Traits/*', |
|
|
@ -94,8 +97,11 @@ return static function (ContainerConfigurator $containerConfigurator): void { |
|
|
|
\PhpCsFixer\Fixer\DoctrineAnnotation\DoctrineAnnotationArrayAssignmentFixer::class, |
|
|
|
\PhpCsFixer\Fixer\DoctrineAnnotation\DoctrineAnnotationArrayAssignmentFixer::class, |
|
|
|
\PhpCsFixer\Fixer\Comment\SingleLineCommentStyleFixer::class, |
|
|
|
\PhpCsFixer\Fixer\Comment\SingleLineCommentStyleFixer::class, |
|
|
|
\PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer::class, |
|
|
|
\PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer::class, |
|
|
|
|
|
|
|
//\PhpCsFixer\Fixer\Phpdoc\PhpdocOrderFixer::class, |
|
|
|
|
|
|
|
PhpCsFixer\Fixer\Phpdoc\PhpdocTypesOrderFixer::class, |
|
|
|
//UnusedVariableSniff::class . '.ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach' => true, |
|
|
|
//UnusedVariableSniff::class . '.ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach' => true, |
|
|
|
//UnusedVariableSniff::class => 'ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach', |
|
|
|
//UnusedVariableSniff::class => 'ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach', |
|
|
|
] |
|
|
|
] |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|