Skip to content

Commit afd1ffb

Browse files
swissspidyCopilot
andauthored
Update src/UpdatePoCommand.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 280cb62 commit afd1ffb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/UpdatePoCommand.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,13 @@ private function translations_differ( Translations $original, Translations $upda
166166
$original_refs = $translation->getReferences();
167167
$updated_refs = $updated_translation->getReferences();
168168

169-
sort( $original_refs );
170-
sort( $updated_refs );
169+
$original_refs_sorted = $original_refs;
170+
$updated_refs_sorted = $updated_refs;
171171

172-
if ( $original_refs !== $updated_refs ) {
172+
sort( $original_refs_sorted );
173+
sort( $updated_refs_sorted );
174+
175+
if ( $original_refs_sorted !== $updated_refs_sorted ) {
173176
return true;
174177
}
175178

0 commit comments

Comments
 (0)