<?php

$finder = PhpCsFixer\Finder::create()
    ->files()
    ->name('*.php')
    ->notName('*Test.php')
    ->in(__DIR__.'/src/')
;

return PhpCsFixer\Config::create()
    ->setRules([
        '@Symfony' => true,
        'phpdoc_order' => true,
        'concat_space' => ['spacing' => 'one'] ,
        'phpdoc_add_missing_param_annotation' => true,
        'array_syntax' => ['syntax' => 'short'],
        'protected_to_private' => true,
        'no_useless_return' => true,
        'phpdoc_align' => false
    ])
    ->setFinder($finder)
    ;
