PhpCsFixer\Fixer\ClassNotation\MethodSeparationFixer::fixInterface PHP Method

fixInterface() private method

private fixInterface ( Tokens $tokens, integer $classStart, integer $classEnd )
$tokens PhpCsFixer\Tokenizer\Tokens
$classStart integer
$classEnd integer
    private function fixInterface(Tokens $tokens, $classStart, $classEnd)
    {
        for ($index = $classEnd; $index > $classStart; --$index) {
            if (!$tokens[$index]->isGivenKind(T_FUNCTION)) {
                continue;
            }
            $methodEnd = $tokens->getNextTokenOfKind($index, array(';'));
            $this->fixSpaceBelowMethod($tokens, $classEnd, $methodEnd);
            $this->fixSpaceAboveMethod($tokens, $classStart, $index);
        }
    }