Code Duplication    Length = 8-8 lines in 2 locations

src/Metadata/EmbeddedPropMetadata.php 1 location

@@ 85-92 (lines=8) @@
82
     * @return  bool
83
     * @throws  MetadataException
84
     */
85
    protected function validateType($embedType)
86
    {
87
        $valid = ['one', 'many'];
88
        if (!in_array($embedType, $valid)) {
89
            throw MetadataException::invalidRelType($embedType, $valid);
90
        }
91
        return true;
92
    }
93
}
94

src/Metadata/RelationshipMetadata.php 1 location

@@ 148-155 (lines=8) @@
145
     * @return  bool
146
     * @throws  MetadataException
147
     */
148
    protected function validateType($relType)
149
    {
150
        $valid = ['one', 'many'];
151
        if (!in_array($relType, $valid)) {
152
            throw MetadataException::invalidRelType($relType, $valid);
153
        }
154
        return true;
155
    }
156
}
157