in([ __DIR__.'/Catalog', __DIR__.'/Command', __DIR__.'/Config', __DIR__.'/Controller', __DIR__.'/DependencyInjection', __DIR__.'/Entity', __DIR__.'/Event', __DIR__.'/EventListener', __DIR__.'/Form', __DIR__.'/Integration', __DIR__.'/Migrations', __DIR__.'/Model', __DIR__.'/Security', __DIR__.'/Service', __DIR__.'/Tests', __DIR__.'/Twig', __DIR__.'/Validator', ]) ->append([ __DIR__.'/MT3SMarketingProgramBundle.php', ]); return (new PhpCsFixer\Config()) ->setRules([ '@Symfony' => true, 'binary_operator_spaces' => [ 'operators' => [ '=>' => 'align', '=' => 'align', ], ], 'phpdoc_to_comment' => false, 'ordered_imports' => true, 'array_syntax' => [ 'syntax' => 'short', ], 'no_unused_imports' => true, /** * The plugin's templates use the alternative syntax (endforeach, endif, ...) * that Mautic's Twig templates rely on, so the rule stays off like in core. */ 'no_alternative_syntax' => false, 'header_comment' => [ 'header' => '', ], 'multiline_whitespace_before_semicolons' => true, 'nullable_type_declaration_for_default_null_value' => false, // Enforces potential BC breaks. 'no_superfluous_phpdoc_tags' => [ 'allow_mixed' => true, ], ]) ->setFinder($finder);