Code Duplication    Length = 5-5 lines in 3 locations

Sources/Packages.php 3 locations

@@ 1386-1390 (lines=5) @@
1383
						'style' => 'width: 40px;',
1384
					),
1385
					'data' => array(
1386
						'function' => function($package_md5) use ($type, &$context)
1387
						{
1388
							if (isset($context['available_' . $type . ''][$package_md5]))
1389
								return $context['available_' . $type . ''][$package_md5]['sort_id'];
1390
						},
1391
					),
1392
					'sort' => array(
1393
						'default' => 'sort_id',
@@ 1403-1407 (lines=5) @@
1400
						'style' => 'width: 25%;',
1401
					),
1402
					'data' => array(
1403
						'function' => function($package_md5) use ($type, &$context)
1404
						{
1405
							if (isset($context['available_' . $type . ''][$package_md5]))
1406
								return $context['available_' . $type . ''][$package_md5]['name'];
1407
						},
1408
					),
1409
					'sort' => array(
1410
						'default' => 'name',
@@ 1419-1423 (lines=5) @@
1416
						'value' => $txt['mod_version'],
1417
					),
1418
					'data' => array(
1419
						'function' => function($package_md5) use ($type, &$context)
1420
						{
1421
							if (isset($context['available_' . $type . ''][$package_md5]))
1422
								return $context['available_' . $type . ''][$package_md5]['version'];
1423
						},
1424
					),
1425
					'sort' => array(
1426
						'default' => 'version',