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

@@ 368-376 (lines=9) @@
365
	protected function prepareOperator($operator, $value = null) {
366
		$operator = $this->prepareRawOperator($operator);
367
		
368
		if (!$this->resolvesPlaceholder($value)) {
369
			if ($operator === '=') {
370
				$operator = 'IS';
371
			}
372
			
373
			if ($operator === '!=') {
374
				$operator = 'IS NOT';
375
			}
376
		}
377
		
378
		if (is_array($value)) {
379
			if ($operator === '=') {