<commit_before><?php declare(strict_types=1);
$header = <<<'EOF'
This file is part of PHPUnit.

(c) <NAME> <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;

$finder = PhpCsFixer\Finder::create()
    ->files()
    ->in(__DIR__ . '/src')
    ->in(__DIR__ . '/tests/basic')
    ->in(__DIR__ . '/tests/end-to-end')
    ->in(__DIR__ . '/tests/fail')
    ->in(__DIR__ . '/tests/unit')
    ->in(__DIR__ . '/tests/_files')
    ->notName('*.phpt')
    ->notName('ClassWithAllPossibleReturnTypes.php')
    ->notName('ClassWithUnionReturnTypes.php')
    ->notName('ClassWithStaticReturnTypes.php')
    ->notName('ValueObjectWithEqualsMethodWithUnionReturnType.php')
    ->notName('ValueObjectWithEqualsMethodThatHasUnionParameterType.php');

$config = new PhpCsFixer\Config;
$config->setFinder($finder)
    ->setRiskyAllowed(true)
    ->setRules([
        'align_multiline_comment' => true,
        'array_indentation' => true,
        'array_push' => true,
        'array_syntax' => ['syntax' => 'short'],
        'backtick_to_shell_exec' => true,
        'binary_operator_spaces' => [
            'operators' => [
                '=' => 'align_single_space_minimal',
                '=>' => 'align_single_space_minimal',
                // Workaround for https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5495
                '|' => null,
            ],
        ],
        'blank_line_after_namespace' => true,
        'blank_line_before_statement' => [
            'statements' => [
                'break',
                'continue',
                'declare',<commit_msg>Exclude file that uses PHP 8.1 syntax<commit_after><?php declare(strict_types=1);
$header = <<<'EOF'
This file is part of PHPUnit.

(c) <NAME> <<EMAIL>@phpunit.de>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;

$finder = PhpCsFixer\Finder::create()
    ->files()
    ->in(__DIR__ . '/src')
    ->in(__DIR__ . '/tests/basic')
    ->in(__DIR__ . '/tests/end-to-end')
    ->in(__DIR__ . '/tests/fail')
    ->in(__DIR__ . '/tests/unit')
    ->in(__DIR__ . '/tests/_files')
    ->notName('*.phpt')
    ->notName('ClassWithAllPossibleReturnTypes.php')
    ->notName('ClassWithUnionReturnTypes.php')
    ->notName('ClassWithStaticReturnTypes.php')
    ->notName('ValueObjectWithEqualsMethodWithUnionReturnType.php')
    ->notName('ValueObjectWithEqualsMethodThatHasUnionParameterType.php')
    ->notName('InterfaceWithMethodReturningIntersection.php');

$config = new PhpCsFixer\Config;
$config->setFinder($finder)
    ->setRiskyAllowed(true)
    ->setRules([
        'align_multiline_comment' => true,
        'array_indentation' => true,
        'array_push' => true,
        'array_syntax' => ['syntax' => 'short'],
        'backtick_to_shell_exec' => true,
        'binary_operator_spaces' => [
            'operators' => [
                '=' => 'align_single_space_minimal',
                '=>' => 'align_single_space_minimal',
                // Workaround for https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5495
                '|' => null,
            ],
        ],
        'blank_line_after_namespace' => true,
        'blank_line_before_statement' => [
            'statements' => [
                'break',
                'continue',
                'declare',
{'fraction_non_alphanumeric': 0.1566441771780581, 'fraction_numerical': 0.0035200938691698444, 'mean_word_length': 2.6587982832618025, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 72, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1268115', 'n_tokens_mistral': 1086, 'n_tokens_neox': 1055, 'n_words': 178}