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

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