Code Duplication    Length = 9-9 lines in 2 locations

src/Darya/Database/Query/Translator/MySql.php 1 location

@@ 124-132 (lines=9) @@
121
	 * @param string $limit [optional]
122
	 * @return string
123
	 */
124
	protected function prepareDelete($table, $where = null, $limit = null)
125
	{
126
		$table = $this->identifier($table);
127
		
128
		if ($table == '*' || !$table || !$where) {
129
			return null;
130
		}
131
		
132
		return static::concatenate(array('DELETE FROM', $table, $where, $limit));
133
	}
134
}
135

src/Darya/Database/Query/Translator/SqlServer.php 1 location

@@ 202-210 (lines=9) @@
199
	 * @param string $limit [optional]
200
	 * @return string
201
	 */
202
	protected function prepareDelete($table, $where = null, $limit = null)
203
	{
204
		$table = $this->identifier($table);
205
		
206
		if ($table == '*' || !$table || !$where) {
207
			return null;
208
		}
209
		
210
		return static::concatenate(array('DELETE', $limit, 'FROM', $table, $where));
211
	}
212
}
213