Code Duplication    Length = 4-4 lines in 2 locations

src/MemoryDatabase.php 2 locations

@@ 90-93 (lines=4) @@
87
        $operator = $condition->getOperator();
88
        $field    = $condition->getLeft();
89
        $value    = $condition->getRight();
90
        if ($operator === 'and') {
91
            return $this->isRecordMatchingCondition($primaryKeyValue, $record, $field)
92
                && $this->isRecordMatchingCondition($primaryKeyValue, $record, $value);
93
        }
94
        if ($operator === 'or') {
95
            return $this->isRecordMatchingCondition($primaryKeyValue, $record, $field)
96
                || $this->isRecordMatchingCondition($primaryKeyValue, $record, $value);
@@ 94-97 (lines=4) @@
91
            return $this->isRecordMatchingCondition($primaryKeyValue, $record, $field)
92
                && $this->isRecordMatchingCondition($primaryKeyValue, $record, $value);
93
        }
94
        if ($operator === 'or') {
95
            return $this->isRecordMatchingCondition($primaryKeyValue, $record, $field)
96
                || $this->isRecordMatchingCondition($primaryKeyValue, $record, $value);
97
        }
98
        if ($field === $this->primaryKey) {
99
            $actualValue = $primaryKeyValue;
100
        } elseif (isset($record[$field])) {