|
@@ -187,8 +187,8 @@ |
|
|
block discarded – undo |
|
187
|
187
|
$transUnits = array(); |
|
188
|
188
|
foreach ($xml->xpath('//x:file/x:body/x:trans-unit') as $translation) { |
|
189
|
189
|
/** @var SimpleXMLElement $translation */ |
|
190
|
|
- $source = str_replace('&', '&', (string)$translation->source); |
|
191
|
|
- $target = str_replace('&', '&', (string)$translation->target); |
|
|
190
|
+ $source = str_replace('&', '&', (string) $translation->source); |
|
|
191
|
+ $target = str_replace('&', '&', (string) $translation->target); |
|
192
|
192
|
|
|
193
|
193
|
if (array_key_exists($source, $transUnits)) { |
|
194
|
194
|
throw new DuplicateKeyException($source, $file->getFilename()); |
Please login to merge, or discard this patch.