Code Duplication    Length = 5-5 lines in 2 locations

engine/classes/Elgg/Database/MetadataTable.php 1 location

@@ 638-642 (lines=5) @@
635
					$pair_binary = $binary;
636
				}
637
	
638
				if (isset($pair['operand'])) {
639
					$operand = $this->db->sanitizeString($pair['operand']);
640
				} else {
641
					$operand = ' = ';
642
				}
643
	
644
				// for comparing
645
				$trimmed_operand = trim(strtolower($operand));

engine/classes/Elgg/Database/PrivateSettingsTable.php 1 location

@@ 226-230 (lines=5) @@
223
					continue;
224
				}
225
226
				if (isset($pair['operand'])) {
227
					$operand = $this->db->sanitizeString($pair['operand']);
228
				} else {
229
					$operand = ' = ';
230
				}
231
232
				// for comparing
233
				$trimmed_operand = trim(strtolower($operand));