src/Standards/BestIt/Sniffs/Formatting/TraitUseSpacingSniff.php
private function isEndOfClass(int $lastUseEndPos): bool
    {
        $file = $this->getFile();
        $tokens = $file->getTokens();

        $posAfterLastUse = TokenHelper::findNextEffective($file, $lastUseEndPos + 1);

        return $tokens[$posAfterLastUse]['code'] === T_CLOSE_CURLY_BRACKET;
    }
private function isEndOfClass(int $lastUseEndPos): bool
    {
        $file = $this->getFile();
        $tokens = $file->getTokens();

        $posAfterLastUse = TokenHelper::findNextEffective($file, $lastUseEndPos + 1);

        return $tokens[$posAfterLastUse]['code'] === T_CLOSE_CURLY_BRACKET;
    }
private function isEndOfClass ( int $ lastUseEndPos ) : bool { $ file = $ this -> getFile ( ) ; $ tokens = $ file -> getTokens ( ) ; $ posAfterLastUse = TokenHelper :: findNextEffective ( $ file , $ lastUseEndPos + 1 ) ; return $ tokens [ $ posAfterLastUse ] [ 'code' ] === T_CLOSE_CURLY_BRACKET ; }
Is the given Position the end of the class.

@param int $lastUseEndPos

@return bool
Is the given Position the end of the class .