Code Duplication    Length = 4-4 lines in 3 locations

engine/lib/river.php 1 location

@@ 593-596 (lines=4) @@
590
		}
591
	}
592
593
	if (is_array($wheres) && count($wheres)) {
594
		$where = implode(' OR ', $wheres);
595
		return "($where)";
596
	}
597
598
	return '';
599
}

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

@@ 1033-1036 (lines=4) @@
1030
		}
1031
1032
		// pairs override the above.  return false if they don't exist.
1033
		if (is_array($wheres) && count($wheres)) {
1034
			$where = implode(' OR ', $wheres);
1035
			return "($where)";
1036
		}
1037
1038
		return '';
1039
	}
@@ 1121-1124 (lines=4) @@
1118
			$wheres[] = "{$table}.time_updated >= $time_updated_lower";
1119
		}
1120
1121
		if (is_array($wheres) && count($wheres) > 0) {
1122
			$where_str = implode(' AND ', $wheres);
1123
			return "($where_str)";
1124
		}
1125
1126
		return '';
1127
	}