Made method calls more compact

This commit is contained in:
Andrey Savchenko committed 2015-06-11 12:40:19 +03:00
1 parent a3cc36b661
commit 7dfea751f5
1 file changed
+9 -13
+9 -13
View File
@@ -286,19 +286,15 @@ class Laps {
) )
); );
$wp_admin_bar->add_node( $wp_admin_bar->add_node( array(
array( 'id' => 'laps',
'id' => 'laps', 'title' => sprintf( 'Lap: %ss', round( $total / 1000, 3 ) ),
'title' => sprintf( 'Lap: %ss', round( $total / 1000, 3 ) ), ) );
)
);
$wp_admin_bar->add_node( $wp_admin_bar->add_node( array(
array( 'id' => 'laps_output',
'id' => 'laps_output', 'parent' => 'laps',
'parent' => 'laps', 'meta' => array( 'html' => $html ),
'meta' => array( 'html' => $html ), ) );
)
);
} }
} }