Code Duplication    Length = 2-2 lines in 4 locations

Sources/Subs-Db-postgresql.php 1 location

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

Sources/Subs-Db-mysql.php 1 location

@@ 439-440 (lines=2) @@
436
		$ret = smf_db_error($db_string, $connection);
437
438
	// Debugging.
439
	if (isset($db_show_debug) && $db_show_debug === true)
440
		$db_cache[$db_count]['t'] = array_sum(explode(' ', microtime())) - array_sum(explode(' ', $st));
441
442
	return $ret;
443
}

Sources/Subs-Db-mysqli.php 1 location

@@ 497-498 (lines=2) @@
494
		$ret = smf_db_error($db_string, $connection);
495
496
	// Debugging.
497
	if (isset($db_show_debug) && $db_show_debug === true)
498
		$db_cache[$db_count]['t'] = array_sum(explode(' ', microtime())) - array_sum(explode(' ', $st));
499
500
	return $ret;
501
}

Sources/Load.php 1 location

@@ 3328-3329 (lines=2) @@
3325
	if (function_exists('call_integration_hook'))
3326
		call_integration_hook('cache_put_data', array(&$key, &$value, &$ttl));
3327
3328
	if (isset($db_show_debug) && $db_show_debug === true)
3329
		$cache_hits[$cache_count]['t'] = array_sum(explode(' ', microtime())) - array_sum(explode(' ', $st));
3330
3331
	// Invalidate the opcode cache
3332
	if (function_exists('opcache_invalidate'))