Code Duplication    Length = 4-6 lines in 2 locations

lib/Cake/View/Helper/FormHelper.php 2 locations

@@ 732-737 (lines=6) @@
729
					if (is_string($options['listOptions'])) {
730
						$listParams[] = $options['listOptions'];
731
					} else {
732
						if (isset($options['listOptions']['itemOptions'])) {
733
							$listParams[] = $options['listOptions']['itemOptions'];
734
							unset($options['listOptions']['itemOptions']);
735
						} else {
736
							$listParams[] = array();
737
						}
738
						if (isset($options['listOptions']['tag'])) {
739
							$listParams[] = $options['listOptions']['tag'];
740
							unset($options['listOptions']['tag']);
@@ 738-741 (lines=4) @@
735
						} else {
736
							$listParams[] = array();
737
						}
738
						if (isset($options['listOptions']['tag'])) {
739
							$listParams[] = $options['listOptions']['tag'];
740
							unset($options['listOptions']['tag']);
741
						}
742
						array_unshift($listParams, $options['listOptions']);
743
					}
744
					unset($options['listOptions']);