src/Standards/BestIt/Sniffs/Formatting/TraitUseSpacingSniff.php
private function getRealLinesBetweenUses(int &$previousUseEndPos, int $usePos): int
    {
        $tokens = $this->getFile()->getTokens();

        if ($tokens[$previousUseEndPos]['code'] === T_OPEN_CURLY_BRACKET) {
            $previousUseEndPos = $tokens[$previousUseEndPos]['bracket_closer'];
        }

        return $tokens[$usePos]['line'] - $tokens[$previousUseEndPos]['line'] - 1;
    }
private function getRealLinesBetweenUses(int &$previousUseEndPos, int $usePos): int
    {
        $tokens = $this->getFile()->getTokens();

        if ($tokens[$previousUseEndPos]['code'] === T_OPEN_CURLY_BRACKET) {
            $previousUseEndPos = $tokens[$previousUseEndPos]['bracket_closer'];
        }

        return $tokens[$usePos]['line'] - $tokens[$previousUseEndPos]['line'] - 1;
    }
private function getRealLinesBetweenUses ( int & $ previousUseEndPos , int $ usePos ) : int { $ tokens = $ this -> getFile ( ) -> getTokens ( ) ; if ( $ tokens [ $ previousUseEndPos ] [ 'code' ] === T_OPEN_CURLY_BRACKET ) { $ previousUseEndPos = $ tokens [ $ previousUseEndPos ] [ 'bracket_closer' ] ; } return $ tokens [ $ usePos ] [ 'line' ] - $ tokens [ $ previousUseEndPos ] [ 'line' ] - 1 ; }
Returns the real lines between the uses.

@param int $previousUseEndPos
@param int $usePos

@return int
Returns the real lines between the uses .