Code Duplication    Length = 8-9 lines in 2 locations

src/MetadataV3/edm/TSchemaType.php 2 locations

@@ 179-187 (lines=9) @@
176
                $msg = "association " . $associationName . " exists without matching Natvigation Property";
177
                return false;
178
            }
179
            if (!in_array(
180
                $associationSets[$associationName][0]->getRole(),
181
                [$associationEnds[0]->getRole(), $associationEnds[1]->getRole()]
182
            )
183
            ) {
184
                $msg = "association Set role " . $associationSets[$associationName][0]->getRole()
185
                       . "lacks a matching property in the attached association";
186
                return false;
187
            }
188
            if (!in_array(
189
                $associationSets[$associationName][1]->getRole(),
190
                [$associationEnds[0]->getRole(), $associationEnds[1]->getRole()]
@@ 188-195 (lines=8) @@
185
                       . "lacks a matching property in the attached association";
186
                return false;
187
            }
188
            if (!in_array(
189
                $associationSets[$associationName][1]->getRole(),
190
                [$associationEnds[0]->getRole(), $associationEnds[1]->getRole()]
191
            )) {
192
                $msg = "association Set role " . $associationSets[$associationName][0]->getRole()
193
                       . "lacks a matching property in the attached association";
194
                return false;
195
            }
196
        }
197
        return true;
198
    }