Code Duplication    Length = 5-5 lines in 2 locations

src/MetadataV3/edm/TSchemaType.php 2 locations

@@ 190-194 (lines=5) @@
187
                return false;
188
            }
189
            foreach ($navigationProperties[$associationName] as $navProp) {
190
                if (!in_array($navProp->getToRole(), $roles)) {
191
                    $msg = "Navigation Property Role " . $navProp->getToRole()
192
                         . " lacks a matching Property in the assocation";
193
                    return false;
194
                }
195
                if (!in_array($navProp->getFromRole(), $roles)) {
196
                    $msg = "Navigation Property Role " .$navProp->getToRole()
197
                         . " lacks a matching Property in the assocation";
@@ 195-199 (lines=5) @@
192
                         . " lacks a matching Property in the assocation";
193
                    return false;
194
                }
195
                if (!in_array($navProp->getFromRole(), $roles)) {
196
                    $msg = "Navigation Property Role " .$navProp->getToRole()
197
                         . " lacks a matching Property in the assocation";
198
                    return false;
199
                }
200
            }
201
        }
202
        return true;