Code Duplication    Length = 9-9 lines in 2 locations

src/Darya/Database/Query/AbstractSqlTranslator.php 1 location

@@ 427-435 (lines=9) @@
424
			}
425
		}
426
427
		if (is_array($value)) {
428
			if ($operator === '=') {
429
				$operator = 'IN';
430
			}
431
432
			if ($operator === '!=') {
433
				$operator = 'NOT IN';
434
			}
435
		}
436
437
		return $operator;
438
	}

src/Darya/Storage/Filterer.php 1 location

@@ 80-88 (lines=9) @@
77
			}
78
		}
79
80
		if (is_array($value)) {
81
			if ($operator === '=') {
82
				$operator = 'in';
83
			}
84
85
			if ($operator === '!=') {
86
				$operator = 'not in';
87
			}
88
		}
89
90
		return $operator;
91
	}