<commit_before><?php

/*
 * This file is part of the PHP CS utility.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Symfony\CS\Fixer\PSR2;

use Symfony\CS\AbstractFixer;
use Symfony\CS\Tokenizer\Tokens;
use Symfony\CS\Tokenizer\Token;

/**
 * Fixer for rules defined in PSR2 ¶4.4. Method Arguments
 *
 * @author <NAME> <<EMAIL>>
 */
class MethodArgumentSpaceFixer extends AbstractFixer
{
    public function fix(\SplFileInfo $file, $content)
    {
        $tokens = Tokens::fromCode($content);

        for ($index = $tokens->count() - 1; $index >= 0; --$index) {
            $token = $tokens[$index];

            // looking for start of brace and skip array<commit_msg>minor #671 MethodArgumentSpaceFixer - fix docs about PSR ¶ (keradus)<commit_after><?php

/*
 * This file is part of the PHP CS utility.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Symfony\CS\Fixer\PSR2;

use Symfony\CS\AbstractFixer;
use Symfony\CS\Tokenizer\Tokens;
use Symfony\CS\Tokenizer\Token;

/**
 * Fixer for rules defined in PSR2 ¶4.4, ¶4.6.
 *
 * @author <NAME> <<EMAIL>>
 */
class MethodArgumentSpaceFixer extends AbstractFixer
{
    public function fix(\SplFileInfo $file, $content)
    {
        $tokens = Tokens::fromCode($content);

        for ($index = $tokens->count() - 1; $index >= 0; --$index) {
            $token = $tokens[$index];

            // looking for start of brace and skip array
{'fraction_non_alphanumeric': 0.1320049813200498, 'fraction_numerical': 0.010585305105853052, 'mean_word_length': 3.047858942065491, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, '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': '7551959', 'n_tokens_mistral': 530, 'n_tokens_neox': 512, 'n_words': 168}