Code Duplication    Length = 8-8 lines in 2 locations

Sources/ScheduledTasks.php 1 location

@@ 1215-1222 (lines=8) @@
1212
1213
	$js_files = array();
1214
1215
	while ($row = $smcFunc['db_fetch_assoc']($request))
1216
	{
1217
		$js_files[$row['id_file']] = array(
1218
			'filename' => $row['filename'],
1219
			'path' => $row['path'],
1220
			'parameters' => sprintf($row['parameters'], $language, urlencode($modSettings['time_format']), urlencode($forum_version)),
1221
		);
1222
	}
1223
1224
	$smcFunc['db_free_result']($request);
1225

other/upgrade.php 1 location

@@ 1481-1488 (lines=8) @@
1478
	);
1479
1480
	$js_files = array();
1481
	while ($row = $smcFunc['db_fetch_assoc']($request))
1482
	{
1483
		$js_files[$row['id_file']] = array(
1484
			'filename' => $row['filename'],
1485
			'path' => $row['path'],
1486
			'parameters' => sprintf($row['parameters'], $language, urlencode($modSettings['time_format']), urlencode($forum_version)),
1487
		);
1488
	}
1489
	$smcFunc['db_free_result']($request);
1490
1491
	// We're gonna need fetch_web_data() to pull this off.