From 0132afbeff5a34a114b4e26cc6bf3aa140a8b384 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sun, 26 Nov 2023 00:55:20 +0100 Subject: [PATCH] Remove name sanitization constants in MDConcActor, MDConcPlace --- src/MDConcActor.php | 11 ----------- src/MDConcPlace.php | 12 ------------ 2 files changed, 23 deletions(-) diff --git a/src/MDConcActor.php b/src/MDConcActor.php index 5049ff5..0e2115a 100644 --- a/src/MDConcActor.php +++ b/src/MDConcActor.php @@ -11,17 +11,6 @@ declare(strict_types = 1); */ final class MDConcActor implements MDImporterConcordanceListInterface { - /** - * Substrings of an actor name listed as a key in this array will be replaced - * by the corresponding value. - */ - const NAME_SANITIZATIONS = [ - "mythologische Figur" => "Mythologie", - "Mythologische Figur" => "Mythologie", - "Mythologische Gestalt" => "Mythologie", - "()" => "", - ]; - private const ACTOR_ROLES_TO_EVENT_TYPE = [ // 1: Created diff --git a/src/MDConcPlace.php b/src/MDConcPlace.php index bc23665..a4b29be 100644 --- a/src/MDConcPlace.php +++ b/src/MDConcPlace.php @@ -11,18 +11,6 @@ declare(strict_types = 1); */ final class MDConcPlace implements MDImporterConcordanceListInterface { - /** - * Substrings of an place name listed as a key in this array will be replaced - * by the corresponding value. - */ - const NAME_SANITIZATIONS = [ - " - " => "-", - "unbekannt" => "", - "Unbekannt" => "", - "unknown" => "", - "Unknown" => "", - ]; - private const PLACE_ROLES_TO_EVENT_TYPE = [ // 22: Related place