Code Duplication    Length = 5-8 lines in 2 locations

src/Query/Drivers/Firebird/Driver.php 1 location

@@ 353-360 (lines=8) @@
350
			. implode(',', $this->quoteIdent($fields))
351
			. ") VALUES (";
352
353
		foreach($data as $item)
354
		{
355
			// Quote string values
356
			$vals = array_map([$this, 'quote'], $item);
357
358
			// Add the values in the sql
359
			$sql .= $insertTemplate . implode(', ', $vals) . ");\n";
360
		}
361
362
		// End the block of SQL statements
363
		$sql .= "END";

src/Query/Drivers/Sqlite/Driver.php 1 location

@@ 135-139 (lines=5) @@
132
		}
133
		$sql .= "SELECT " . implode(', ', $cols) . "\n";
134
135
		foreach($data as $union)
136
		{
137
			$vals = array_map([$this, 'quote'], $union);
138
			$sql .= "UNION SELECT " . implode(',', $vals) . "\n";
139
		}
140
141
		return [$sql, NULL];
142
	}