From e0acda74190752412dbb7aafaa3a058ac53427b8 Mon Sep 17 00:00:00 2001 From: Mauro Cassani Date: Wed, 9 Jun 2021 16:37:26 +0200 Subject: [PATCH] method name --- src/Filters/DataRefReplace.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Filters/DataRefReplace.php b/src/Filters/DataRefReplace.php index c3cab1a..126296b 100644 --- a/src/Filters/DataRefReplace.php +++ b/src/Filters/DataRefReplace.php @@ -31,14 +31,14 @@ public function transform( $segment ) { // dataRefMap is present only in xliff 2.0 files if ( empty( $this->dataRefMap ) ) { - $segment = $this->replaceXliffPhTagsWithNoDataRefToMatecatPhTags($segment); + $segment = $this->replaceXliffPhTagsWithoutDataRefCorrespondenceToMatecatPhTags($segment); return $this->replaceXliffPcTagsToMatecatPhTags($segment); } $dataRefReplacer = new DataRefReplacer( $this->dataRefMap ); $segment = $dataRefReplacer->replace( $segment ); - $segment = $this->replaceXliffPhTagsWithNoDataRefToMatecatPhTags($segment); + $segment = $this->replaceXliffPhTagsWithoutDataRefCorrespondenceToMatecatPhTags($segment); return $this->replaceXliffPcTagsToMatecatPhTags($segment); } @@ -59,7 +59,7 @@ public function transform( $segment ) * * @return string|string[] */ - private function replaceXliffPhTagsWithNoDataRefToMatecatPhTags($segment) + private function replaceXliffPhTagsWithoutDataRefCorrespondenceToMatecatPhTags( $segment) { preg_match_all('/<(ph .*?)>/iu', $segment, $phTags);