Code Duplication    Length = 3-3 lines in 2 locations

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

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