<?php

$config = EzSystems\EzPlatformCodeStyle\PhpCsFixer\EzPlatformInternalConfigFactory::build();

return $config
    ->setRules(
        $config->getRules() + [
            'concat_space' => ['spacing' => 'one'],
            'array_syntax' => false,
            'simplified_null_return' => false,
            'phpdoc_align' => false,
            'phpdoc_separation' => false,
            'phpdoc_to_comment' => false,
            'cast_spaces' => false,
            'blank_line_after_opening_tag' => false,
            'single_blank_line_before_namespace' => false,
            'phpdoc_annotation_without_dot' => false,
            'phpdoc_no_alias_tag' => false,
            'space_after_semicolon' => false,
            'yoda_style' => false,
            'no_break_comment' => false,
        ]
    )
    ->setRiskyAllowed(true)
    ->setFinder(
        PhpCsFixer\Finder::create()
            ->in(__DIR__)
            ->exclude(
                [
                    'bin',
                    'Resources',
                    'vendor',
                ]
            )
            ->files()->name('*.php')
    );
