Code Duplication    Length = 9-9 lines in 2 locations

src/Darya/Storage/Filterer.php 1 location

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

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

@@ 407-415 (lines=9) @@
404
	{
405
		$operator = $this->prepareRawOperator($operator);
406
		
407
		if (!$this->resolvesPlaceholder($value)) {
408
			if ($operator === '=') {
409
				$operator = 'IS';
410
			}
411
			
412
			if ($operator === '!=') {
413
				$operator = 'IS NOT';
414
			}
415
		}
416
		
417
		if (is_array($value)) {
418
			if ($operator === '=') {