Skip to content

Commit 46e34ad

Browse files
committed
Lint fix
1 parent d1e2605 commit 46e34ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/UpdatePoCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ public function __invoke( $args, $assoc_args ) {
8686
continue;
8787
}
8888

89-
$po_translations = Translations::fromPoFile( $file->getPathname() );
90-
$original_translations = clone $po_translations;
89+
$po_translations = Translations::fromPoFile( $file->getPathname() );
90+
$original_translations = clone $po_translations;
9191

9292
$po_translations->mergeWith(
9393
$pot_translations,
@@ -110,7 +110,7 @@ public function __invoke( $args, $assoc_args ) {
110110
}
111111

112112
// Build the success message.
113-
$message_parts = array();
113+
$message_parts = array();
114114
$message_parts[] = sprintf( 'Updated %d %s', $updated_count, Utils\pluralize( 'file', $updated_count ) );
115115
if ( $unchanged_count > 0 ) {
116116
$message_parts[] = sprintf( '%d %s unchanged', $unchanged_count, Utils\pluralize( 'file', $unchanged_count ) );
@@ -134,7 +134,7 @@ private function translations_differ( Translations $original, Translations $upda
134134

135135
// Compare each translation entry.
136136
foreach ( $original as $translation ) {
137-
$context = $translation->getContext();
137+
$context = $translation->getContext();
138138
$original_str = $translation->getOriginal();
139139

140140
// Find the corresponding translation in the updated set.
@@ -181,7 +181,7 @@ private function translations_differ( Translations $original, Translations $upda
181181

182182
// Check if updated has any translations not in original.
183183
foreach ( $updated as $translation ) {
184-
$context = $translation->getContext();
184+
$context = $translation->getContext();
185185
$original_str = $translation->getOriginal();
186186

187187
$original_translation = $original->find( $context, $original_str );

0 commit comments

Comments
 (0)