src/Standards/BestIt/Sniffs/Formatting/TraitUseSpacingSniff.php
private function fixLineAfterLastUse(
        int $lastUseEndPos,
        int $whitespaceEnd,
        int $requiredLinesAfter
    ): void {
        $file = $this->getFile();

        $file->fixer->beginChangeset();

        for ($i = $lastUseEndPos + 1; $i <= $whitespaceEnd; $i++) {
            $file->fixer->replaceToken($i, '');
        }

        for ($i = 0; $i <= $requiredLinesAfter; $i++) {
            $file->fixer->addNewline($lastUseEndPos);
        }

        $file->fixer->endChangeset();
    }
private function fixLineAfterLastUse(
        int $lastUseEndPos,
        int $whitespaceEnd,
        int $requiredLinesAfter
    ): void {
        $file = $this->getFile();

        $file->fixer->beginChangeset();

        for ($i = $lastUseEndPos + 1; $i <= $whitespaceEnd; $i++) {
            $file->fixer->replaceToken($i, '');
        }

        for ($i = 0; $i <= $requiredLinesAfter; $i++) {
            $file->fixer->addNewline($lastUseEndPos);
        }

        $file->fixer->endChangeset();
    }
private function fixLineAfterLastUse ( int $ lastUseEndPos , int $ whitespaceEnd , int $ requiredLinesAfter ) : void { $ file = $ this -> getFile ( ) ; $ file -> fixer -> beginChangeset ( ) ; for ( $ i = $ lastUseEndPos + 1 ; $ i <= $ whitespaceEnd ; $ i ++ ) { $ file -> fixer -> replaceToken ( $ i , '' ) ; } for ( $ i = 0 ; $ i <= $ requiredLinesAfter ; $ i ++ ) { $ file -> fixer -> addNewline ( $ lastUseEndPos ) ; } $ file -> fixer -> endChangeset ( ) ; }
Fixes the lines which are allowed after the last use.

@param int $lastUseEndPos
@param int $whitespaceEnd
@param int $requiredLinesAfter

@return void
Fixes the lines which are allowed after the last use .