src/Parse/UnifiedDiffParser.php
private function fileEnd(array $tokenList, int $nextLine, string $delimiterToken): bool
    {
        return $nextLine == count($tokenList) || $delimiterToken === $tokenList[$nextLine]->getType();
    }
private function fileEnd(array $tokenList, int $nextLine, string $delimiterToken): bool
    {
        return $nextLine == count($tokenList) || $delimiterToken === $tokenList[$nextLine]->getType();
    }
private function fileEnd ( array $ tokenList , int $ nextLine , string $ delimiterToken ) : bool { return $ nextLine == count ( $ tokenList ) || $ delimiterToken === $ tokenList [ $ nextLine ] -> getType ( ) ; }
Determine if we're at the end of a 'section' of tokens.

@param Token[] $tokenList
@param int $nextLine
@param string $delimiterToken

@return bool
Determine if we re at the end of a section of tokens .