Code Duplication    Length = 6-6 lines in 2 locations

includes/formatting.php 2 locations

@@ 192-197 (lines=6) @@
189
	$func_args = func_get_args();
190
191
	// Backward compatibility.
192
	if ( isset( $func_args[1] ) && ( is_bool( $func_args[1] ) || is_numeric( $func_args[1] ) ) ) {
193
		$args = array(
194
			'number_decimals' => $func_args[1],
195
			'trim_zeros'      => isset( $func_args[2] ) ? $func_args[2] : false,
196
		);
197
	}
198
199
	$args = wp_parse_args(
200
		$args,
@@ 288-293 (lines=6) @@
285
	$func_args = func_get_args();
286
287
	// Backward compatibility.
288
	if ( isset( $func_args[1] ) && ( is_bool( $func_args[1] ) || is_numeric( $func_args[1] ) ) ) {
289
		$args = array(
290
			'number_decimals' => $func_args[1],
291
			'trim_zeros'      => isset( $func_args[2] ) ? $func_args[2] : false,
292
		);
293
	}
294
295
	$args = wp_parse_args(
296
		$args,