Code Duplication    Length = 4-4 lines in 3 locations

engine/classes/Elgg/Database/EntityTable.php 2 locations

@@ 839-842 (lines=4) @@
836
		}
837
	
838
		// pairs override the above.  return false if they don't exist.
839
		if (is_array($wheres) && count($wheres)) {
840
			$where = implode(' OR ', $wheres);
841
			return "($where)";
842
		}
843
	
844
		return '';
845
	}
@@ 927-930 (lines=4) @@
924
			$wheres[] = "{$table}.time_updated >= $time_updated_lower";
925
		}
926
	
927
		if (is_array($wheres) && count($wheres) > 0) {
928
			$where_str = implode(' AND ', $wheres);
929
			return "($where_str)";
930
		}
931
	
932
		return '';
933
	}

engine/lib/river.php 1 location

@@ 640-643 (lines=4) @@
637
		}
638
	}
639
640
	if (is_array($wheres) && count($wheres)) {
641
		$where = implode(' OR ', $wheres);
642
		return "($where)";
643
	}
644
645
	return '';
646
}