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

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