Skip to content

Commit f5f67be

Browse files
committed
Fix code formatting
1 parent 2184ea8 commit f5f67be

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/DB_Command.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,17 +1163,16 @@ public function columns( $args, $assoc_args ) {
11631163

11641164
WP_CLI\Utils\wp_get_table_names( array( $args[0] ), array() );
11651165

1166-
// Get the database size.
11671166
$columns = $wpdb->get_results(
11681167
'SHOW COLUMNS FROM ' . $args[0]
11691168
);
11701169

1171-
// Display the rows.
1172-
$formatter_args = array(
1170+
$formatter_fields = array( 'Field', 'Type', 'Null', 'Key', 'Default', 'Extra' );
1171+
$formatter_args = array(
11731172
'format' => $format,
11741173
);
11751174

1176-
$formatter = new Formatter($formatter_args, array( 'Field', 'Type', 'Null', 'Key', 'Default', 'Extra' ) );
1175+
$formatter = new Formatter( $formatter_args, $formatter_fields );
11771176
$formatter->display_items( $columns );
11781177
}
11791178

0 commit comments

Comments
 (0)