private function isMidnightBetween(string $startTime, string $endTime): bool
    {
        return \strtotime($startTime) > \strtotime($endTime);
    }
private function isMidnightBetween(string $startTime, string $endTime): bool
    {
        return \strtotime($startTime) > \strtotime($endTime);
    }
private function isMidnightBetween ( string $ startTime , string $ endTime ) : bool { return \ strtotime ( $ startTime ) > \ strtotime ( $ endTime ) ; }
Check if startTime and endTime are before and after midnight.

@param string $startTime
@param string $endTime

@return bool
Check if startTime and endTime are before and after midnight .