Code Duplication    Length = 8-8 lines in 2 locations

Sources/ScheduledTasks.php 1 location

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

other/upgrade.php 1 location

@@ 2209-2216 (lines=8) @@
2206
	);
2207
2208
	$js_files = array();
2209
	while ($row = $smcFunc['db_fetch_assoc']($request))
2210
	{
2211
		$js_files[$row['id_file']] = array(
2212
			'filename' => $row['filename'],
2213
			'path' => $row['path'],
2214
			'parameters' => sprintf($row['parameters'], $language, urlencode($modSettings['time_format']), urlencode($forum_version)),
2215
		);
2216
	}
2217
	$smcFunc['db_free_result']($request);
2218
2219
	// We're gonna need fetch_web_data() to pull this off.