Code Duplication    Length = 9-9 lines in 2 locations

src/Darya/Storage/Filterer.php 1 location

@@ 67-75 (lines=9) @@
64
		
65
		$operator = in_array(strtolower($operator), static::$operators) ? $operator : '=';
66
		
67
		if ($value === null) {
68
			if ($operator === '=') {
69
				$operator = 'is';
70
			}
71
			
72
			if ($operator === '!=') {
73
				$operator = 'is not';
74
			}
75
		}
76
		
77
		if (is_array($value)) {
78
			if ($operator === '=') {

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

@@ 222-230 (lines=9) @@
219
	protected function prepareOperator($operator, $value) {
220
		$operator = in_array(strtolower($operator), $this->operators) ? strtoupper($operator) : '=';
221
		
222
		if (!$this->resolvesPlaceholder($value)) {
223
			if ($operator === '=') {
224
				$operator = 'IS';
225
			}
226
			
227
			if ($operator === '!=') {
228
				$operator = 'IS NOT';
229
			}
230
		}
231
		
232
		if (is_array($value)) {
233
			if ($operator === '=') {