Code Duplication    Length = 3-3 lines in 2 locations

src/Models/ObjectMap/Entities/Associations/AssociationStubBase.php 2 locations

@@ 150-152 (lines=3) @@
147
        if ($this instanceof AssociationStubMonomorphic && null === $targType) {
148
            return false;
149
        }
150
        if (null !== $targType && (!is_string($targType) || empty($targType))) {
151
            return false;
152
        }
153
        $foreignField = $this->foreignField;
154
        if (null !== $targType && (null === $foreignField || !is_string($foreignField) || empty($foreignField))) {
155
            return false;
@@ 154-156 (lines=3) @@
151
            return false;
152
        }
153
        $foreignField = $this->foreignField;
154
        if (null !== $targType && (null === $foreignField || !is_string($foreignField) || empty($foreignField))) {
155
            return false;
156
        }
157
        return (null === $targType) === (null === $foreignField);
158
    }
159