src/Parse/UnifiedDiffTokenizer.php
private function isFileStart(array $diffLineList, int $currentLine): bool
    {
        return $currentLine + 1 < count($diffLineList)
            && '---' === substr($diffLineList[$currentLine], 0, 3)
            && '+++' === substr($diffLineList[$currentLine + 1], 0, 3);
    }
private function isFileStart(array $diffLineList, int $currentLine): bool
    {
        return $currentLine + 1 < count($diffLineList)
            && '---' === substr($diffLineList[$currentLine], 0, 3)
            && '+++' === substr($diffLineList[$currentLine + 1], 0, 3);
    }
private function isFileStart ( array $ diffLineList , int $ currentLine ) : bool { return $ currentLine + 1 < count ( $ diffLineList ) && '---' === substr ( $ diffLineList [ $ currentLine ] , 0 , 3 ) && '+++' === substr ( $ diffLineList [ $ currentLine + 1 ] , 0 , 3 ) ; }
Returns true if the current line is the beginning of a file section.

@param string[] $diffLineList
@param int $currentLine

@return bool
Returns true if the current line is the beginning of a file section .