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

@@ 1474-1481 (lines=8) @@
1471
	);
1472
1473
	$js_files = array();
1474
	while ($row = $smcFunc['db_fetch_assoc']($request))
1475
	{
1476
		$js_files[$row['id_file']] = array(
1477
			'filename' => $row['filename'],
1478
			'path' => $row['path'],
1479
			'parameters' => sprintf($row['parameters'], $language, urlencode($modSettings['time_format']), urlencode($forum_version)),
1480
		);
1481
	}
1482
	$smcFunc['db_free_result']($request);
1483
1484
	// We're gonna need fetch_web_data() to pull this off.