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

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