mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:39:02 +08:00
Array values no longer exist
This commit is contained in:
parent
f376dcf9d3
commit
7a62f86549
1 changed files with 0 additions and 10 deletions
|
@ -83,16 +83,6 @@ class Formatter {
|
|||
if ( stripos( $fields[ $i ], '_time' ) || 'time' === $fields[ $i ] ) {
|
||||
$totals[ $i ] = round( $value, 4 ) . 's';
|
||||
}
|
||||
if ( is_array( $value ) ) {
|
||||
$new_value = '';
|
||||
foreach( $value as $k => $j ) {
|
||||
if ( 'time' === $k ) {
|
||||
$j = round( $j, 4 ) . 's';
|
||||
}
|
||||
$new_value .= "{$j} / ";
|
||||
}
|
||||
$totals[ $i ] = rtrim( $new_value, '/ ' );
|
||||
}
|
||||
}
|
||||
$table->setFooters( $totals );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue