From d204bfc9009c20f103314ad3f94a752b8b0e4cd5 Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Wed, 22 Jan 2025 12:59:52 +0600 Subject: [PATCH] minor --- app/Services/{StringMatcher.php => ContentMatcher.php} | 2 +- app/Services/Pacs/DicomStudyMapper.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename app/Services/{StringMatcher.php => ContentMatcher.php} (96%) diff --git a/app/Services/StringMatcher.php b/app/Services/ContentMatcher.php similarity index 96% rename from app/Services/StringMatcher.php rename to app/Services/ContentMatcher.php index 0db51d4..0968eee 100644 --- a/app/Services/StringMatcher.php +++ b/app/Services/ContentMatcher.php @@ -4,7 +4,7 @@ use App\Domain\Rule\MatchMode; -final class StringMatcher +final class ContentMatcher { public static function match(string $input, string $pattern, MatchMode $mode): bool { diff --git a/app/Services/Pacs/DicomStudyMapper.php b/app/Services/Pacs/DicomStudyMapper.php index b4b967b..14958cd 100644 --- a/app/Services/Pacs/DicomStudyMapper.php +++ b/app/Services/Pacs/DicomStudyMapper.php @@ -3,7 +3,7 @@ namespace App\Services\Pacs; use App\Domain\Rule\MatchMode; -use App\Services\StringMatcher; +use App\Services\ContentMatcher; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\DB; @@ -36,7 +36,7 @@ public static function map(?string $input): array $input = strtolower($input); foreach (self::$rules as $pattern) { - if (StringMatcher::match($input, $pattern->name, MatchMode::from($pattern->match_mode))) { + if (ContentMatcher::match($input, $pattern->name, MatchMode::from($pattern->match_mode))) { return [$pattern->institute_id, $pattern->facility_id]; } }