Code Duplication    Length = 8-8 lines in 2 locations

Sources/ScheduledTasks.php 1 location

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

other/upgrade.php 1 location

@@ 1603-1610 (lines=8) @@
1600
	);
1601
1602
	$js_files = array();
1603
	while ($row = $smcFunc['db_fetch_assoc']($request))
1604
	{
1605
		$js_files[$row['id_file']] = array(
1606
			'filename' => $row['filename'],
1607
			'path' => $row['path'],
1608
			'parameters' => sprintf($row['parameters'], $language, urlencode($modSettings['time_format']), urlencode($forum_version)),
1609
		);
1610
	}
1611
	$smcFunc['db_free_result']($request);
1612
1613
	// We're gonna need fetch_web_data() to pull this off.