From 93e01edf2bf39121307589817e42baa364dc18eb Mon Sep 17 00:00:00 2001 From: O K Date: Sat, 27 Dec 2025 12:43:38 +0200 Subject: [PATCH] fix typo --- usps_api_bridge.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/usps_api_bridge.php b/usps_api_bridge.php index 8ffef29..27b1962 100644 --- a/usps_api_bridge.php +++ b/usps_api_bridge.php @@ -374,7 +374,7 @@ class Usps_Api_Bridge extends Module /** * MAPPING LOGIC: Old Module Codes -> New API Enums */ - private function mapServiceCodeToApiClass($oldCode, $isInternational) + private function mapServiceCodeToApiClass($oldCode, $isInternational) { // 1. Define the Standard Map $map = [ @@ -405,12 +405,12 @@ class Usps_Api_Bridge extends Module switch ($apiClass) { case 'PRIORITY_MAIL': return 'PRIORITY_MAIL_INTERNATIONAL'; - + case 'PRIORITY_MAIL_EXPRESS': return 'PRIORITY_MAIL_EXPRESS_INTERNATIONAL'; - - // Ground Advantage, Media, and Library do not exist internationally. - // The closest equivalent is First-Class Package International. + + // Ground Advantage, Media, and Library do not exist internationally. + // The closest equivalent is First-Class Package International. case 'USPS_GROUND_ADVANTAGE': case 'MEDIA_MAIL': case 'LIBRARY_MAIL': @@ -421,8 +421,7 @@ class Usps_Api_Bridge extends Module return $apiClass; } - return isset($map[$oldCode]) ? $map[$oldCode] : false; - } + /** * MAPPING LOGIC: Flat Rate Boxes @@ -445,8 +444,7 @@ class Usps_Api_Bridge extends Module return false; // Not a flat rate box, uses standard rates } - - // ... (rest of the class from Step 1: OAuth logic, etc) + /** * Manages OAuth2 Token life cycle