Code Duplication    Length = 10-10 lines in 2 locations

src/Adapter/CodeigniterQueryBuilder.php 2 locations

@@ 219-228 (lines=10) @@
216
							$ors = array();
217
							foreach ($value['value'] as $item) {
218
								if ($item == 'null') {
219
									switch ($value['operator']) {
220
										case '!=':
221
											$ors[] = $key . ' IS NOT NULL';
222
											break;
223
224
										case '==':
225
										default:
226
											$ors[] = $key . ' IS NULL';
227
											break;
228
									}
229
								} else {
230
									$params[] = $item;
231
									$ors[] = $this->fieldCheck($key) . ' ' . $value['operator'] . ' ?';
@@ 242-251 (lines=10) @@
239
							$wheres[] = $key . ' ' . $value['operator'] . ' ?';
240
						} else {
241
							if ($value['value'] === 'null') {
242
								switch ($value['operator']) {
243
									case '!=':
244
										$wheres[] = $key . ' IS NOT NULL';
245
										break;
246
247
									case '==':
248
									default:
249
										$wheres[] = $key . ' IS NULL';
250
										break;
251
								}
252
							} else {
253
								$params[] = $value['value'];
254
								$wheres[] = $key . ' ' . $value['operator'] . ' ?';