Code Duplication    Length = 8-8 lines in 2 locations

Sources/ScheduledTasks.php 1 location

@@ 1228-1235 (lines=8) @@
1225
1226
	$js_files = array();
1227
1228
	while ($row = $smcFunc['db_fetch_assoc']($request))
1229
	{
1230
		$js_files[$row['id_file']] = array(
1231
			'filename' => $row['filename'],
1232
			'path' => $row['path'],
1233
			'parameters' => sprintf($row['parameters'], $language, urlencode($modSettings['time_format']), urlencode($forum_version)),
1234
		);
1235
	}
1236
1237
	$smcFunc['db_free_result']($request);
1238

other/upgrade.php 1 location

@@ 1416-1423 (lines=8) @@
1413
	);
1414
1415
	$js_files = array();
1416
	while ($row = $smcFunc['db_fetch_assoc']($request))
1417
	{
1418
		$js_files[$row['id_file']] = array(
1419
			'filename' => $row['filename'],
1420
			'path' => $row['path'],
1421
			'parameters' => sprintf($row['parameters'], $language, urlencode($modSettings['time_format']), urlencode($forum_version)),
1422
		);
1423
	}
1424
	$smcFunc['db_free_result']($request);
1425
1426
	// We're gonna need fetch_web_data() to pull this off.