Code Duplication    Length = 13-14 lines in 2 locations

src/Query.php 2 locations

@@ 116-129 (lines=14) @@
113
	 * @param mixed $values
114
	 * @return $this
115
	 */
116
	private function whereIn($column, $values)
117
	{
118
		$bindings = [];
119
120
		foreach ($values as $key => $value) {
121
			$bindings[] = $binding = sprintf(':%s%s', $column, $key);
122
123
			$this->bindings[$binding] = $value;
124
		}
125
126
		$this->queryBuilder->where($column, 'IN', $bindings);
127
128
		return $this;
129
	}
130
131
	/**
132
	 * {@inheritdoc}
@@ 207-219 (lines=13) @@
204
	 * @param array $values
205
	 * @return array the values array with bindings instead of values.
206
	 */
207
	private function replaceValuesWithBindings(array $values)
208
	{
209
		$result = [];
210
211
		foreach ($values as $key => $value) {
212
			$binding = sprintf(':%s', $key);
213
214
			$this->bindings[$binding] = $value;
215
			$result[$key] = $binding;
216
		}
217
218
		return $result;
219
	}
220
}
221