Code Duplication    Length = 4-4 lines in 2 locations

src/MetadataV3/edm/TSchemaType.php 2 locations

@@ 172-175 (lines=4) @@
169
                $msg = "assocation " . $assocationName . " exists without matching Natvigation Property";
170
                return false;
171
            }
172
            if (!in_array($assocationSets[$assocationName][0]->getName, [$assocationEnds[0]->getName, $assocationEnds[1]->getName])) {
173
                $msg = "assocation Set role " . $assocationSets[$assocationName][0]->getName . "lacks a matching property in the attached assocation";
174
                return false;
175
            }
176
            if (!in_array($assocationSets[$assocationName][1]->getName, [$assocationEnds[0]->getName, $assocationEnds[1]->getName])) {
177
                $msg = "assocation Set role " . $assocationSets[$assocationName][0]->getName . "lacks a matching property in the attached assocation";
178
                return false;
@@ 176-179 (lines=4) @@
173
                $msg = "assocation Set role " . $assocationSets[$assocationName][0]->getName . "lacks a matching property in the attached assocation";
174
                return false;
175
            }
176
            if (!in_array($assocationSets[$assocationName][1]->getName, [$assocationEnds[0]->getName, $assocationEnds[1]->getName])) {
177
                $msg = "assocation Set role " . $assocationSets[$assocationName][0]->getName . "lacks a matching property in the attached assocation";
178
                return false;
179
            }
180
        }
181
        return true;
182
    }