Code Duplication    Length = 3-3 lines in 2 locations

src/Normalizer/ObjectNormalizer.php 1 location

@@ 66-68 (lines=3) @@
63
                $data['result'] = $this->normalizeAttribute($result, $format, $context);
64
            }
65
66
            if (null !== $statementContext = $object->getContext()) {
67
                $data['context'] = $this->normalizeAttribute($statementContext, $format, $context);
68
            }
69
70
            return $data;
71
        }

src/Normalizer/StatementNormalizer.php 1 location

@@ 61-63 (lines=3) @@
58
            $data['stored'] = $this->normalizeAttribute($result, $format, $context);
59
        }
60
61
        if (null !== $object->getContext()) {
62
            $data['context'] = $this->normalizeAttribute($object->getContext(), $format, $context);
63
        }
64
65
        if (null !== $attachments = $object->getAttachments()) {
66
            $data['attachments'] = $this->normalizeAttribute($attachments, $format, $context);