Code Duplication    Length = 2-2 lines in 4 locations

Sources/Load.php 1 location

@@ 3347-3348 (lines=2) @@
3344
	if (function_exists('call_integration_hook'))
3345
		call_integration_hook('cache_put_data', array(&$key, &$value, &$ttl));
3346
3347
	if (isset($db_show_debug) && $db_show_debug === true)
3348
		$cache_hits[$cache_count]['t'] = array_sum(explode(' ', microtime())) - array_sum(explode(' ', $st));
3349
}
3350
3351
/**

Sources/Subs-Db-mysql.php 1 location

@@ 445-446 (lines=2) @@
442
		$ret = smf_db_error($db_string, $connection);
443
444
	// Debugging.
445
	if (isset($db_show_debug) && $db_show_debug === true)
446
		$db_cache[$db_count]['t'] = array_sum(explode(' ', microtime())) - array_sum(explode(' ', $st));
447
448
	return $ret;
449
}

Sources/Subs-Db-mysqli.php 1 location

@@ 503-504 (lines=2) @@
500
		$ret = smf_db_error($db_string, $connection);
501
502
	// Debugging.
503
	if (isset($db_show_debug) && $db_show_debug === true)
504
		$db_cache[$db_count]['t'] = array_sum(explode(' ', microtime())) - array_sum(explode(' ', $st));
505
506
	return $ret;
507
}

Sources/Subs-Db-postgresql.php 1 location

@@ 458-459 (lines=2) @@
455
		$db_last_result = smf_db_error($db_string, $connection);
456
457
	// Debugging.
458
	if (isset($db_show_debug) && $db_show_debug === true)
459
		$db_cache[$db_count]['t'] = array_sum(explode(' ', microtime())) - array_sum(explode(' ', $st));
460
461
	return $db_last_result;
462
}