Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 240-244 (lines=5) @@
237
					continue;
238
				}
239
240
				if (isset($pair['operand'])) {
241
					$operand = $this->db->sanitizeString($pair['operand']);
242
				} else {
243
					$operand = ' = ';
244
				}
245
246
				// for comparing
247
				$trimmed_operand = trim(strtolower($operand));

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

@@ 538-542 (lines=5) @@
535
					$pair_binary = $binary;
536
				}
537
538
				if (isset($pair['operand'])) {
539
					$operand = $this->db->sanitizeString($pair['operand']);
540
				} else {
541
					$operand = ' = ';
542
				}
543
544
				// for comparing
545
				$trimmed_operand = trim(strtolower($operand));