<?php declare(strict_types=1);

/*
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
use PhpCsFixer\Fixer\FunctionNotation\NativeFunctionInvocationFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return static function (ECSConfig $ecsConfig): void
{
    $ecsConfig->paths([
        __DIR__ . '/src',
        __DIR__ . '/tests'
    ]);

    $ecsConfig->ruleWithConfiguration(NativeFunctionInvocationFixer::class, [
        'include' => [NativeFunctionInvocationFixer::SET_ALL],
        'scope' => 'namespaced',
    ]);

    $parameters = $ecsConfig->parameters();

    $parameters->set('cache_directory', __DIR__ . '/var/cache/cs_fixer');
    $parameters->set('cache_namespace', '{{pluginName}}');
};