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

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