Skip to content

Commit 683e5b9

Browse files
committed
Lint fixes
1 parent ef8e06f commit 683e5b9

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎src/WP_CLI/CommandWithTranslation.php‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function update( $args, $assoc_args ) {
3636
if ( $format && in_array( $format, array( 'json', 'csv' ), true ) ) {
3737
Utils\format_items( $format, array(), array() );
3838
}
39-
39+
4040
if ( ! $format || in_array( $format, array( 'table', 'summary' ), true ) ) {
4141
WP_CLI::success( 'Translations are up to date.' );
4242
}
@@ -53,12 +53,12 @@ public function update( $args, $assoc_args ) {
5353
WP_CLI::set_logger( $logger );
5454
}
5555

56-
$upgrader = 'WP_CLI\\LanguagePackUpgrader';
57-
$results = array();
58-
$results_data = array();
59-
$num_to_update = 0;
60-
$obj_type = rtrim( $this->obj_type, 's' );
61-
$slug_key = 'core' === $obj_type ? 'version' : 'slug';
56+
$upgrader = 'WP_CLI\\LanguagePackUpgrader';
57+
$results = array();
58+
$results_data = array();
59+
$num_to_update = 0;
60+
$obj_type = rtrim( $this->obj_type, 's' );
61+
$slug_key = 'core' === $obj_type ? 'version' : 'slug';
6262

6363
foreach ( $args as $slug ) {
6464
// Gets a list of all languages.
@@ -135,7 +135,7 @@ public function update( $args, $assoc_args ) {
135135

136136
// Capture data for formatted output (skip for summary format).
137137
if ( $format && 'summary' !== $format ) {
138-
$slug_value = 'version' === $slug_key ? $update->Version : $update->slug;
138+
$slug_value = 'version' === $slug_key ? $update->Version : $update->slug;
139139
$results_data[] = array(
140140
$slug_key => $slug_value,
141141
'language' => $update->language,

0 commit comments

Comments
 (0)