src/Standards/BestIt/Sniffs/Formatting/TraitUseSpacingSniff.php
private function fixLinesBetweenUses(int $usePos, int $previousUseEndPos): void
    {
        $file = $this->getFile();

        $posBeforeIndentation = TokenHelper::findPreviousContent(
            $file,
            T_WHITESPACE,
            $file->eolChar,
            $usePos,
            $previousUseEndPos
        );

        $file->fixer->beginChangeset();
        if ($posBeforeIndentation !== null) {
            for ($i = $previousUseEndPos + 1; $i <= $posBeforeIndentation; $i++) {
                $file->fixer->replaceToken($i, '');
            }
        }
        for ($i = 0; $i <= self::LINES_BETWEEN_USES; $i++) {
            $file->fixer->addNewline($previousUseEndPos);
        }
        $file->fixer->endChangeset();
    }
private function fixLinesBetweenUses(int $usePos, int $previousUseEndPos): void
    {
        $file = $this->getFile();

        $posBeforeIndentation = TokenHelper::findPreviousContent(
            $file,
            T_WHITESPACE,
            $file->eolChar,
            $usePos,
            $previousUseEndPos
        );

        $file->fixer->beginChangeset();
        if ($posBeforeIndentation !== null) {
            for ($i = $previousUseEndPos + 1; $i <= $posBeforeIndentation; $i++) {
                $file->fixer->replaceToken($i, '');
            }
        }
        for ($i = 0; $i <= self::LINES_BETWEEN_USES; $i++) {
            $file->fixer->addNewline($previousUseEndPos);
        }
        $file->fixer->endChangeset();
    }
private function fixLinesBetweenUses ( int $ usePos , int $ previousUseEndPos ) : void { $ file = $ this -> getFile ( ) ; $ posBeforeIndentation = TokenHelper :: findPreviousContent ( $ file , T_WHITESPACE , $ file -> eolChar , $ usePos , $ previousUseEndPos ) ; $ file -> fixer -> beginChangeset ( ) ; if ( $ posBeforeIndentation !== null ) { for ( $ i = $ previousUseEndPos + 1 ; $ i <= $ posBeforeIndentation ; $ i ++ ) { $ file -> fixer -> replaceToken ( $ i , '' ) ; } } for ( $ i = 0 ; $ i <= self :: LINES_BETWEEN_USES ; $ i ++ ) { $ file -> fixer -> addNewline ( $ previousUseEndPos ) ; } $ file -> fixer -> endChangeset ( ) ; }
Fixes the lines between the uses.

@param int $usePos
@param int $previousUseEndPos

@return void
Fixes the lines between the uses .