Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 109-117 (lines=9) @@
106
	 * @param string $limit [optional]
107
	 * @return string
108
	 */
109
	protected function prepareDelete($table, $where = null, $limit = null) {
110
		$table = $this->identifier($table);
111
		
112
		if ($table == '*' || !$table || !$where) {
113
			return null;
114
		}
115
		
116
		return static::concatenate(array('DELETE FROM', $table, $where, $limit));
117
	}
118
	
119
}
120

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

@@ 95-103 (lines=9) @@
92
	 * @param string $limit [optional]
93
	 * @return string
94
	 */
95
	protected function prepareDelete($table, $where = null, $limit = null) {
96
		$table = $this->identifier($table);
97
		
98
		if ($table == '*' || !$table || !$where) {
99
			return null;
100
		}
101
		
102
		return static::concatenate(array('DELETE', $limit, 'FROM', $table, $where));
103
	}
104
	
105
}
106