Code Duplication    Length = 3-5 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

@@ 31-35 (lines=5) @@
28
				}
29
			}
30
			$retArray=array ();
31
			foreach ( $keyValues as $key => $value ) {
32
				if($this->addParams($value)){
33
					$retArray[]=SqlUtils::$quote . $key . SqlUtils::$quote . " = ?";
34
				}
35
			}
36
			$this->condition=implode($separator, $retArray);
37
		}
38
	}