From c1a6853fbf3617da3420584c7944b219b80d79fb Mon Sep 17 00:00:00 2001 From: Mauro Cassani Date: Thu, 7 Sep 2023 14:46:58 +0200 Subject: [PATCH] Removed unused constants --- src/Utils/CatUtils.php | 3 --- tests/MateCatSubFilteringTest.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Utils/CatUtils.php b/src/Utils/CatUtils.php index 7c3db50..bd5c6bc 100644 --- a/src/Utils/CatUtils.php +++ b/src/Utils/CatUtils.php @@ -3,9 +3,6 @@ namespace Matecat\SubFiltering\Utils; class CatUtils { - const lfPlaceholder = '##$_0A$##'; - const crPlaceholder = '##$_0D$##'; - const nbspPlaceholder = '##$_A0$##'; /** * Get the char code from a multi byte char diff --git a/tests/MateCatSubFilteringTest.php b/tests/MateCatSubFilteringTest.php index 87de3ec..cfa265f 100644 --- a/tests/MateCatSubFilteringTest.php +++ b/tests/MateCatSubFilteringTest.php @@ -226,7 +226,7 @@ public function test_3_HandlingNBSP() { $filter = $this->getFilterInstance(); $segment = $expectedL1 = '5 tips for creating a great   guide'; - $segment_to_UI = $string_from_UI = '5 tips for creating a great ' . CatUtils::nbspPlaceholder . ' guide'; + $segment_to_UI = $string_from_UI = '5 tips for creating a great ' . ConstantEnum::nbspPlaceholder . ' guide'; $segmentL1 = $filter->fromLayer0ToLayer1( $segment ); $segmentL2 = $filter->fromLayer0ToLayer2( $segment );