Code Duplication    Length = 5-5 lines in 2 locations

Sources/Packages.php 2 locations

@@ 599-603 (lines=5) @@
596
				// Is the action already stated?
597
				$theme_action = !empty($action['theme_action']) && in_array($action['theme_action'], array('no', 'yes', 'auto')) ? $action['theme_action'] : 'auto';
598
				// If it's not auto do we think we have something we can act upon?
599
				if ($theme_action != 'auto' && !in_array($matches[1], array('languagedir', 'languages_dir', 'imagesdir', 'themedir')))
600
					$theme_action = '';
601
				// ... or if it's auto do we even want to do anything?
602
				elseif ($theme_action == 'auto' && $matches[1] != 'imagesdir')
603
					$theme_action = '';
604
605
				// So, we still want to do something?
606
				if ($theme_action != '')
@@ 634-638 (lines=5) @@
631
				$action['unparsed_destination'] = $action['unparsed_filename'];
632
633
				// If it's not auto do we think we have something we can act upon?
634
				if ($theme_action != 'auto' && !in_array($matches[1], array('languagedir', 'languages_dir', 'imagesdir', 'themedir')))
635
					$theme_action = '';
636
				// ... or if it's auto do we even want to do anything?
637
				elseif ($theme_action == 'auto' && $matches[1] != 'imagesdir')
638
					$theme_action = '';
639
640
				// So, we still want to do something?
641
				if ($theme_action != '')