Code Duplication    Length = 4-4 lines in 2 locations

src/MemoryDatabase.php 2 locations

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