Disable superfluous match cases
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -107,7 +107,7 @@ public function getJsonLd():string {
|
||||
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 @@ public function getJsonLd():string {
|
||||
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"),
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user