Code Duplication    Length = 3-4 lines in 2 locations

Ubiquity/db/SqlUtils.php 1 location

@@ 92-94 (lines=3) @@
89
				}
90
			}
91
			$retArray=array ();
92
			foreach ( $keyValues as $key => $value ) {
93
				$retArray[]=self::$quote . $key . self::$quote . " = '" . $value . "'";
94
			}
95
			return implode($separator, $retArray);
96
		}
97
	}

Ubiquity/orm/parser/ConditionParser.php 1 location

@@ 29-32 (lines=4) @@
26
				}
27
			}
28
			$retArray=array ();
29
			foreach ( $keyValues as $key => $value ) {
30
				$retArray[]=SqlUtils::$quote . $key . SqlUtils::$quote . " = ?";
31
				$this->params[]=$value;
32
			}
33
			$this->condition=implode($separator, $retArray);
34
		}
35
	}