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

@@ 382-390 (lines=9) @@
379
	protected function prepareOperator($operator, $value = null) {
380
		$operator = $this->prepareRawOperator($operator);
381
		
382
		if (!$this->resolvesPlaceholder($value)) {
383
			if ($operator === '=') {
384
				$operator = 'IS';
385
			}
386
			
387
			if ($operator === '!=') {
388
				$operator = 'IS NOT';
389
			}
390
		}
391
		
392
		if (is_array($value)) {
393
			if ($operator === '=') {