Skip to content

Commit

Permalink
method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Cassani committed Jun 9, 2021
1 parent eea147a commit e0acda7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Filters/DataRefReplace.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);

Expand Down

0 comments on commit e0acda7

Please sign in to comment.