PhpCsFixer\Fixer\Strict\StrictParamFixer::fix PHP Method

fix() public method

public fix ( SplFileInfo $file, Tokens $tokens )
$file SplFileInfo
$tokens PhpCsFixer\Tokenizer\Tokens
    public function fix(\SplFileInfo $file, Tokens $tokens)
    {
        static $map = null;
        if (null === $map) {
            $trueToken = new Token(array(T_STRING, 'true'));
            $map = array('array_keys' => array(null, null, $trueToken), 'array_search' => array(null, null, $trueToken), 'base64_decode' => array(null, $trueToken), 'in_array' => array(null, null, $trueToken), 'mb_detect_encoding' => array(null, array(new Token(array(T_STRING, 'mb_detect_order')), new Token('('), new Token(')')), $trueToken));
        }
        for ($index = $tokens->count() - 1; 0 <= $index; --$index) {
            $token = $tokens[$index];
            if ($token->isGivenKind(T_STRING) && isset($map[$token->getContent()])) {
                $this->fixFunction($tokens, $index, $map[$token->getContent()]);
            }
        }
    }