Skip to content

Commit

Permalink
Removed unused constants
Browse files Browse the repository at this point in the history
  • Loading branch information
mauretto78 committed Sep 7, 2023
1 parent f9c0112 commit c1a6853
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/Utils/CatUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/MateCatSubFilteringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit c1a6853

Please sign in to comment.