Disable superfluous match cases
This commit is contained in:
parent
ff263705b2
commit
e97aac918e
|
@ -107,7 +107,7 @@ enum MDAppointmentCancellationStatus implements MDValueEnumInterface, JsonSerial
|
|||
return match($this) {
|
||||
self::scheduled_done => "https://schema.org/EventScheduled",
|
||||
self::cancelled => "https://schema.org/EventCancelled",
|
||||
default => throw new MDpageParameterNotFromListException("Unknown JSON LD for attendance status"),
|
||||
// default => throw new MDpageParameterNotFromListException("Unknown JSON LD for attendance status"),
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ enum MDAttendanceStatus implements MDValueEnumInterface, JsonSerializable {
|
|||
return match($this) {
|
||||
self::online => "https://schema.org/OnlineEventAttendanceMode",
|
||||
self::offline => "https://schema.org/OfflineEventAttendanceMode",
|
||||
default => throw new MDpageParameterNotFromListException("Unknown JSON LD for attendance status"),
|
||||
// default => throw new MDpageParameterNotFromListException("Unknown JSON LD for attendance status"),
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user