Code Duplication    Length = 8-8 lines in 2 locations

apps/user_ldap/lib/wizard.php 2 locations

@@ 877-884 (lines=8) @@
874
			case self::LFILTER_USER_LIST:
875
				$objcs = $this->configuration->ldapUserFilterObjectclass;
876
				//glue objectclasses
877
				if(is_array($objcs) && count($objcs) > 0) {
878
					$filter .= '(|';
879
					foreach($objcs as $objc) {
880
						$filter .= '(objectclass=' . $objc . ')';
881
					}
882
					$filter .= ')';
883
					$parts++;
884
				}
885
				//glue group memberships
886
				if($this->configuration->hasMemberOfFilterSupport) {
887
					$cns = $this->configuration->ldapUserFilterGroups;
@@ 930-937 (lines=8) @@
927
			case self::LFILTER_GROUP_LIST:
928
				$objcs = $this->configuration->ldapGroupFilterObjectclass;
929
				//glue objectclasses
930
				if(is_array($objcs) && count($objcs) > 0) {
931
					$filter .= '(|';
932
					foreach($objcs as $objc) {
933
						$filter .= '(objectclass=' . $objc . ')';
934
					}
935
					$filter .= ')';
936
					$parts++;
937
				}
938
				//glue group memberships
939
				$cns = $this->configuration->ldapGroupFilterGroups;
940
				if(is_array($cns) && count($cns) > 0) {