Code Duplication    Length = 5-5 lines in 2 locations

src/Serializer.php 2 locations

@@ 288-292 (lines=5) @@
285
     */
286
    protected function checkIdentification(ResourceInterface $resource)
287
    {
288
        if (!is_string($resource->getId())) {
289
            throw new InvalidValueException(
290
                'The values id of resource object ' . get_class ($resource) . ' MUST be a string.'
291
            );
292
        }
293
294
        if (!is_string($resource->getType())) {
295
            throw new InvalidValueException(
@@ 294-298 (lines=5) @@
291
            );
292
        }
293
294
        if (!is_string($resource->getType())) {
295
            throw new InvalidValueException(
296
                'The values type of resource object ' . get_class ($resource) . ' MUST be a string.'
297
            );
298
        }
299
    }
300
}
301