fixed CS
This commit is contained in:
parent
036726cf62
commit
4fd0cf3927
|
@ -48,9 +48,7 @@ class XliffFileDumper extends FileDumper
|
|||
$s->appendChild($dom->createTextNode($source));
|
||||
|
||||
// Does the target contain characters requiring a CDATA section?
|
||||
$text = (1 === preg_match('/[&<>]/', $target))
|
||||
? $dom->createCDATASection($target)
|
||||
: $dom->createTextNode($target);
|
||||
$text = 1 === preg_match('/[&<>]/', $target) ? $dom->createCDATASection($target) : $dom->createTextNode($target);
|
||||
|
||||
$t = $translation->appendChild($dom->createElement('target'));
|
||||
$t->appendChild($text);
|
||||
|
|
Reference in New Issue