<?php

return PhpCsFixer\Config::create()
    ->setRules([
        '@Symfony' => true,
        '@Symfony:risky' => true,
        'array_syntax' => [
            'syntax' => 'short'
        ],
        'ordered_imports' => true,
        'phpdoc_to_comment' => false,
        'no_superfluous_phpdoc_tags' => true,
        'declare_strict_types' => true,
        'void_return' => true,
        'ordered_class_elements' => true,
        'global_namespace_import' => [
            'import_classes' => true,
            'import_constants' => true,
            'import_functions' => false,
        ],
        'native_constant_invocation' => true,
        'native_function_invocation' => true,
        'php_unit_test_case_static_method_calls' => [
            'call_type' => 'this',
        ],
        'php_unit_method_casing' => true,
        'php_unit_dedicate_assert' => [
            'target' => 'newest',
        ],
    ])
    ->setRiskyAllowed(true)
    ->setFinder(
        PhpCsFixer\Finder::create()
            ->in(__DIR__.'/src')
            ->in(__DIR__.'/tests')
            ->in(__DIR__.'/examples')
    )
;
