PhpCsFixer\Fixer\LanguageConstruct\ClassKeywordRemoveFixer::replaceClassKeywordsSection PHP Method

replaceClassKeywordsSection() private method

private replaceClassKeywordsSection ( Tokens $tokens, integer $startIndex, integer $endIndex )
$tokens PhpCsFixer\Tokenizer\Tokens
$startIndex integer
$endIndex integer
    private function replaceClassKeywordsSection(Tokens $tokens, $startIndex, $endIndex)
    {
        $CTClassTokens = $tokens->findGivenKind(CT::T_CLASS_CONSTANT, $startIndex, $endIndex);
        if (!empty($CTClassTokens)) {
            $this->replaceClassKeyword($tokens, current(array_keys($CTClassTokens)));
            $this->replaceClassKeywordsSection($tokens, $startIndex, $endIndex);
        }
    }